Couchbase Database Administration API

Endpoints for managing database configurations within App Services.

Operations 7

GET /{db}/_config Get database configuration #
PUT /{db}/_config Update database configuration #
GET /{db}/_config/sync Get sync function #
PUT /{db}/_config/sync Update sync function #
POST /{db}/_offline Take database offline #
POST /{db}/_online Bring database online #
POST /{db}/_resync Resync database #

Documentation

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/couchbase-database-administration-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

couchbase-database-administration-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Couchbase Capella App Services Admin Database Administration API
  description: The Couchbase Capella App Services Admin API provides administrative REST endpoints for managing Sync Gateway configurations within Couchbase Capella. It enables administrators to manage databases, users, roles, sync functions, and replication settings for mobile data synchronization. The API supports full administrative control over App Services deployments, including user provisioning, access control, and monitoring of sync operations.
  version: '3.0'
  contact:
    name: Couchbase Support
    url: https://support.couchbase.com
  termsOfService: https://www.couchbase.com/terms-of-use
servers:
- url: https://{appEndpoint}:4985
  description: Capella App Services Admin endpoint
  variables:
    appEndpoint:
      default: example.apps.cloud.couchbase.com
      description: The App Services admin endpoint URL
security:
- basicAuth: []
tags:
- name: Database Administration
  description: Endpoints for managing database configurations within App Services.
paths:
  /{db}/_config:
    get:
      operationId: getDatabaseConfig
      summary: Get database configuration
      description: Returns the full configuration of the specified database including sync function, import filter, and other settings.
      tags:
      - Database Administration
      parameters:
      - $ref: '#/components/parameters/db'
      responses:
        '200':
          description: Successful retrieval of database configuration
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DatabaseConfig'
        '401':
          description: Unauthorized access
        '404':
          description: Database not found
    put:
      operationId: updateDatabaseConfig
      summary: Update database configuration
      description: Updates the configuration of the specified database. This can include changes to the sync function, import filter, and other settings.
      tags:
      - Database Administration
      parameters:
      - $ref: '#/components/parameters/db'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DatabaseConfig'
      responses:
        '200':
          description: Database configuration updated successfully
        '400':
          description: Invalid configuration
        '401':
          description: Unauthorized access
        '404':
          description: Database not found
  /{db}/_config/sync:
    get:
      operationId: getSyncFunction
      summary: Get sync function
      description: Returns the current sync function for the specified database.
      tags:
      - Database Administration
      parameters:
      - $ref: '#/components/parameters/db'
      responses:
        '200':
          description: Successful retrieval of sync function
          content:
            text/plain:
              schema:
                type: string
        '401':
          description: Unauthorized access
        '404':
          description: Database not found
    put:
      operationId: updateSyncFunction
      summary: Update sync function
      description: Updates the sync function for the specified database. The sync function controls document routing to channels and access grants.
      tags:
      - Database Administration
      parameters:
      - $ref: '#/components/parameters/db'
      requestBody:
        required: true
        content:
          text/plain:
            schema:
              type: string
              description: JavaScript sync function code
      responses:
        '200':
          description: Sync function updated successfully
        '400':
          description: Invalid sync function
        '401':
          description: Unauthorized access
        '404':
          description: Database not found
  /{db}/_offline:
    post:
      operationId: takeDatabaseOffline
      summary: Take database offline
      description: Takes the specified database offline, preventing any client access.
      tags:
      - Database Administration
      parameters:
      - $ref: '#/components/parameters/db'
      responses:
        '200':
          description: Database taken offline successfully
        '401':
          description: Unauthorized access
        '404':
          description: Database not found
  /{db}/_online:
    post:
      operationId: bringDatabaseOnline
      summary: Bring database online
      description: Brings the specified database back online after being taken offline.
      tags:
      - Database Administration
      parameters:
      - $ref: '#/components/parameters/db'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                delay:
                  type: integer
                  description: Delay in seconds before bringing the database online
      responses:
        '200':
          description: Database brought online successfully
        '401':
          description: Unauthorized access
        '404':
          description: Database not found
  /{db}/_resync:
    post:
      operationId: resyncDatabase
      summary: Resync database
      description: Reprocesses all documents through the sync function. This is required after updating the sync function to apply changes to existing documents.
      tags:
      - Database Administration
      parameters:
      - $ref: '#/components/parameters/db'
      responses:
        '200':
          description: Resync completed successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  changes_processed:
                    type: integer
                    description: Number of documents reprocessed
        '401':
          description: Unauthorized access
        '404':
          description: Database not found
components:
  parameters:
    db:
      name: db
      in: path
      required: true
      description: The name of the database
      schema:
        type: string
  schemas:
    DatabaseConfig:
      type: object
      description: Database configuration
      properties:
        name:
          type: string
          description: Database name
        bucket:
          type: string
          description: Couchbase Server bucket name
        sync:
          type: string
          description: JavaScript sync function code
        import_filter:
          type: string
          description: JavaScript import filter function code
        enable_shared_bucket_access:
          type: boolean
          description: Whether to enable shared bucket access with SDKs
        import_docs:
          type: boolean
          description: Whether to auto-import documents from the bucket
        num_index_replicas:
          type: integer
          description: Number of GSI index replicas
        delta_sync:
          type: object
          description: Delta sync configuration
          properties:
            enabled:
              type: boolean
              description: Whether delta sync is enabled
            rev_max_age_seconds:
              type: integer
              description: Maximum age for revision deltas in seconds
        guest:
          type: object
          description: Guest (unauthenticated) user configuration
          properties:
            disabled:
              type: boolean
              description: Whether the guest user is disabled
            admin_channels:
              type: array
              description: Admin channels for the guest user
              items:
                type: string
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: HTTP Basic Authentication using App Services admin credentials.
externalDocs:
  description: Couchbase Capella App Services Admin API Documentation
  url: https://docs.couchbase.com/cloud/app-services/references/rest_api_admin.html