Skip to main content
Use A2A when an agent platform needs to discover Sendmux and call mailbox, management, or sending operations through a standard agent endpoint. Sendmux publishes an Agent Card and uses OAuth for hosted access.

Choose A2A or MCP

Both connections expose curated Sendmux operations. Authorisation grants remain limited to the product surfaces, permissions, and mailboxes you select.

Discover Sendmux

Start with the Agent Card. It describes the service URL, protocol version, supported skills, capabilities, and OAuth security scheme. The Agent Card advertises A2A protocol version 1.0, the HTTP+JSON binding, and application/json input and output.

Authorise access

1

Fetch the Agent Card

Give its well-known URL to your A2A client so the client can discover the service and OAuth configuration.
2

Start OAuth

Use the advertised authorisation-code flow with PKCE. Your client opens Sendmux in a browser.
3

Choose the grant

Select a team, the Mailbox, Management, or Sending surfaces, and mailbox access where relevant.
4

Send the access token

Include the resulting Bearer token on requests to the A2A service URL.
A2A access tokens are audience-bound to https://a2a.sendmux.ai/a2a/v1. They cannot authorise MCP requests. MCP tokens cannot authorise A2A requests.

Send an operation

Send a message:send request with exactly one JSON DataPart. Put the selected Sendmux operation and its inputs in the part’s data value. Your A2A client handles the surrounding message envelope.
The Agent Card groups operations into three skills. These common operation IDs are useful starting points: Use the Mailbox API, Management API, or Sending API reference to check the path, query, header, and body fields for an operation. A2A exposes a curated set rather than every API operation.

Read the result

Sendmux returns one JSON DataPart. Its data contains the upstream HTTP status, safe response headers, and either a JSON body or a base64-encoded body.
For non-JSON responses, the result contains bodyBase64 instead of body. Validation and authorisation failures use a compact error value:

Supported skills and limits

The A2A endpoint is immediate and stateless. It does not advertise or route streaming, push notifications, persistent tasks, or task cancellation.

Troubleshooting

Complete OAuth for the A2A resource and send the resulting Bearer token on the A2A request. A token issued for MCP is not valid here.
Reconnect and grant the product surface and permissions required by the selected operation. For mailbox operations, also confirm that the target mailbox belongs to the grant.
Send exactly one JSON DataPart. Check the operationId, match pathParameters exactly to the operation path, and send only one of body or bodyBase64.

Next steps

MCP

Compare hosted and local MCP connections for tool-based clients.

Agent access

Create a constrained agent identity when the agent has no existing Sendmux credential.

Mailbox API

Review mailbox operations and request fields.

Sending API

Review outbound sending operations and request fields.