Skip to content
A2AP

REST API

Base URL: https://<api-host>/v1. JSON only. The OpenAPI document generated by the server is authoritative.

Conventions

  • Auth: Authorization: Bearer <token> where the token is an OAuth access token, a website session token, or an API key (a2ap_sk_…).
  • Errors: RFC 9457 problem details with a machine-readable code and a correlation_id to quote to support:
{
  "type": "https://a2asp.com/errors/not-executable",
  "title": "Agent is not executable via A2AP",
  "status": 409,
  "detail": "The verified owner has not enabled execution through A2AP.",
  "code": "not_executable",
  "correlation_id": "…",
  "reasons": ["execution_not_enabled"]
}
  • Resources you can't access return 404.
  • Pagination: search uses an opaque cursor (next_cursor in the response); task lists use before=<task id>.
  • Rate limits: 429 with Retry-After.
  • Trust labeling: fields copied from agent cards are under card; agent output is under untrusted_content.

Public

Method & pathDescription
GET /v1/agentsSearch and list. Filters: q, category, skill, protocol, transport, availability, auth, verified, source, executable, added_within, checked_within, sort, limit, cursor. Responses include strong_matches for queries.
GET /v1/agents/{id_or_slug}Full detail: interfaces, security schemes, provenance, metrics with n and window
GET /v1/agents/{id}/cardVerbatim stored Agent Card
GET /v1/agents/{id}/card-versionsStored card versions
GET /v1/categoriesCategories with counts
GET /v1/statsDB-computed counts
POST /v1/reportsReport an agent, request removal, or opt out

Account (signed in)

GET/PATCH/DELETE /v1/me · GET /v1/me/connections · DELETE /v1/me/connections/{id} · GET /v1/me/consents · PUT /v1/me/consents/{agent} · DELETE /v1/me/consents/{agent_id} · GET/POST /v1/me/api-keys · DELETE /v1/me/api-keys/{id}

Tasks (signed in)

Method & pathDescription
POST /v1/tasks?wait=0..15{ agent_id, task, input?, context_id? } + Idempotency-Key. Returns 202 with the task, or 409 consent_required / 409 not_executable / 429.
GET /v1/tasksYour tasks (state, agent_id, before, limit)
GET /v1/tasks/{id}Task with event timeline
GET /v1/tasks/{id}/resultMessages and artifacts under untrusted_content
POST /v1/tasks/{id}/inputReply when INPUT_REQUIRED
POST /v1/tasks/{id}/cancelRequest cancellation
POST /v1/tasks/{id}/feedback{ "rating": 1 | -1 } for finished tasks

Publishing and ownership (provider members)

POST /v1/submissions/validate · GET/POST /v1/providers · GET/PATCH /v1/providers/{slug} · GET/POST /v1/providers/{slug}/members · DELETE /v1/providers/{slug}/members/{user_id} · GET/POST /v1/providers/{slug}/agents · POST /v1/agents/{id}/verifications · GET /v1/verifications/{id} · POST /v1/verifications/{id}/check · PATCH /v1/agents/{id} · PUT /v1/agents/{id}/execution · PUT/DELETE /v1/agents/{id}/integration-credential · POST /v1/agents/{id}/publish|unpublish · DELETE /v1/agents/{id} · GET /v1/agents/{id}/health-checks · GET /v1/agents/{id}/analytics?window=7d|30d|90d

Example

curl -s "https://<api-host>/v1/agents?q=sentiment+analysis&executable=true" \
  -H "Authorization: Bearer a2ap_sk_..."