A2A(agent).get_router().
Base URL
8000.
Endpoints
GET /.well-known/agent.json
Retrieve the Agent Card for discovery. Request:GET /status
Check server status. Request:POST /a2a
Send JSON-RPC messages to the agent. Request:A2A Methods
message/send
Send a message to the agent. Request Body:| Field | Type | Required | Description |
|---|---|---|---|
jsonrpc | string | Yes | Must be “2.0” |
method | string | Yes | Must be “message/send” |
id | string | Yes | Request ID |
params.message.role | string | Yes | ”user” |
params.message.parts | array | Yes | Message parts |
| Type | Fields | Description |
|---|---|---|
text | text | Plain text content |
file | uri, mimeType | File attachment |
Error Responses
A2A errors follow JSON-RPC 2.0 format:| Code | Message |
|---|---|
-32700 | Parse error |
-32600 | Invalid request |
-32601 | Method not found |
-32602 | Invalid params |
-32603 | Internal error |
Python Client
JavaScript Client
Related
- A2A Server - Deploy agents as A2A server
- AGUI API - AG-UI protocol endpoints
- Agents API - HTTP REST endpoints

