Skip to main content
For long-running agent calls, use POST /v1/agents/{agent_id}/invoke-async. The gateway applies the same policy checks as synchronous invocation, then accepts the call immediately and returns a receipt_id with status: "running". The actual A2A SendMessage call executes in the background, and the receipt is updated with the final outcome when it completes.

Submit an Async Invocation

The request body is identical to the synchronous /invoke endpoint. You pass the same fields for auth, region, risk, cost, and settlement.
The gateway responds immediately with 200 OK:
Save the receipt_id. You will use it to poll for the result.

Poll the Receipt

GET /v1/receipts/{receipt_id} returns the current state of the execution receipt. Poll it until status transitions from "running" to either "succeeded" or "failed".
Running receipt (invocation still in progress):
Completed receipt (invocation finished):

Receipt Status Values

Receipt Verification Values

Get an A2A Task

If the agent returns a task_id (visible in the synchronous response or a completed receipt’s output), you can poll the live task state directly using POST /v1/agents/{agent_id}/tasks/{task_id}/get.
The gateway forwards a GetTask JSON-RPC call to the agent’s registered endpoint and returns the result in the same InvokeAgentResponse envelope as a regular invocation.
integer
Number of historical messages to include in the task response. Defaults to 10 if omitted.
string
Bearer token for the agent, if required. The same auth rules apply as for invocation.
string (UUID)
Reference to a stored auth context as an alternative to a raw auth_token.

Listing and Querying Receipts

Fetch all receipts for a specific agent or provider:
You can also filter by verification verdict:

Sync vs Async Comparison

Use invoke-async whenever your agent might take more than a few seconds to respond. A synchronous HTTP connection holding open for a long-running agent risks client-side timeouts, proxy cuts, or load-balancer drops. Async invocations are stored server-side and survive any transient network disruption.