A2A API
Agent-to-agent connections and passport verification.
A connection starts PENDING and stays unusable until its remote passport verifies against the key you registered. Blocking is immediate and applies to in-flight sessions.
#Endpoints
| Endpoint | Permission | Notes | |
|---|---|---|---|
POST |
/v1/a2a/connections/{connectionId}/capabilities |
a2a:updateagent:manage_capabilitiestool:createtool:update |
— |
POST |
/v1/a2a/connections/{connectionId}/test |
a2a:update |
— |
POST |
/v1/a2a/agent-card/preview |
a2a:connect |
— |
GET |
/v1/a2a/sample-partner |
none | — |
GET |
/v1/a2a/connections |
a2a:read |
— |
POST |
/v1/a2a/connections |
a2a:connect |
— |
POST |
/v1/a2a/connections/{connectionId}/verify |
a2a:update |
— |
POST |
/v1/a2a/connections/{connectionId}/block |
a2a:block |
— |
POST |
/v1/a2a/connections/{connectionId}/discover |
a2a:update |
— |
GET |
/v1/a2a/connections/{connectionId}/capabilities |
a2a:read |
— |
#What each endpoint does
#POST /v1/a2a/connections/{connectionId}/capabilities
Enable or disable capabilities on a connection. Enabling also creates and grants the capability and sets up its A2A tool.
Requires a2a:update, agent:manage_capabilities, tool:create, tool:update.
Request body:
json{
"enable": "string[]",
"disable": "string[]",
"grant": "boolean"
}
#POST /v1/a2a/connections/{connectionId}/test
One real call as the connection's agent, through the gateway's own path.
Requires a2a:update.
Request body:
json{
"capability": "string",
"action": "string",
"payload": "object"
}
#POST /v1/a2a/agent-card/preview
Read a peer's Agent Card before connecting. Nothing is stored.
Requires a2a:connect.
Request body:
json{
"endpoint_url": "string"
}
#GET /v1/a2a/sample-partner
Everything a connection to the Veefore sample partner needs.
Requires no console permission.
#GET /v1/a2a/connections
List A2A connections.
Requires a2a:read.
#POST /v1/a2a/connections
Register an A2A connection (starts PENDING).
Requires a2a:connect.
#POST /v1/a2a/connections/{connectionId}/verify
Verify the remote passport against the registered key.
Requires a2a:update.
#POST /v1/a2a/connections/{connectionId}/block
Block an A2A connection.
Requires a2a:block.
#POST /v1/a2a/connections/{connectionId}/discover
Fetch the peer's Agent Card and record its capabilities, pending review.
Requires a2a:update.
#GET /v1/a2a/connections/{connectionId}/capabilities
Capabilities recorded by the last discovery, with their risk seed.
Requires a2a:read.