REST API endpoint list
This section lists all of the Couchbase Server REST API endpoints.
HTTP method and URI list
| HTTP method | URI path | Description | 
|---|---|---|
GET  | 
/pools  | 
Retrieves cluster information.  | 
GET  | 
/pools/default  | 
Retrieves cluster details.  | 
POST  | 
/controller/addNode  | 
Adds nodes to clusters.  | 
POST  | 
/node/controller/doJoinCluster  | 
Joins nodes into clusters  | 
POST  | 
/controller/ejectNodeentry  | 
Removes nodes from clusters.  | 
GET, POST, PUT, DELETE  | 
/pools/default/serverGroups  | 
Manages rack zone awareness (server groups).  | 
POST  | 
/controller/rebalance  | 
Rebalances nodes in a cluster.  | 
GET, POST  | 
/internalSettings  | 
Manages internal settings. Couchbase Server use only.  | 
GET, POST  | 
/settings/maxParallelIndexers  | 
Manages parallel indexer configuration. Couchbase Server use only.  | 
GET, POST  | 
/settings/autoFailover  | 
Manages automatic failover for clusters.  | 
GET, POST  | 
/settings/autoFailover/resetCount  | 
Resets automatic failover for clusters.  | 
GET, POST  | 
/settings/alerts  | 
Manages alerts for email notifications.  | 
POST  | 
/settings/alerts/testEmail  | 
Creates test email for email notifications.  | 
POST  | 
/settings/alerts/sendTestEmail  | 
Sends test email for email notifications.  | 
| HTTP method | URI path | Description | 
|---|---|---|
GET  | 
/pools/nodes  | 
Retrieves information about nodes in a cluster.  | 
POST  | 
/controller/setRecoveryType  | 
Sets the recovery type to be performed for a node. Options are delta or full.  | 
POST  | 
/controller/failOver  | 
Fails over nodes.  | 
POST  | 
/controller/startGracefulFailover  | 
Sets graceful failover for a specific server node.
The server node is specified with the   | 
POST  | 
/node/controller/setupServices  | 
Sets the services (data, query, index, fts). Used also by the provisioning wizard.  | 
POST  | 
/settings/web  | 
Sets user names and passwords.  | 
POST  | 
/controller/changePassword  | 
Changes password for a given user.  | 
POST  | 
/pools/default/memoryQuota  | 
The   | 
POST  | 
/nodes/self/controller/settings  | 
Sets the path for index files.  | 
GET  | 
/pools/default/buckets/[bucket_name]/nodes/[host]:[port]/stats  | 
Retrieves statistics for a node.  | 
| HTTP method | URI path | Description | 
|---|---|---|
GET  | 
/pools/default/serverGroups  | 
Retrieves information about a server group.  | 
POST  | 
/pools/default/serverGroups  | 
Creates a server group with a specific name.  | 
PUT  | 
/pools/default/serverGroups/<:uuid>  | 
Updates the server group information.  | 
PUT  | 
/pools/default/serverGroups?rev=<:number>  | 
Updates a server’s group memberships.  | 
DELETE  | 
/pools/default/serverGroups/<:uuid>  | 
Deletes a specific server group.  | 
| HTTP method | URI path | Description | 
|---|---|---|
GET  | 
/pools/default/buckets  | 
Retrieves all bucket and bucket operations information from a cluster.  | 
GET  | 
/pools/default/buckets/[bucket_name]  | 
Retrieves information for a single bucket associated with a cluster.  | 
GET  | 
/pools/default/buckets/[bucket_name]/stats  | 
Retrieves bucket statistics for a specific bucket.  | 
POST  | 
/pools/default/buckets  | 
Creates a new Couchbase bucket.  | 
DELETE  | 
/pools/default/buckets/[bucket_name]  | 
Deletes a specific bucket.  | 
POST  | 
/pools/default/buckets/[bucket_name]/controller/doFlush  | 
Flushes a specific bucket.  | 
| HTTP method | URI path | Description | 
|---|---|---|
GET  | 
/pools/nodes  | 
Retrieves information about nodes in a cluster.  | 
POST  | 
/pools/nodes/indexMemoryQuota  | 
The   | 
GET  | 
/settings/indexes  | 
Retrieves parameter settings for the Index service.
Available options are   | 
POST  | 
/settings/indexes  | 
Sets the parameter settings for the Index service.  | 
| HTTP method | URI path | Description | 
|---|---|---|
GET  | 
/[bucket_name]/_design/[ddoc-name]  | 
Retrieves design documents.  | 
GET  | 
/[bucket_name]/_design/[ddoc-name]/_view/[view-name]  | 
Retrieves views.  | 
GET  | 
/[bucket-name]/_design/[ddoc-name]/_spatial/[spatial-name]  | 
Retrieves spatial views.  | 
PUT  | 
/[bucket_name]/_design/[ddoc-name]  | 
Creates a news design document with one or more views.  | 
DELETE  | 
/[bucket_name]/_design/[ddoc-name]  | 
Deletes design documents.  | 
POST  | 
/internalSettings  | 
Changes the number of simultaneous requests each node can accept.  | 
| HTTP method | URI path | Description | 
|---|---|---|
GET  | 
/pools/default/remoteClusters  | 
Retrieves the destination cluster reference  | 
POST  | 
/pools/default/remoteClusters  | 
Creates a reference to the destination cluster  | 
PUT  | 
/pools/default/remoteClusters/[UUID]  | 
Modifies the destination cluster reference  | 
DELETE  | 
/pools/default/remoteClusters/[UUID]  | 
Deletes the reference to the destination cluster.  | 
GET  | 
/pools/default/certificate  | 
Retrieves the certificate from the cluster.  | 
POST  | 
/controller/regenerateCertificate  | 
Regenerates a certificate on a destination cluster.  | 
DELETE  | 
/controller/cancelXDCR/[replication_id]  | 
Deletes the replication.  | 
GET, POST  | 
/settings/replications/  | 
Global setting supplied to all replications for a cluster.  | 
GET, POST  | 
/settings/replications/[replication_id]  | 
Settings for a specific replication for a bucket.  | 
GET  | 
/pools/default/buckets/@xdcr[bucket_name]/stats/[destination_endpoint]_  | 
Retrieves bucket statistics.  | 
| HTTP method | URI path | Description | 
|---|---|---|
POST  | 
/pools/default/buckets/[bucket_name]/controller/compactBucket  | 
Compacts bucket data and indexes.  | 
POST  | 
/pools/default/buckets/[bucket_name]/controller/cancelBucketCompaction  | 
Cancels compaction for the specified bucket.  | 
POST  | 
/[bucket_name]/_design/[ddoc_name]/_spatial/_compact  | 
Compacts a spatial view.  | 
| HTTP method | URI path | Description | 
|---|---|---|
POST  | 
/controller/setAutoCompaction  | 
Sets cluster-wide auto-compaction intervals and thresholds  | 
GET  | 
/settings/autoCompaction  | 
Retrieves cluster-wide settings for auto-compaction  | 
GET  | 
/pools/default/buckets/[bucket_name]  | 
Retrieves auto-compaction settings for named bucket  | 
POST  | 
/pools/default/buckets/[bucket_name]  | 
Sets auto-compaction interval or thresholds for named bucket  | 
| HTTP method | URI path | Description | 
|---|---|---|
GET  | 
/diag  | 
Retrieves log and additional server diagnostic information.  | 
GET  | 
/sasl_logs  | 
Retrieves a generic list of log information.  | 
GET  | 
/sasl_logs/[log_name]  | 
Retrieves information from the specified log category. Where the log_name is one of the following log types: 
  | 
POST  | 
/logClientError  | 
Adds entries to the central log from a custom Couchbase Server SDK.  | 
| HTTP method | URI path | Description | Parameters | 
|---|---|---|---|
POST  | 
/settings/readOnlyUser  | 
Creates the read-only user  | 
  | 
PUT  | 
/settings/readOnlyUser  | 
Changes the read-only user password  | 
  | 
DELETE  | 
/settings/readOnlyUser  | 
Deletes the user  | 
none  | 
GET  | 
/settings/readOnlyAdminName  | 
Retrieves the read-only username  | 
none  | 
| HTTP method | URI path | Description | Parameters | 
|---|---|---|---|
GET  | 
/pools/default/certificate  | 
Returns the current cluster certificate.  | 
  | 
POST  | 
/controller/uploadClusterCA  | 
Uploads a pem-encoded root certificate (cluster CA) to the cluster.  | 
none  | 
POST  | 
/node/controller/reloadCertificate  | 
Takes a certificate/key from the specified directory and applies them to the node.  | 
  | 
GET  | 
/pools/default/certificate/node/<host:port>  | 
Retrieves the read-only username  | 
  |