Skip to main content
A2A server endpoint logo
The A2A server endpoint is experimental and isn’t recommended for production use. This endpoint may change or be removed in future releases. Use it only in development or staging environments.
The A2A server endpoint makes a flow available to A2A clients through the open Agent2Agent (A2A) protocol. Together, the flow and the endpoint form the A2A agent that A2A clients discover and call. The endpoint provides an Agent Card that describes the A2A agent and an A2A interface that accepts messages and returns responses. The endpoint supports A2A protocol versions 1.0 and 0.3. Each A2A client selects its version upon discovering the Agent Card.

Key benefits

  • Interoperability. A2A clients can interact with the A2A agent through a standardized protocol.
  • Standardized discovery. An Agent Card provides A2A clients with the A2A agent’s name, description, and skills.
  • Flexible interaction. The endpoint supports single-turn messages, multi-turn conversations, long-running tasks, and streaming responses.

Restrictions

  • A2A support varies between platforms. An A2A client that implements the protocol differently may not consume all parts of the Agent Card or all response types. Test the integration with each A2A client you plan to use.
  • Push notifications, such as webhook delivery on task completion, aren’t supported. The Agent Card always advertises capabilities.pushNotifications: false.
  • The x-a2a-endpoint-key header name used for API key authentication isn’t configurable.
  • Inbound requests are rate-limited to 120 requests per 60 seconds per endpoint. This limit isn’t configurable.
  • Incoming file attachments (FilePart) aren’t supported. The endpoint editor doesn’t currently expose a file storage connection for the A2A server endpoint, so attachments are dropped regardless of whether they’re sent by URI reference or as inline base64 content.
  • A Handover to Human Agent request in the flow doesn’t produce a distinct task state. A human agent replies after the flow’s execution pass ends. Because push notifications aren’t supported, that reply can’t reach the A2A client through this endpoint.
  • All callers of an endpoint share one task store and can read each other’s tasks, including message history. API keys don’t isolate callers from one another. Use a separate endpoint for each trust boundary.

Prerequisites

  • A flow that can respond to text messages, for example, with a Say node or an AI Agent node.

Generic endpoint settings

Learn about the generic endpoint settings on the following pages:

Endpoint-specific settings

Setup tab

Integration

This section shows the URL that A2A clients use to reach the A2A agent and a link to the Agent Card.

Advanced tab

Agent card

This section configures how the A2A agent appears to external A2A orchestrators. The Agent Card is served at the standard discovery URL and describes the capabilities of the A2A agent.

API key authentication

The URL token in the endpoint URL is always required and can’t be deactivated. Use this section to add an API key as an additional authentication layer. Use this section to configure how incoming requests to this Endpoint are authenticated. Requests must include an active key in the x-a2a-endpoint-key header. Agent Card discovery doesn’t require the API key.

A2A skills

This section lists the capabilities that the A2A agent advertises in the skills field of the Agent Card. Skills provide descriptive metadata only and don’t restrict what the flow can do. A2A clients use skills to decide when to route requests to the A2A agent. Click Add A2A skill to add a skill, or the delete icon to remove one. If you don’t configure any skills, the Agent Card advertises a single default skill.

How to set up

Configure the A2A server endpoint for the flow, then give its A2A agent base URL to the A2A client.

Set up the A2A server endpoint

  1. In the navigation menu of your project, click Deploy > Endpoints.
  2. On the Endpoints page, click + New Endpoint.
  3. In the New Endpoint dialog, select the A2A Server endpoint type and click Create endpoint.
  4. On the Setup tab, configure the following:
    • Endpoint name — enter a unique name.
    • Target — select the flow that the endpoint exposes.
    • Save the changes.
  5. On the Advanced tab, in the Agent Card section, specify the Agent name and Agent description. Save the changes.
  6. (Optional) In the A2A skills section, click Add A2A skill and add one or more skills that describe the capabilities of the A2A agent.
  7. (Optional) In the API key authentication section, activate Require API key. To generate an API key, click Generate API key in the Endpoint API keys section. Share the key securely with the A2A client.
  8. Activate the endpoint.
  9. On the Setup tab, copy the A2A agent base URL.

Connect an A2A client

The exact configuration depends on the A2A client library or framework. Most A2A clients handle Agent Card discovery and protocol details automatically.
  1. Give the A2A client the A2A agent base URL copied from the endpoint. Most A2A clients use this URL to discover the Agent Card. For a direct request, append /.well-known/agent-card.json:
    Replace {token} with the token from the A2A agent base URL. The A2A-Version: 1.0 header returns the version 1.0 Agent Card. Omit the header to receive the version 0.3 Agent Card.
  2. Send a message with the SendMessage JSON-RPC method:
    If API key authentication is configured, add:
    Agent Card discovery doesn’t require the API key, even when API key authentication is configured for message requests.
  3. For long-running tasks, set "configuration": { "returnImmediately": true } in the request. The endpoint returns the task immediately. Poll its status with GetTask using the returned task id until it reaches a terminal state.
  4. For streaming responses, use SendStreamingMessage instead of SendMessage. The endpoint returns the response as a Server-Sent Events (SSE) stream.

Use cases

Add the A2A agent to a multi-agent system. An orchestrator can route relevant tasks to it and incorporate its responses into a larger workflow.
Let A2A clients on other platforms interact with the A2A agent to access specialized knowledge or execute existing business logic.
Let a flow in one organization or project interact with an A2A agent in another organization or project. Use the A2A protocol instead of a proprietary integration. Copy the A2A agent base URL from the A2A server endpoint. Paste it into the A2A agent base URL field of an A2A Agent node in the other environment.
Delegate a task that takes time to complete, for example, a task that calls a slow external API. The A2A client can poll for the result instead of keeping the connection open.
Let the A2A client contact the A2A agent on the customer’s behalf. The A2A server endpoint provides the machine-to-machine interface for accessing the A2A agent.
Let other teams delegate work to the A2A agent without giving them access to its implementation. The A2A client sees the Agent Card and receives the result, while the internal logic, tools, and data of the flow remain inside Cognigy.

Troubleshooting

A2A compared to MCP

Use the MCP server endpoint to give an external application access to individual tools from a flow. Use the A2A server endpoint to make a flow available to A2A clients as an A2A agent.

More information

  • A2A Agent tool. Call a remote A2A agent as a tool from within an AI Agent node.
  • MCP server. Expose AI Agent tools through the Model Context Protocol.
Last modified on November 11, 2026