receipt_id, and executes the call in the background. Use the returned receipt_id with the receipts API to poll for completion.
This endpoint accepts exactly the same request body as POST /v1/agents/:agent_id/invoke.
Request
Path parameters
The unique identifier of the published agent to invoke.
Body parameters
All body parameters are identical to POST /v1/agents/:agent_id/invoke.Structured input payload forwarded to the agent.
Natural language instruction for the agent.
Optional A2A task identifier.
Optional A2A context identifier for multi-turn conversation state.
Identifier of the specific agent skill to invoke.
Bearer token or API key passed directly to the agent.
Reference to a stored auth context.
ISO country code of the calling region.
Set to
true to proceed with agents that require human approval. Defaults to false.Maximum cost units you are willing to spend on this call.
Optional payment settlement request.
Raw A2A envelope to forward verbatim to the agent.
Response
Returns anInvokeAgentResponse immediately with status set to "running".
The agent that was invoked.
Always
"running" for an async invocation. The call is still in progress.Unique identifier for the in-progress execution receipt. Poll
GET /v1/receipts/:receipt_id to check when the status transitions to "succeeded" or "failed".Always
"ServiceNet invocation accepted" for a successful async submission.Empty object at submission time. Populated on the receipt record once execution completes.
Status codes
| Code | Meaning |
|---|---|
200 OK | Invocation accepted. Returns the initial InvokeAgentResponse with status: "running". |
403 Forbidden | Policy check failed before the invocation could be queued. |
404 Not Found | No published agent with the given agent_id exists. |
502 Bad Gateway | The gateway could not dispatch the invocation to the downstream agent endpoint. |
Example response
After receiving this response, poll
GET /v1/receipts/f1e2d3c4-0000-0000-0000-000000000002 to retrieve the execution outcome once status changes from "running" to "succeeded" or "failed".