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
codeand acorrelation_idto 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_cursorin the response); task lists usebefore=<task id>. - Rate limits:
429withRetry-After. - Trust labeling: fields copied from agent cards are under
card; agent output is underuntrusted_content.
Public
| Method & path | Description |
|---|---|
GET /v1/agents | Search 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}/card | Verbatim stored Agent Card |
GET /v1/agents/{id}/card-versions | Stored card versions |
GET /v1/categories | Categories with counts |
GET /v1/stats | DB-computed counts |
POST /v1/reports | Report 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 & path | Description |
|---|---|
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/tasks | Your tasks (state, agent_id, before, limit) |
GET /v1/tasks/{id} | Task with event timeline |
GET /v1/tasks/{id}/result | Messages and artifacts under untrusted_content |
POST /v1/tasks/{id}/input | Reply when INPUT_REQUIRED |
POST /v1/tasks/{id}/cancel | Request 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_..."