Couchbase Tasks API

Endpoints for monitoring and managing backup and restore tasks.

GitHub OpenAPI

Operations 3

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/v1/cluster/self/repository/active/{repositoryId}/taskHistory Get backup and restore task history for a repository · Get repository task history #
Ask an LLM
“What backup and restore tasks have run on my active repository?”
“Can I filter a repository's task history by task name?”
Tell an agent
Show the task history for active repository {repositoryId}.
List {task_name} tasks for active repository {repositoryId} since {offset}.
POST /api/v1/cluster/self/repository/active/{repositoryId}/pause Pause all tasks on an active repository · Pause repository tasks #
Ask an LLM
“How do I stop scheduled tasks on an active backup repository?”
“Can I pause every task on a repository temporarily?”
Tell an agent
Pause all tasks on active repository {repositoryId}.
Stop scheduled tasks for active backup repository {repositoryId}.
POST /api/v1/cluster/self/repository/active/{repositoryId}/resume Resume paused tasks on an active repository · Resume repository tasks #
Ask an LLM
“How do I restart tasks on an active repository that were paused?”
“Can I resume all paused tasks for a repository?”
Tell an agent
Resume all tasks on active repository {repositoryId}.
Restart paused tasks for active backup repository {repositoryId}.

Documentation

Specifications

Schemas & Data

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:couchbase-tasks-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

couchbase-tasks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Couchbase Backup Service REST Tasks API
  description: The Couchbase Backup Service REST API supports management of the Backup Service for Couchbase Server, providing endpoints for cluster configuration, repository management, backup plans, task scheduling, and data operations. It enables automated backup and restore workflows for Couchbase data, allowing administrators to define backup policies, monitor backup tasks, and manage backup repositories programmatically.
  version: '7.6'
  contact:
    name: Couchbase Support
    url: https://support.couchbase.com
  termsOfService: https://www.couchbase.com/terms-of-use
servers:
- url: https://localhost:8097
  description: Backup Service (default port)
- url: https://localhost:18097
  description: Backup Service (SSL)
security:
- basicAuth: []
tags:
- name: Tasks
  description: Endpoints for monitoring and managing backup and restore tasks.
paths:
  /api/v1/cluster/self/repository/active/{repositoryId}/taskHistory:
    get:
      operationId: getRepositoryTaskHistory
      summary: Get repository task history
      description: Returns the history of backup and restore tasks for the specified active repository, including task types, statuses, and timing.
      tags:
      - Tasks
      parameters:
      - $ref: '#/components/parameters/repositoryId'
      - name: offset
        in: query
        required: false
        description: The earliest date for returned tasks
        schema:
          type: string
          format: date-time
      - name: limit
        in: query
        required: false
        description: Maximum number of tasks to return
        schema:
          type: integer
      - name: task_name
        in: query
        required: false
        description: Filter by task name
        schema:
          type: string
      responses:
        '200':
          description: Successful retrieval of task history
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/BackupTask'
        '401':
          description: Unauthorized access
        '404':
          description: Repository not found
  /api/v1/cluster/self/repository/active/{repositoryId}/pause:
    post:
      operationId: pauseRepositoryTasks
      summary: Pause repository tasks
      description: Pauses all scheduled tasks for the specified active repository.
      tags:
      - Tasks
      parameters:
      - $ref: '#/components/parameters/repositoryId'
      responses:
        '200':
          description: Repository tasks paused successfully
        '401':
          description: Unauthorized access
        '404':
          description: Repository not found
  /api/v1/cluster/self/repository/active/{repositoryId}/resume:
    post:
      operationId: resumeRepositoryTasks
      summary: Resume repository tasks
      description: Resumes all paused tasks for the specified active repository.
      tags:
      - Tasks
      parameters:
      - $ref: '#/components/parameters/repositoryId'
      responses:
        '200':
          description: Repository tasks resumed successfully
        '401':
          description: Unauthorized access
        '404':
          description: Repository not found
components:
  schemas:
    BackupTask:
      type: object
      description: Backup or restore task record
      properties:
        task_name:
          type: string
          description: Name of the task
        status:
          type: string
          description: Task execution status
          enum:
          - done
          - running
          - failed
          - cancelled
        start:
          type: string
          format: date-time
          description: Task start time
        end:
          type: string
          format: date-time
          description: Task end time
        type:
          type: string
          description: Type of task
          enum:
          - BACKUP
          - MERGE
          - RESTORE
        node_runs:
          type: array
          description: Per-node execution details
          items:
            type: object
  parameters:
    repositoryId:
      name: repositoryId
      in: path
      required: true
      description: The name of the backup repository
      schema:
        type: string
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: HTTP Basic Authentication. Requires the Full Admin role.
externalDocs:
  description: Couchbase Backup Service REST API Documentation
  url: https://docs.couchbase.com/server/current/rest-api/backup-rest-api.html