Bernstein Tasks API

The Tasks API from Bernstein — 60 operation(s) for tasks.

Operations 72

GET /tasks/search Search Tasks #
POST /tasks Create Task #
GET /tasks List Tasks #
POST /tasks/batch Create Tasks Batch #
POST /tasks/self-create Self Create Subtask #
GET /tasks/next/{role} Next Task #
POST /tasks/claim-batch Claim Batch #
POST /tasks/{task_id}/claim Claim Task #
POST /tasks/{task_id}/complete Complete Task #
POST /tasks/{task_id}/wait-for-subtasks Wait For Subtasks #
POST /tasks/{task_id}/fail Fail Task #
POST /tasks/{task_id}/release Release Task #
POST /tasks/{task_id}/reopen Reopen Task #
POST /tasks/{task_id}/close Close Task #
POST /tasks/{task_id}/cancel Cancel Task #
POST /tasks/{task_id}/block Block Task #
POST /tasks/{task_id}/progress Progress Task #
GET /tasks/{task_id}/progress Get Task Progress #
POST /tasks/{task_id}/partial-merge Partial Merge Task #
GET /tasks/{task_id}/partial-merge Get Partial Merge State #
GET /tasks/{task_id}/snapshots Get Task Snapshots #
GET /tasks/counts Task Counts #
GET /tasks/archive Get Archive #
GET /tasks/graph Get Task Graph #
GET /tasks/{task_id} Get Task #
PATCH /tasks/{task_id} Patch Task #
GET /tasks/{task_id}/graph-neighbors Get Task Graph Neighbors #
GET /tasks/{task_id}/gates Get Task Gates #
POST /tasks/{task_id}/prioritize Prioritize Task #
POST /tasks/{task_id}/force-claim Force Claim Task #
POST /tasks/claim-receipt Claim Receipt #
POST /tasks/{task_id}/messages Post Task Message #
GET /tasks/{task_id}/messages Get Task Messages #
POST /tasks/{task_id}/artifacts Post Task Artifact #
GET /tasks/{task_id}/artifacts List Task Artifacts #
POST /tasks/{task_id}/steer Post Task Steer #
GET /api/v1/tasks/search Search Tasks #
POST /api/v1/tasks Create Task #
GET /api/v1/tasks List Tasks #
POST /api/v1/tasks/batch Create Tasks Batch #
POST /api/v1/tasks/self-create Self Create Subtask #
GET /api/v1/tasks/next/{role} Next Task #
POST /api/v1/tasks/claim-batch Claim Batch #
POST /api/v1/tasks/{task_id}/claim Claim Task #
POST /api/v1/tasks/{task_id}/complete Complete Task #
POST /api/v1/tasks/{task_id}/wait-for-subtasks Wait For Subtasks #
POST /api/v1/tasks/{task_id}/fail Fail Task #
POST /api/v1/tasks/{task_id}/release Release Task #
POST /api/v1/tasks/{task_id}/reopen Reopen Task #
POST /api/v1/tasks/{task_id}/close Close Task #
POST /api/v1/tasks/{task_id}/cancel Cancel Task #
POST /api/v1/tasks/{task_id}/block Block Task #
POST /api/v1/tasks/{task_id}/progress Progress Task #
GET /api/v1/tasks/{task_id}/progress Get Task Progress #
POST /api/v1/tasks/{task_id}/partial-merge Partial Merge Task #
GET /api/v1/tasks/{task_id}/partial-merge Get Partial Merge State #
GET /api/v1/tasks/{task_id}/snapshots Get Task Snapshots #
GET /api/v1/tasks/counts Task Counts #
GET /api/v1/tasks/archive Get Archive #
GET /api/v1/tasks/graph Get Task Graph #
GET /api/v1/tasks/{task_id} Get Task #
PATCH /api/v1/tasks/{task_id} Patch Task #
GET /api/v1/tasks/{task_id}/graph-neighbors Get Task Graph Neighbors #
GET /api/v1/tasks/{task_id}/gates Get Task Gates #
POST /api/v1/tasks/{task_id}/prioritize Prioritize Task #
POST /api/v1/tasks/{task_id}/force-claim Force Claim Task #
POST /api/v1/tasks/claim-receipt Claim Receipt #
POST /api/v1/tasks/{task_id}/messages Post Task Message #
GET /api/v1/tasks/{task_id}/messages Get Task Messages #
POST /api/v1/tasks/{task_id}/artifacts Post Task Artifact #
GET /api/v1/tasks/{task_id}/artifacts List Task Artifacts #
POST /api/v1/tasks/{task_id}/steer Post Task Steer #

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/bernstein-run:bernstein-run-tasks-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

bernstein-run-tasks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Bernstein Task Server Tasks API
  description: 'Bernstein REST API - the open-source governance layer for AI agents, one git worktree per task.


    ## Authentication


    Authentication is ENABLED by default. Include a Bearer token in all requests:


    ```

    Authorization: Bearer

    ```


    To run without auth (development only), set `BERNSTEIN_AUTH_DISABLED=1` - this logs a loud warning and passes every request through.


    Public endpoints (no auth required): `/health`, `/health/ready`, `/health/live`, `/ready`, `/alive`, `/.well-known/agent.json`, `/docs`, `/openapi.json`, and the auth-flow endpoints (`/auth/login`, `/auth/oidc/callback`, etc.).


    Webhook and hook endpoints (`/webhook`, `/webhooks/*`, `/hooks/{session_id}`) authenticate via HMAC-SHA256 signatures - they do NOT accept Bearer tokens.


    ## Base URL


    Default: `http://127.0.0.1:8052`. Override with env vars `BERNSTEIN_HOST` and `BERNSTEIN_PORT`.


    ## Error Format


    All errors return JSON with a `detail` field:


    ```json

    {"detail": "Task not found: task-xyz"}

    ```


    | Status | Meaning |

    |--------|---------|

    | 400 | Bad request (validation error) |

    | 401 | Unauthorized (missing/invalid token) |

    | 403 | Forbidden (IP not in allowlist) |

    | 404 | Resource not found |

    | 409 | Conflict (task already in terminal state) |

    | 429 | Rate limited - respect the `Retry-After` header |

    | 500 | Internal server error |'
  version: 3.22.0
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  contact:
    name: Alex Chernysh
    url: https://github.com/sipyourdrink-ltd/bernstein
servers:
- url: http://{host}:{port}
  description: Task server started by the Bernstein CLI on the operator's own machine. There is no hosted instance; substitute the host and port of your install.
  variables:
    host:
      default: 127.0.0.1
      description: Interface the task server binds to. Loopback by default.
    port:
      default: '8052'
      description: Task server port. Override with BERNSTEIN_PORT.
tags:


# --- truncated at 32 KB (127 KB total) ---
# Full source: https://artifacts.apis.io/bernstein-run/openapi/bernstein-run-tasks-api-openapi.yml