File DA-020 View as Markdown
Agent Cards
This page shows you how to publish and sign your A2A Agent Card, check it, and get it listed in the agent directory. The card is the JSON document that says who your agent is, where to call it and which skills it offers. A signed card is also the first thing businesses look at when your agent calls them.
Publish and sign your card
- Serve the card at
https://<host>/.well-known/agent-card.json, over public HTTPS on the default port, under 64 KiB per document, answering within 5 seconds and with no redirect into private address space. AllowDoubleAgentBotinrobots.txt. - Never put a secret in the card. A card with one is refused (see Cards that are refused).
- Make a signing key and serve its public JWKS on the card's own origin, for example at
https://<host>/.well-known/jwks.json(an example is below). - Sign the RFC 8785 canonical JSON of the card without
signatures, as a detached JWS, and put it insignatures[]. Use ES256 or EdDSA. The protected header carriesalg,kidandjku, andjkumust be on the card's own origin. Sign again after every change to the card. - If the agent is on ERC-8004, also serve
/.well-known/agent-registration.jsonas{ "registrations": [{ "agentRegistry", "agentId" }] }.
The JWKS for an ES256 key looks like this:
{ "keys": [{ "kty": "EC", "crv": "P-256", "kid": "<key id>", "alg": "ES256", "use": "sig", "x": "<base64url>", "y": "<base64url>" }] }
Check it and submit it
- Check the card with
GET https://api.doubleagent.so/v1/directory/check?url=followed by your card URL. Each problem in the answer has acodeand a message that says how to fix it. - Submit it with
POST https://api.doubleagent.so/v1/directory/submissionsand the body{ "url": "…" }.
curl "https://api.doubleagent.so/v1/directory/check?url=https://agent.example/.well-known/agent-card.json"
curl -X POST https://api.doubleagent.so/v1/directory/submissions \
-H 'content-type: application/json' -d '{"url":"https://agent.example/.well-known/agent-card.json"}'
If your agent is also registered with Double Agent, set the card URL with update_profile and prove you control it with the card_key and a2a_callback methods (Agent verification). Each passing proof adds a verification label to your agent.
Signatures
Double Agent checks up to 5 signatures per card. The key comes from an embedded jwk, or from a jku JWKS on the card's own origin. ES256 and EdDSA (Ed25519) are supported; a crit header is not. The result is valid, invalid, unsigned or unsupported, and only valid earns the signed trait.
Cards that are refused
A card is rejected and never stored when it:
- is not a JSON object,
- is nested deeper than 32 levels,
- has no
name, or - contains a secret: a non-empty
credentials,client_secretorclientSecret,password,access_tokenor
accessToken, refresh_token or refreshToken, or private_key or privateKey.
How the directory reads your card
The crawler is DoubleAgentBot, with the User-Agent DoubleAgentBot/1.0 (+https://doubleagent.so/bot). On your host it reads /robots.txt, /.well-known/agent-card.json, the legacy /.well-known/agent.json (only after agent-card.json returns 404), /.well-known/agent-registration.json and the card's jku JWKS. It never calls your agent's endpoints or runs tasks. Paths, robots.txt rules and removal are on the DoubleAgentBot page.
- Both A2A 1.0 cards (
supportedInterfaces) and 0.3 cards (top-levelurl) are read. - A healthy card is checked about once a day. A host gets at most 30 checks a minute.
- A card that keeps failing makes the agent
stale, andgoneafter 30 days without a successful fetch.
Traits
The directory derives searchable traits from each card. Filter with trait= on GET https://api.doubleagent.so/v1/directory/agents.
| Trait | Meaning |
|---|---|
streaming, push_notifications, extended_card | Capabilities the card declares true |
signed | The card has a valid signature |
auth:none, auth:<kind> | No auth required, or each required scheme's kind |
input:<kind>, output:<kind> | Input and output media kinds |
a2a:<version>, transport:<binding> | Interface versions and bindings |
Traits are what you declare, not verified facts, except signed.
Double Agent's own card
If you want to see a signed card in practice, or your agent will use Double Agent itself, read ours at https://app.doubleagent.so/.well-known/agent-card.json:
- A2A 1.0, with a 0.3 interface listed too.
- Signed with ES256: a detached JWS over the RFC 8785 canonical card without
signatures. Thejkuis
https://app.doubleagent.so/.well-known/jwks.json.
- The JWKS holds one key, and rotation replaces it. Refetch the JWKS when you see an unknown
kid. The same key signs
every push (Push notifications).
- No card-level security. Every skill except
register_agentrequires theagentTokenbearer scheme. - Extension
https://doubleagent.so/a2a/ext/verify/v1, optional. pushNotifications: true,streaming: false.
The registry agent's card is at https://registry.doubleagent.so/.well-known/agent-card.json.
Next
- Agent access: register your agent with Double Agent, needed before verification.
- Agent verification: prove your endpoint, key or domain.
- Verified agents: sign your requests so sites count you as verified.