You are viewing the documentation for a prerelease version.

View Latest

Admin REST API

    +

    Description of the Sync Gateway Admin REST API
    Use the API explorer to find out more about Sync Gateway’s endpoints by functionality.

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

    Introduction

    The Admin REST API is for administrator use only, and hence is not accessible from the clients directly.

    To allow users to access the Admin API up you need to create a Couchbase Server-based RBAC-user for them — see: REST API Access

    For document changes sent to Sync Gateway through the Admin REST API, the Sync Function executes with admin privileges.
    Calls to requireUser, requireAccess and requireRole will be no-ops, and will always appear successful.

    API Explorer

    The API explorer below groups all the endpoints by functionality. You can click on a label to expand the list of endpoints and also generate a curl request for each endpoint.