A2A endpoints enforce explicit API-key scopes:
payments:request to create, payments:approve to
approve or reject, payments:execute to settle, transactions:read to list or inspect,
analytics:read for statistics, and wallets:read to resolve an address.How it works
- Agent A calls
POST /api/sdk/a2a/request - Agent B either receives a
payment_request.createdwebhook or lists incoming requests viaGET /api/sdk/a2a/requests - Agent B approves via
POST /api/sdk/a2a/requests/{id}/approveor rejects viaPOST /api/sdk/a2a/requests/{id}/reject. If Agent B’s policy requires approval, a person in Agent B’s organization must approve it instead - Agent B executes the approved request via
POST /api/sdk/a2a/requests/{id}/execute - Conto checks the paying agent’s policies, approved budget, and approval workflows again before it sends
Create a request
Identify the paying agent bytargetAgentId or targetWalletAddress. Outside a sandbox, the
paying agent needs an active managed wallet, and the requesting agent needs a wallet on the same
chain, or the request cannot be created. currency defaults to USDC, which resolves to that
chain’s stablecoin, for example pathUSD on Tempo Testnet. A request expires after 7 days unless
you send expiresAt (ISO 8601).
If you pass
targetWalletAddress, Conto resolves it to a registered agent first. Requests to
unknown addresses are rejected.Who can send requests
An organization accepts requests from any other organization by default. An Owner or Admin can change this in Settings > Organization > Payment requests, or send"acceptsA2ARequestsFromAnyone": false to PATCH /api/organizations/{id} from a signed-in session.
The organization then accepts a request from another organization only when one of the requesting
agent’s wallets is a counterparty it approved, or a counterparty with an active relationship with
the target agent. A blocked or quarantined counterparty is never accepted. Agents in the same
organization can always send each other requests.
A request the target organization does not accept gets the same answer as an unknown agent: 404
for targetAgentId and 400 for targetWalletAddress. The setting covers requests sent from
Conto Pay too. A request made through the paying organization’s own request link is accepted,
because that organization created the link.
A sandbox agent can exchange requests only with agents in its own sandbox. Sandbox payments are
simulated, so a request between a sandbox and another organization fails with 403.
When the two agents cannot settle the request as set up, it fails with 422 and a code:
NO_COMPATIBLE_WALLET_PAIR when the paying agent has no active Conto-managed wallet on a network
that supports the currency with a matching active wallet for the requesting agent,
AGENT_INACTIVE when either agent is not active, and SAME_AGENT when an agent asks itself.
List requests
direction filter accepts
incoming, outgoing, or all.
List responses and detail responses (GET /api/sdk/a2a/requests/{id}) use these request statuses:
When a transaction is present, its status is
processing, completed, or failed. When
available, it includes the stable transaction ID, network, block number, hash, and explorer URL for
reconciliation.
Webhook-first automation
If the paying organization has a webhook URL, or the paying agent has a callback URL, Conto emitspayment_request.created as soon as a new request is created. The payload targets the paying agent
and includes:
paymentRequestIdrequestingAgentIdandrequestingAgentNameamount,currency,purpose,invoiceIdapproveUrlandrejectUrl
Approve or reject a request
The paying agent can approve a pending request before execution when its policies allow the payment outright:approved status, and links.details and links.execute for
the next call.
An agent cannot approve a payment that its policy or an approval workflow sends for human approval.
In that case the request stays pending and the endpoint returns 403:
payments:approve
scope does not let an agent clear a human approval step, and nobody can approve a payment that
policy denies or that exceeds the agent’s approved budget.
To reject it, call the reject endpoint. The body and its reason are optional, and Conto stores the
reason with the request. A body over 1 MiB returns 413 INVALID_INPUT and the request stays pending.
A person who could approve the request can also select Decline under Payment requests, and
one decline ends it.
Execute a request
The paying agent executes the approved request:403 with code: "HUMAN_APPROVAL_REQUIRED". An approval
that no longer stands, such as the agent’s own approval after a workflow starts to match, sends the
request back to review_required for a person to decide.
Conto pays the requesting agent’s wallet address stored when the request was made. If that wallet now has a different address, approval and execution return 409 and nothing is sent. Ask the requesting agent for a new request.
Execution also checks the agent’s approved budget and BUDGET_CAP rules, and a payment being
executed counts toward the agent’s other limits until it is recorded, so concurrent payments cannot
pass a limit together. If your controls decline the payment, execution returns 403 with
code: "POLICY_VIOLATION" and fixed reasons in details.
While a shared budget covers the paying agent, execution returns 409 with code: "POLICY_VIOLATION" and details.reasonCode EXECUTION_PATH_NOT_CONNECTED. A paused or expired budget still refuses it.
Resolve an agent from a wallet address
ReturnsisAgent, and when true, the agent’s id. For an agent in your own organization it also
returns the agent’s name and the organization name.