The A2A specification is the formal definition of the Agent2Agent (A2A) protocol: the rules and data structures that let independent AI agents discover each other, exchange messages and manage shared tasks over HTTP. Version 1.0 splits the protocol into a canonical data model, a set of abstract operations and three standard bindings: JSON-RPC 2.0, gRPC and HTTP+JSON.
Google introduced A2A in April 2025 and donated it to the Linux Foundation on June 23, 2025, where the a2aproject GitHub organization maintains the spec and its SDKs. Version 1.0.0 shipped on March 12, 2026, with a 1.0.1 patch on May 26, 2026, per the project changelog.
The A2A protocol page explains the concepts; this page covers what the specification requires. Bifrost, the open-source AI gateway, implements the v1 wire format for agent traffic.
What does the A2A specification define?
The A2A specification defines three layers. Layer 1 is a canonical data model of tasks, messages, parts, artifacts and Agent Cards. Layer 2 is a set of 11 abstract operations that act on those objects. Layer 3 is the protocol bindings that map each operation onto JSON-RPC, gRPC or HTTP+JSON.

Figure 1: Semantics live in the top two layers, so every binding behaves the same and new bindings change nothing above them.
The normative source is one file, spec/a2a.proto. SDKs, JSON schemas and docs must be regenerated from its Protocol Buffers definitions, never edited by hand. JSON serializations use camelCase field names (contextId, not context_id), and enum values follow ProtoJSON, so a state is written TASK_STATE_INPUT_REQUIRED. Requirements use RFC 2119 keywords: MUST, SHOULD and MAY carry their standard meanings.
The official specification lists its design principles: reuse existing standards such as HTTP, JSON-RPC 2.0 and server-sent events, treat long-running and human-in-the-loop work as normal, and keep execution opaque. Opaque execution means agents collaborate through declared capabilities and exchanged content without sharing their internal plans, prompts, memory or tools.
A2A specification core objects
The spec builds every operation on six objects. A task is the stateful unit of work, a message is one turn of communication, a part is one piece of content, an artifact is an output, a context ID groups related tasks, and the Agent Card describes the agent itself.
| Object | Role | Key fields in v1.0 |
|---|---|---|
| Task | Stateful unit of work created by the remote agent | id, contextId, status, artifacts, history |
| Message | One turn from the client (ROLE_USER) or the agent (ROLE_AGENT) | messageId, role, parts, optional taskId, contextId |
| Part | Smallest unit of content; the member name identifies the type | Exactly one of text, raw, url or data, plus mediaType |
| Artifact | An output the agent produced for a task | artifactId, name, parts |
| Context | Groups related tasks and messages into one conversation | contextId |
| Agent Card | Self-describing manifest of the agent | supportedInterfaces, capabilities, skills, securitySchemes |
Messages start tasks, ask for clarification and report status; results SHOULD come back as artifacts.
What is an A2A agent card?
An A2A agent card is the JSON manifest an A2A server publishes to describe itself. The required fields are name, description, version, supportedInterfaces, capabilities, defaultInputModes, defaultOutputModes and skills. Optional fields include provider, securitySchemes, securityRequirements, signatures and iconUrl.
{
"name": "Library Research Agent",
"description": "Answers questions about software libraries.",
"version": "1.2.0",
"supportedInterfaces": [
{"url": "https://research.example.com/a2a", "protocolBinding": "JSONRPC", "protocolVersion": "1.0"},
{"url": "research.example.com:443", "protocolBinding": "GRPC", "protocolVersion": "1.0"}
],
"capabilities": {"streaming": true, "pushNotifications": true},
"defaultInputModes": ["text/plain"],
"defaultOutputModes": ["text/plain", "application/json"],
"skills": [{"id": "lib-qa", "name": "Library Q&A", "description": "Explains library APIs.", "tags": ["docs"]}]
}
The first entry in supportedInterfaces is the preferred interface, and clients MUST pick the first one they support. The A2A Agent Card guide walks through each field.
How A2A agent discovery works
A2A agent discovery works in three ways: fetching https://{server_domain}/.well-known/agent-card.json, querying a registry or catalog, or configuring the card URL directly. Servers SHOULD send Cache-Control and an ETag on the card, and clients SHOULD revalidate with If-None-Match per RFC 9111. Cards MAY be signed with JSON Web Signature (RFC 7515) over a JSON Canonicalization Scheme (RFC 8785) form, so a client can detect tampering. An authenticated client can call GetExtendedAgentCard for details the public card omits.
How the A2A task lifecycle works
The A2A task lifecycle runs from TASK_STATE_SUBMITTED through TASK_STATE_WORKING to one of four terminal states: completed, failed, canceled or rejected. Two interrupted states, TASK_STATE_INPUT_REQUIRED and TASK_STATE_AUTH_REQUIRED, pause the same task until the client responds with the task's ID.

