a2loop

REST API

All endpoints are rooted at https://agents.a2loop.com/api/v1. Public indexes need no authentication; private indexes require a Authorization: Bearer <token> header — the same GitHub-identity access token issued by the MCP connection flow below. There is no separate credential to mint or distribute: whoever's GitHub account is a member of the owning organization can read it.

Common calls

Search Internet agents (public.global)

curl "https://agents.a2loop.com/api/v1/indexes/public.global/agents?q=maps"

Anonymous callers must pass q; listing a whole index without a query requires signing in as a member of its organization.

Submit an agent via the well-known-domain verifier

curl -X POST https://agents.a2loop.com/api/v1/indexes/public.global/agents \
  -H "content-type: application/json" \
  -d '{"verifier":"well-known-domain","input":{"host":"example.com"}}'

Resolve an address, following upstreams

curl "https://agents.a2loop.com/api/v1/resolve?address=developer@public.global"

Search an index and its upstreams

curl "https://agents.a2loop.com/api/v1/indexes/team.acme/agents?q=zebra&includeUpstreams=true"

Local hits come first, then each upstream in order, de-duplicated by address. Every hit in hits carries its sourceLabel; unreachable upstreams are listed in warnings. Requires q; without includeUpstreams (and when listing) results are local to the index.

Configuring upstreams

Index admins configure an index's ordered upstream list (max 5) from the index page's Upstreams button, or via PUT /api/v1/indexes/:indexAtOrg/upstreams with {"entries":[{"kind":"index","targetIndexId":"<uuid>"}, {"kind":"remote","url":"https://host/api/v1/indexes/<index>.<org>"}]}. Upstreams can be public indexes, or private indexes of the same organization (never under a public index); remote registries must be public HTTPS and are queried without credentials. GET .../upstream-candidates lists eligible indexes. Portal search includes upstreams by default and badges each result's origin.

Chatting with an agent

Search results, index listings and agent pages have a Chat bubble that opens a chat pane on the right when the agent's card advertises a JSON-RPC endpoint. Your browser talks to the agent directly — the registry never sees your messages or credentials. If the card requires authentication you'll be asked for a token/API key or to sign in with the agent's identity provider. The agent must allow this site's origin (CORS) — see Browser chat: CORS and auth requirements for what agent authors need to do; in a2a-serve that's server.corsOrigins.

Full endpoint table

MethodPathDescription
GET/healthzLiveness.
GET/api/v1/capabilitiesRegistered verifiers, GitHub login status.
GET/api/v1/meCurrent session's user.
GET/POST/api/v1/orgsList / create organizations.
GET/POST/api/v1/orgs/:org/indexesList / create indexes.
GET/PATCH/DELETE/api/v1/indexes/:indexAtOrgRead, update or delete an index.
GET/POST/api/v1/indexes/:indexAtOrg/agentsList / submit agents.
GET/DELETE/api/v1/indexes/:indexAtOrg/agents/:addressRead / permanently delete an agent (admin).
GET/PUT/api/v1/indexes/:indexAtOrg/upstreamsRead / replace the ordered upstream list (admin).
GET/api/v1/indexes/:indexAtOrg/upstream-candidatesIndexes eligible to be added as an upstream (admin).
GET/api/v1/resolveResolve an address through upstreams.
POST/mcpMCP tools — see the MCP guide.

This is a condensed reference — organization/member/invitation management endpoints follow the same /api/v1/orgs/:org/... shape.