OpenAgents

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.

Versioning and deprecation policy

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