Figure 2: Interrupted states pause the same task; terminal states end it, and a follow-up needs a new task in the same context.
Three rules shape client behavior:
SendMessageblocks by default. Unless the request setsreturnImmediately: true, the call MUST wait until the task reaches a terminal or interrupted state before returning.- Retries need care.
GetTask,ListTasksandCancelTaskare idempotent, butSendMessageonly MAY be. An agent can deduplicate onmessageId, so reuse the same ID when retrying. - Visibility is scoped. Servers MUST return only tasks the authenticated caller is allowed to see, including in
ListTasks, which returns 50 tasks per page by default and at most 100.
Clients get updates in one of three ways. Polling calls GetTask. Streaming uses SendStreamingMessage or SubscribeToTask and requires capabilities.streaming; the JSON-RPC binding carries it over server-sent events. Push notifications send HTTP POST requests to a client webhook and require capabilities.pushNotifications. The Bifrost guide to messages, tasks and events shows each pattern as a request.
A2A operations and protocol bindings
The A2A specification defines 11 operations and maps each one onto three standard A2A bindings: JSON-RPC 2.0 over HTTP(S), gRPC, and HTTP+JSON (often called REST). JSON-RPC and gRPC share method names; HTTP+JSON uses resource-style paths.
| Operation | JSON-RPC and gRPC method | HTTP+JSON endpoint |
|---|---|---|
| Send message | SendMessage | POST /message:send |
| Send streaming message | SendStreamingMessage | POST /message:stream |
| Get task | GetTask | GET /tasks/{id} |
| List tasks | ListTasks | GET /tasks |
| Cancel task | CancelTask | POST /tasks/{id}:cancel |
| Subscribe to task | SubscribeToTask | POST /tasks/{id}:subscribe |
| Push notification configs (create, get, list, delete) | CreateTaskPushNotificationConfig and siblings | /tasks/{id}/pushNotificationConfigs |
| Get extended Agent Card | GetExtendedAgentCard | GET /extendedAgentCard |
Every binding MUST behave the same, and errors map one to one. The nine A2A-specific errors use JSON-RPC codes -32001 to -32009: TaskNotFoundError is -32001, gRPC NOT_FOUND and HTTP 404, while VersionNotSupportedError is -32009 and HTTP 400. Webhook calls always use plain HTTP with HTTP+JSON payloads, whichever binding the agent speaks.
Authentication in the A2A specification
A2A handles authentication by declaration: the Agent Card lists securitySchemes modeled on the OpenAPI 3.2 security scheme object, and clients obtain credentials out of band. The five scheme types are API key, HTTP authentication (Basic or Bearer), OAuth 2.0, OpenID Connect and mutual TLS.
For OAuth 2.0, the specification supports the authorization code flow, with a pkceRequired flag, plus client credentials and the device code flow (RFC 8628). It marks the implicit and password flows deprecated. Servers MUST reject missing or invalid credentials and SHOULD say which scheme is required.
Authorization can also arise mid-task. When an agent needs an OAuth token or a human approval to continue, it moves the task to TASK_STATE_AUTH_REQUIRED, explains what it needs in the status message, and receives the credential out of band. Carrying the original caller's identity across several agents is left to the deployment; the A2A security guide covers the gaps.
A2A versioning and what changed in v1.0
A2A versions are negotiated per request with the A2A-Version header, which carries only Major.Minor, such as 1.0. Clients MUST send it; servers MUST treat an empty value as 0.3 and return VersionNotSupportedError for versions they cannot serve. Each entry in supportedInterfaces declares its own protocolVersion, so one agent can serve 0.3 and 1.0 side by side.
The v1.0 migration notes list the breaking changes from v0.3, which most tutorials still show:
| Area | v0.3 | v1.0 |
|---|---|---|
| Method names | message/send, tasks/get, tasks/resubscribe | SendMessage, GetTask, SubscribeToTask |
| Polymorphism | "kind": "text" discriminator on parts and events | Member name decides the type (text, raw, statusUpdate) |
| Task state values | working, input-required | TASK_STATE_WORKING, TASK_STATE_INPUT_REQUIRED |
| Interfaces | preferredTransport plus additionalInterfaces | One ordered supportedInterfaces list |
| Protocol version | On the Agent Card | On each interface |
| HTTP+JSON paths | /v1/message:send | /message:send |
| New in v1.0 | ListTasks, tenant field, device code flow, signed card canonicalization |
The 1.0.1 patch changed no wire semantics; it made application/a2a+json the preferred media type for HTTP+JSON and fixed task status wording.
How to implement the A2A specification
Implementing A2A means building an A2A server that publishes an Agent Card and serves at least one binding, and a client that reads the card and follows tasks. Official SDKs exist for Python, Go, Java, JavaScript, .NET and Rust, and they generate types from a2a.proto.
- Write the Agent Card. List skills, input and output media types, and every interface in preference order with
protocolVersion: "1.0". - Implement the operations. At minimum
SendMessage,GetTaskandCancelTask; add streaming and push only if the card advertises them. - Share task state across interfaces. A task created over JSON-RPC must be readable over gRPC if both are listed.
- Declare and enforce authentication. Publish
securitySchemes, reject unauthenticated calls and scope tasks to the caller. - Test against the spec. Check payloads, states and error codes; the A2A Inspector walkthrough shows how.
The A2A project lists LangGraph, CrewAI, Pydantic AI, AG2 and IBM BeeAI among supporting frameworks in its Agentic AI Foundation announcement. Inside each agent, tools are reached over the Model Context Protocol (MCP); A2A vs MCP explains the split, and the MCP specification page tracks MCP's own revisions.
A2A specification with Bifrost
Bifrost, the open-source AI gateway built by Maxim AI, implements the A2A specification at the gateway layer. The Agent Gateway in Bifrost registers an agent by its Agent Card URL and gives callers gateway endpoints for the card, JSON-RPC, HTTP+JSON and, when enabled, gRPC. The gateway accepts A2A v1 and rejects an explicitly incompatible A2A-Version.

