A2A server
Overview
Every ElevenLabs agent can be reached over the Agent2Agent (A2A) protocol, the open standard for agents built on different platforms to work together. An orchestrator agent built with Google ADK, Microsoft Foundry, LangGraph or any other A2A client can discover your agent, send it messages and get its replies, without a custom integration.
The agent answers with the same configuration it uses everywhere else: its prompt, knowledge base, tools, workflows and guardrails. Conversations over A2A run as text and appear in the agent’s conversation history like any other conversation.
The A2A server is in alpha and is enabled per workspace. Contact your account team to enable it. Until then, requests return an error saying the A2A server is not enabled for the workspace.
Endpoints
Each agent has its own agent card and JSON-RPC endpoint. Replace {agent_id} with your agent’s ID:
Workspaces in an isolated data residency environment use their region’s host instead of api.elevenlabs.io, for example api.eu.residency.elevenlabs.io.
The agent card tells A2A clients the agent’s name, the JSON-RPC URL, that replies stream, and that requests need an API key.
Authentication
Send an ElevenLabs API key in the xi-api-key header, on both the agent card and the JSON-RPC requests. Create a dedicated key in the same workspace as the agent and scope it to ElevenAgents with write access.
Anyone with the key can talk to every agent in the workspace that the key can access. Store it in your A2A client’s secret store, and do not put it in client-side code.
Send a message
SendMessage sends one user message and returns the agent’s reply as a Message:
A request without a contextId starts a new conversation, and the reply carries its contextId. To continue the conversation, send the next message with that contextId. The agent then remembers everything said earlier in it.
Stream the reply
SendStreamingMessage takes the same parameters and returns server-sent events, each a JSON-RPC response:
- A
taskin theTASK_STATE_WORKINGstate. artifactUpdateevents with the reply text as the agent generates it, one artifact per reply.- A
statusUpdatewith the terminal state:TASK_STATE_COMPLETED, orTASK_STATE_FAILEDwith the reason instatus.message.
Track text by artifactId: append it when append is true, and replace the stored text when append is false. The closing update contains the full reply with append: false and lastChunk: true, so replace the accumulated text with that final reply.
Each task covers one turn: it ends when the agent has answered. Continue the conversation with the contextId, not the task ID.
Use your agent from other agents
A2A clients only need the agent card URL and the API key header.
Google ADK
With Google ADK, wrap your agent in a RemoteA2aAgent and hand it to an orchestrator as a sub-agent. The orchestrator decides when to delegate, and ADK sends the follow-up messages in the same conversation:
Run it with adk web and ask the assistant about an order. The assistant transfers the conversation to your ElevenLabs agent, which answers over A2A and remembers earlier turns:

A2A Python SDK
With the A2A Python SDK 1.x, create a client from the agent’s base URL. The client discovers the agent card automatically:
Protocol support
The server supports A2A v1.0 and v0.3 over the same JSON-RPC endpoint. The examples above use v1.0; v0.3 clients use different method names and message shapes:
Both versions carry contextId on the reply message. Reuse it in params.message.contextId for the next turn, and omit taskId.
Tasks cannot be retrieved, canceled or resumed through the task methods. GetTask, CancelTask and SubscribeToTask (v0.3: tasks/get, tasks/cancel and tasks/resubscribe) return TaskNotFoundError. ListTasks in v1.0 returns an empty list.
Malformed message parameters return a JSON-RPC error with code -32602 and the request’s id. For example, role must be a string; an array or object is invalid. This also applies to streaming requests, which return a JSON error response before a stream starts.
The agent card is also served at /v1/convai/a2a/{agent_id}/.well-known/agent.json for clients that look for it there. Both card URLs require the same xi-api-key header as the JSON-RPC endpoint.
Limitations
These cases return an error instead of a reply:
- Text only. Messages must contain only text parts. Files and structured data are refused with
ContentTypeNotSupportedError. - Voice agents run as text only when their security settings allow clients to override text-only mode. Otherwise, make the agent text-only.
- Zero Retention Mode agents can’t be reached over A2A.
- No client tools. A2A clients can’t answer client tool calls. If the agent calls one, the tool returns an error to the agent and the turn continues.
- No push notifications. Use streaming to get the reply as it’s generated.
- Conversation webhooks. A2A text conversations do not invoke voice conversation-initiation webhooks or automatically run post-call analysis and webhooks.