tasks/get JSON-RPC call to the agent endpoint and returns the response wrapped in the standard InvokeAgentResponse envelope.
Request
Path parameters
The unique identifier of the agent that owns the task.
The A2A task identifier returned by the agent during the original invocation.
Body parameters
Number of historical message turns to include in the response. Defaults to
10 if omitted.Bearer token or API key to forward to the agent endpoint for authentication.
Reference to a stored auth context. The gateway decrypts and forwards the credential on your behalf.
Response
Returns anInvokeAgentResponse reflecting the current task state.
The agent that owns the task.
Task execution status as reported by the agent (e.g.
"running", "completed", "failed").Execution receipt identifier. Omitted if not yet persisted.
The A2A task identifier echoed from the path parameter.
A2A context identifier, if the agent returned one.
Human-readable status message from the agent, if provided.
Structured output from the agent. Populated once the task completes.
Normalized settlement information, if applicable.
Payment receipt from the settlement rail, if a payment occurred.
The raw A2A JSON-RPC response returned by the agent endpoint.
Status codes
| Code | Meaning |
|---|---|
200 OK | Task state retrieved successfully. |
403 Forbidden | The agent is blocked or the provider is revoked. |
404 Not Found | No published agent with the given agent_id exists on this node. |
502 Bad Gateway | The gateway could not reach the agent endpoint. |