Figure 3: The client binding and the agent binding are chosen independently, so a JSON-RPC client can reach a gRPC-only agent.
Bifrost follows the card's interface order. It keeps entries with a supported v1 version, binding and valid endpoint, calls the first, and per transport selection and recovery moves to the next only when the endpoint was not reached. A 5xx or ambiguous failure is returned without replay, and streams are never replayed, because a repeated SendMessage could create a second task.
On discovery, Bifrost fetches the current card on every request, rewrites its endpoints and authentication for gateway callers, and removes upstream signatures that the rewrite invalidates. It relays up to 32 declared extensions per card and rejects requests for undeclared ones before they reach the agent.
Agent access grants each agent to specific virtual keys. With credential forwarding, the agent sends the A2A context ID and task ID on its own model and MCP calls, so one log links a task to every call made for it.
The Agent Gateway announcement traces that path, and agent gateway covers the pattern. Gateway overhead is 11 microseconds at 5,000 RPS.
To put an A2A v1 agent behind Bifrost, start with the gateway quickstart, then register the agent's card URL.
Frequently asked questions
Who made the A2A protocol?
Google created the A2A protocol and announced it in April 2025 with more than 50 technology partners. In June 2025, Google donated the specification, SDKs and tooling to the Linux Foundation, which formed the Agent2Agent project with AWS, Cisco, Microsoft, Salesforce, SAP and ServiceNow. In August 2026, A2A joined the Agentic AI Foundation as a Growth Stage project.
How is A2A different from MCP?
A2A connects an agent to other autonomous agents, while the Model Context Protocol connects an agent to tools, data and prompts. Under A2A, the remote agent plans its own work and reports progress on a task; under MCP, the caller invokes a tool with schema-checked arguments and gets a result. Most multi-agent systems use both protocols together.
What is the Agent2Agent architecture?
The Agent2Agent architecture is client and server: an A2A client, such as an orchestrator agent or application, sends messages to an A2A server, also called the remote agent. The server publishes an Agent Card, creates tasks and returns artifacts. One agent often plays both roles, acting as a server to its caller and as a client to specialists.
What transport does the A2A specification use?
A2A runs over HTTP(S) with three standard bindings: JSON-RPC 2.0, gRPC and HTTP+JSON. JSON-RPC streams updates with server-sent events, and push notifications always arrive as HTTP POST requests to a client webhook. An agent lists its bindings in supportedInterfaces, in order of preference, and may also define custom bindings.
Is A2A v0.3 compatible with v1.0?
No. Version 1.0 renamed every method, removed the kind discriminator and changed task state values, so v0.3 and v1.0 payloads are not interchangeable. An agent can serve both by listing one interface per version in its Agent Card. Servers treat requests without an A2A-Version header as 0.3, so v1.0 clients must always send it.
- a2a specification
- a2a
- ai agent
- agent gateway



