One agent's A2A card
const url = 'http://localhost:11044/api/v1/agents/example/a2a/.well-known/agent-card.json';const options = {method: 'GET', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:11044/api/v1/agents/example/a2a/.well-known/agent-card.json \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The agent’s name
Responses
Section titled “Responses”The card
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Example generated
{ "additionalInterfaces": [ { "transport": "example", "url": "example" } ], "capabilities": { "extensions": [ { "description": "example", "params": { "additionalProperty": "example" }, "required": true, "uri": "example" } ], "pushNotifications": true, "stateTransitionHistory": true, "streaming": true }, "defaultInputModes": [ "example" ], "defaultOutputModes": [ "example" ], "description": "example", "documentationUrl": "example", "iconUrl": "example", "name": "example", "preferredTransport": "example", "protocolVersion": "example", "provider": { "organization": "example", "url": "example" }, "security": [ { "additionalProperty": [ "example" ] } ], "securitySchemes": { "additionalProperty": { "description": "example", "type": "example", "in": "example", "name": "example" } }, "signatures": [ { "header": { "additionalProperty": "example" }, "protected": "example", "signature": "example" } ], "skills": [ { "description": "example", "examples": [ "example" ], "id": "example", "inputModes": [ "example" ], "name": "example", "outputModes": [ "example" ], "security": [ { "additionalProperty": [ "example" ] } ], "tags": [ "example" ] } ], "supportsAuthenticatedExtendedCard": true, "url": "example", "version": "example"}No API key or session
The error object of a JSON-RPC response; the A2A card endpoints also answer a refusal with it as the whole body.
object
JSON-RPC or A2A error code: -32600 invalid request (also an agent that cannot be talked to now, or that this key may not reach), -32601 method not found, -32602 invalid params, -32603 internal error, -32001 task not found, -32002 task not cancelable, -32003 push notifications not supported, -32004 unsupported operation
What went wrong, in words for a person to read
Example generated
{ "code": 1, "message": "example"}The key does not talk to this agent
The error object of a JSON-RPC response; the A2A card endpoints also answer a refusal with it as the whole body.
object
JSON-RPC or A2A error code: -32600 invalid request (also an agent that cannot be talked to now, or that this key may not reach), -32601 method not found, -32602 invalid params, -32603 internal error, -32001 task not found, -32002 task not cancelable, -32003 push notifications not supported, -32004 unsupported operation
What went wrong, in words for a person to read
Example generated
{ "code": 1, "message": "example"}No agent of that name may be talked to now
The error object of a JSON-RPC response; the A2A card endpoints also answer a refusal with it as the whole body.
object
JSON-RPC or A2A error code: -32600 invalid request (also an agent that cannot be talked to now, or that this key may not reach), -32601 method not found, -32602 invalid params, -32603 internal error, -32001 task not found, -32002 task not cancelable, -32003 push notifications not supported, -32004 unsupported operation
What went wrong, in words for a person to read
Example generated
{ "code": 1, "message": "example"}
