A newer version of this documentation is available.

View Latest
March 23, 2025
+ 12

Description of the Sync Gateway Rest API'

Related REST API topics: Admin REST API | Metrics REST API | Use the REST API?

Content Blocking

Couchbase Mobile’s API documentation utilizes Swagger UI to deliver an interactive and dynamic user experience. The page will not function correctly if your organization’s security policies restricts access to this type of content — instead see the alternate statics page Public REST API (Static Page)

Using the API Explorer

The API explorer below groups all the endpoints by functionality. You can click on a label to expand the list of endpoints.

You can also send a request to each endpoint against an instance of Sync Gateway. To use this optional feature, enable CORS by adding the following entry to the configuration file.

javascript
{ ... "CORS": { "Origin":["*"], "LoginOrigin":["*"], "Headers":["Content-Type"], "MaxAge": 1728000 }, ... }

API Explorer

Swagger UIswagger

Sync Gateway
 3.1 
OAS3

_attachments/bundled-public.yaml

Sync Gateway manages access and synchronization between Couchbase Lite and Couchbase Server

Sync Gateway Quickstart | Couchbase Docs
Server
Computed URL:http://localhost:4984

Server variables

protocol
hostname

Authentication

Manage OpenID Connect Authentication

Database Management

Create and manage Sync Gateway databases

Document

Create and manage documents

Document Attachment

Create and manage document attachments

Replication

Create and manage inter-Sync Gateway replications

Server

Manage server activities

Session

Manage user sessions

Unsupported

Endpoints that are not supported by Sync Gateway

Models