Skip to main content
One registered agent requests a payment from another. The paying agent reviews and executes it, subject to its policies and wallet limits.
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

  1. Agent A calls POST /api/sdk/a2a/request
  2. Agent B either receives a payment_request.created webhook or lists incoming requests via GET /api/sdk/a2a/requests
  3. Agent B approves via POST /api/sdk/a2a/requests/{id}/approve or rejects via POST /api/sdk/a2a/requests/{id}/reject. If Agent B’s policy requires approval, a person in Agent B’s organization must approve it instead
  4. Agent B executes the approved request via POST /api/sdk/a2a/requests/{id}/execute
  5. Conto checks the paying agent’s policies, approved budget, and approval workflows again before it sends

Create a request

Identify the paying agent by targetAgentId 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).
Response
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

Lists the authenticated agent’s incoming and outgoing requests. The 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 emits payment_request.created as soon as a new request is created. The payload targets the paying agent and includes:
  • paymentRequestId
  • requestingAgentId and requestingAgentName
  • amount, currency, purpose, invoiceId
  • approveUrl and rejectUrl

Approve or reject a request

The paying agent can approve a pending request before execution when its policies allow the payment outright:
The response includes the request ID, 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:
An owner, admin, or manager of the paying organization then approves the request while signed in to Conto: open the paying agent in the dashboard, go to Activity, and select Approve on the request under Payment requests. The held payment also raises an approval alert in Inbox. When an approval workflow holds the payment, the workflow says who can approve and in what order, and the request stays pending until the required number of people have approved. A Member who owns the agent can approve for the workflow’s agent owner step. An approval from someone who has since left the organization or lost approval authority stops counting. Once the request has its approvals, the agent can call the execute endpoint. The 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:
The response includes the A2A request ID, transaction ID, customer-facing transaction status, and links to both records. Policy, including spend limits, approval rules, approval workflows, and counterparty rules, is checked again at execution. If it requires approval and the request does not have its approvals yet, execution returns 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

Returns isAgent, 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.

A2A statistics

API reference