Bernstein Acp API

The Acp API from Bernstein — 8 operation(s) for acp.

Operations 10

GET /acp/v0/agents List Acp Agents #
GET /acp/v0/agents/{agent_id} Get Acp Agent #
POST /acp/v0/runs Create Acp Run #
GET /acp/v0/runs/{run_id} Get Acp Run #
DELETE /acp/v0/runs/{run_id} Cancel Acp Run #
GET /api/v1/acp/v0/agents List Acp Agents #
GET /api/v1/acp/v0/agents/{agent_id} Get Acp Agent #
POST /api/v1/acp/v0/runs Create Acp Run #
GET /api/v1/acp/v0/runs/{run_id} Get Acp Run #
DELETE /api/v1/acp/v0/runs/{run_id} Cancel Acp Run #

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-acp-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-acp-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Bernstein Task Server Acp 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:
- name: Acp
paths:
  /acp/v0/agents:
    get:
      summary: List Acp Agents
      description: List all ACP-advertised agents.
      operationId: list_acp_agents_acp_v0_agents_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/ACPAgentListEntry'
                type: array
                title: Response List Acp Agents Acp V0 Agents Get
      tags:
      - Acp
  /acp/v0/agents/{agent_id}:
    get:
      summary: Get Acp Agent
      description: Get detailed metadata for a specific ACP agent.
      operationId: get_acp_agent_acp_v0_agents__agent_id__get
      parameters:
      - name: agent_id
        in: path
        required: true
        schema:
          type: string
          title: Agent Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ACPAgentResponse'
        '404':
          description: ACP agent not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Acp
  /acp/v0/runs:
    post:
      summary: Create Acp Run
      description: 'Create an ACP run - creates a Bernstein task and links it.


        Editors call this when the user submits a goal via the ACP sidebar.'
      operationId: create_acp_run_acp_v0_runs_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ACPRunCreateRequest'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ACPRunResponse'
        '400':
          description: Unknown ACP agent
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Acp
  /acp/v0/runs/{run_id}:
    get:
      summary: Get Acp Run
      description: Get ACP run status, syncing from the underlying Bernstein task.
      operationId: get_acp_run_acp_v0_runs__run_id__get
      parameters:
      - name: run_id
        in: path
        required: true
        schema:
          type: string
          title: Run Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ACPRunResponse'
        '404':
          description: ACP run not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Acp
    delete:
      summary: Cancel Acp Run
      description: Cancel an ACP run and its underlying Bernstein task.
      operationId: cancel_acp_run_acp_v0_runs__run_id__delete
      parameters:
      - name: run_id
        in: path
        required: true
        schema:
          type: string
          title: Run Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ACPRunResponse'
        '404':
          description: ACP run not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Acp
  /api/v1/acp/v0/agents:
    get:
      summary: List Acp Agents
      description: List all ACP-advertised agents.
      operationId: list_acp_agents_api_v1_acp_v0_agents_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/ACPAgentListEntry'
                type: array
                title: Response List Acp Agents Api V1 Acp V0 Agents Get
      tags:
      - Acp
  /api/v1/acp/v0/agents/{agent_id}:
    get:
      summary: Get Acp Agent
      description: Get detailed metadata for a specific ACP agent.
      operationId: get_acp_agent_api_v1_acp_v0_agents__agent_id__get
      parameters:
      - name: agent_id
        in: path
        required: true
        schema:
          type: string
          title: Agent Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ACPAgentResponse'
        '404':
          description: ACP agent not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Acp
  /api/v1/acp/v0/runs:
    post:
      summary: Create Acp Run
      description: 'Create an ACP run - creates a Bernstein task and links it.


        Editors call this when the user submits a goal via the ACP sidebar.'
      operationId: create_acp_run_api_v1_acp_v0_runs_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ACPRunCreateRequest'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ACPRunResponse'
        '400':
          description: Unknown ACP agent
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Acp
  /api/v1/acp/v0/runs/{run_id}:
    get:
      summary: Get Acp Run
      description: Get ACP run status, syncing from the underlying Bernstein task.
      operationId: get_acp_run_api_v1_acp_v0_runs__run_id__get
      parameters:
      - name: run_id
        in: path
        required: true
        schema:
          type: string
          title: Run Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ACPRunResponse'
        '404':
          description: ACP run not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Acp
    delete:
      summary: Cancel Acp Run
      description: Cancel an ACP run and its underlying Bernstein task.
      operationId: cancel_acp_run_api_v1_acp_v0_runs__run_id__delete
      parameters:
      - name: run_id
        in: path
        required: true
        schema:
          type: string
          title: Run Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ACPRunResponse'
        '404':
          description: ACP run not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Acp
components:
  schemas:
    ACPAgentResponse:
      properties:
        name:
          type: string
          title: Name
        description:
          type: string
          title: Description
        protocol_version:
          type: string
          title: Protocol Version
        capabilities:
          items:
            $ref: '#/components/schemas/ACPAgentCapabilityResponse'
          type: array
          title: Capabilities
        endpoint:
          type: string
          title: Endpoint
        provider:
          type: string
          title: Provider
      type: object
      required:
      - name
      - description
      - protocol_version
      - capabilities
      - endpoint
      - provider
      title: ACPAgentResponse
      description: ACP agent metadata.
    ACPAgentListEntry:
      properties:
        name:
          type: string
          title: Name
        description:
          type: string
          title: Description
        endpoint:
          type: string
          title: Endpoint
      type: object
      required:
      - name
      - description
      - endpoint
      title: ACPAgentListEntry
      description: Entry in the agents list.
    ACPRunCreateRequest:
      properties:
        input:
          type: string
          title: Input
        agent_id:
          type: string
          title: Agent Id
          default: bernstein
        role:
          type: string
          title: Role
          default: backend
      type: object
      required:
      - input
      title: ACPRunCreateRequest
      description: Body for POST /acp/v0/runs.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    ACPRunResponse:
      properties:
        run_id:
          type: string
          title: Run Id
        bernstein_task_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Bernstein Task Id
        input:
          type: string
          title: Input
        role:
          type: string
          title: Role
        status:
          type: string
          title: Status
        created_at:
          type: number
          title: Created At
        updated_at:
          type: number
          title: Updated At
      type: object
      required:
      - run_id
      - input
      - role
      - status
      - created_at
      - updated_at
      title: ACPRunResponse
      description: ACP run in responses.
    ACPAgentCapabilityResponse:
      properties:
        name:
          type: string
          title: Name
        description:
          type: string
          title: Description
        input_schema:
          additionalProperties: true
          type: object
          title: Input Schema
      type: object
      required:
      - name
      - description
      title: ACPAgentCapabilityResponse
      description: Single ACP capability entry.