The BMA HTTP /v1 API is the application-facing REST and Server-Sent Events (SSE) API called by bma-sdk (Go, TypeScript, Python), the bma CLI, and the official Anthropic SDKs.
  • Core routes (x-bma-extension: false) follow the Anthropic Managed Agents API (managed-agents-2026-04-01): agents, environments, sessions, events, files, memory stores, skills, vaults, models, user profiles, organizations and webhooks.
  • BMA extension routes (x-bma-extension: true) extend the same /v1 conventions to persistent machines, machine pools, remote desktop sessions, interactive terminal sessions, single-use tickets, custom model providers, session forks and MCP OAuth.

Base URL and headers

Authentication & key boundaries

  • Keep API keys on your server. Organization API keys (bma_org_v1_…) are created in the dashboard and shown once; an API key cannot mint another API key.
  • Browser / desktop / mobile clients never hold organization API keys. Your backend calls /v1/desktop_sessions/{id}/tickets or /v1/terminal_sessions/{id}/tickets to mint a scoped ticket and hands only that ticket to the client.
  • Executors and local brains authenticate with machine tokens or environment keys against the bma-executor-sdk Protocol Reference.

Pagination, filtering & streaming

  • Cursor pagination: list endpoints return {"data": [...], "next_page": "…"}. Pass next_page as page and control page size with limit.
  • Metadata filtering: GET /v1/sessions supports repeatable metadata=key:value query parameters for exact multi-key filtering within the caller’s workspace.
  • Resumable SSE: GET /v1/sessions/{id}/events/stream emits durable events carrying bma_sequence. Reconnect with Last-Event-ID: <bma_sequence> (or use bma-sdk’s sendAndStream / stream, which resumes automatically).

Errors

All /v1 errors use the Anthropic error envelope with BMA’s machine-readable error.code:
401 means a missing or invalid key, 403 missing permission, 404 missing or out-of-scope resource (cross-tenant reads always return 404), and 412 an If-Match precondition mismatch. See the complete Error reference.

Domains

All 170+ HTTP /v1 endpoints in the sidebar are grouped into 17 canonical domains: