{ "jsonrpc": "2.0", "result": { "id": "task-456", "status": { "state": "completed", "message": { "role": "agent", "parts": [ { "type": "text", "text": "The A2A (Agent-to-Agent) protocol is a standardized communication protocol developed by Google for enabling structured communication between AI agents. It uses JSON-RPC 2.0 over HTTP/HTTPS and supports features like multi-turn conversations, file uploads, and streaming responses." } ] } }, "contextId": "ctx-abc123", "final": true }, "id": "req-001"}
{ "jsonrpc": "2.0", "result": { "id": "task-456", "status": { "state": "completed", "message": { "role": "agent", "parts": [ { "type": "text", "text": "The A2A (Agent-to-Agent) protocol is a standardized communication protocol developed by Google for enabling structured communication between AI agents. It uses JSON-RPC 2.0 over HTTP/HTTPS and supports features like multi-turn conversations, file uploads, and streaming responses." } ] } }, "contextId": "ctx-abc123", "final": true }, "id": "req-001"}
The message/send method is the primary way to communicate with A2A agents synchronously. Send a message and receive a complete response in a single HTTP request.
Synchronous Communication: This method blocks until the agent provides a complete response. For streaming responses, use message/stream instead.
Request
Headers
string
required
Must be application/json
string
required
Your API key for authentication
Path Parameters
string
required
Unique identifier of the target agent
Body Parameters
string
required
JSON-RPC version, must be "2.0"
string
required
Unique identifier for this request (for response correlation)
string
required
Must be "message/send"
object
required
Message parameters object
Show params properties
object
required
The message to send to the agent
Show message properties
string
required
Message role, must be "user"
string
required
UUID v4 identifier for this message
array
required
Array of message parts (text, files, etc.)
Show parts array items
string
required
Part type: "text" or "file"
string
Text content (required when type is “text”)
object
File object (required when type is “file”)
Show file properties
string
required
Original filename
string
required
MIME type of the file
string
required
Base64 encoded file content (without data URL prefix)
string
Context ID for multi-turn conversations (from previous response)
string
Optional session identifier for grouping related messages
string
Optional task ID for this operation
Response
Success Response
string
JSON-RPC version, always "2.0"
object
Result object containing the agent’s response
Show result properties
string
Task ID for this operation
object
Status information
Show status properties
string
Task state: "completed", "working", "failed", or "canceled"
object
Agent’s response message
Show message properties
string
Message role, always "agent"
array
Array of response parts
Show parts array items
string
Part type, typically "text"
string
Response text content
string
Context ID for multi-turn conversations (save for subsequent messages)
boolean
Whether this is the final response (always true for message/send)
{ "jsonrpc": "2.0", "result": { "id": "task-456", "status": { "state": "completed", "message": { "role": "agent", "parts": [ { "type": "text", "text": "The A2A (Agent-to-Agent) protocol is a standardized communication protocol developed by Google for enabling structured communication between AI agents. It uses JSON-RPC 2.0 over HTTP/HTTPS and supports features like multi-turn conversations, file uploads, and streaming responses." } ] } }, "contextId": "ctx-abc123", "final": true }, "id": "req-001"}