OpenAgents Control Plane REST API Reference
The OpenAgents Control Plane REST API provides programmatic access to workspace health, authentication state, versioned conversations (/api/v2/*), projects, teams, environments, desktop hosts, memory ledger, and the progressive MCP gateway.
- Machine-readable OpenAPI 3.1 contract:
/openapi.json - RFC 9727 API Catalog:
/.well-known/api-catalog - Agent auth guide:
/auth.md
Versioning and deprecation policy
- URL path versioning: Conversation and sync APIs are explicitly versioned under
/api/v2/. All API responses also carry anAPI-Version: 2026-11-28header. - Deprecation guarantee: Breaking changes are introduced under a new major path prefix (
/api/v3/). Deprecated endpoints remain operational for at least 90 days after announcement and emit standard RFC 8594Deprecation: trueandSunsetHTTP headers alongside aLink: <...>; rel="successor-version"header.
Authentication
Pass a scoped Bearer token obtained via OAuth 2.1 or your workspace session:
curl -sS https://openagents.com/api/v2/conversations \
-H "Authorization: Bearer $OPENAGENTS_TOKEN"
Unauthenticated requests to protected endpoints return 401 Unauthorized with a WWW-Authenticate: Bearer resource_metadata="https://openagents.com/.well-known/oauth-protected-resource" header and a structured JSON error body.
Rate limits
All /api/* responses include standard IETF RateLimit headers so agents can throttle proactively:
RateLimit-Policy: "default";q=120;w=60
RateLimit: "default";r=119;t=60
RateLimit-Limit: 120
RateLimit-Remaining: 119
When a client exceeds its quota, the API returns HTTP 429 Too Many Requests with a Retry-After header (in seconds) and an RFC 9457 application/problem+json body.
Error model (RFC 9457)
Error responses return structured JSON (application/problem+json or application/json) with a machine-readable code, human-readable title / detail, status, and resolution guidance:
{
"type": "https://openagents.com/docs/api#errors",
"title": "API route not found",
"status": 404,
"code": "api_route_not_found",
"detail": "The requested OpenAgents API route does not exist.",
"instance": "https://openagents.com/api/v2/unknown",
"resolution": "Inspect available operations at https://openagents.com/openapi.json or https://openagents.com/.well-known/api-catalog.",
"documentation_url": "https://openagents.com/docs/api"
}
Pagination, idempotency, and async turns
- Pagination: List endpoints accept
limitandafter_event_id/ cursor parameters and return deterministic ordering. - Idempotency: Mutating turn and sync operations accept client-generated event/request identifiers and deduplicate retries safely.
- Async execution: Long-running agent turns execute asynchronously inside cloud sandboxes and stream progress over Server-Sent Events at
GET /api/v2/conversations/{id}/stream.