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.
Send an operation
Send amessage: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 JSONDataPart. Its data contains the upstream HTTP status, safe response headers, and either a JSON body or a base64-encoded body.
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
The service returns 401
The service returns 401
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.
The result contains insufficient_permissions
The result contains insufficient_permissions
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.
The result contains invalid_request
The result contains invalid_request
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.