Agent Sessions
Approve payment
Changed onApprove on a payment request posts no body. The API returns the approval token for that pending payment, valid until 2026-09-02T15:10:00Z, with no extra sign-in check.
post/v1/agent-sessions/{id}/approvals/{approvalId}/token
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /v1/agent-sessions/{id}/approvals/{approvalId}/token
- Auth: HTTP bearer
Path parameters
idstring required
Session id.
Example:session_abc123
Stable session id.
approvalIdstring required
Approval id.
Example:session_abc123/turn/0/approval/0
Pending approval id.
Response
Approval token.
Example response
{
"approvalToken": "agt_example.signature",
"expiresAt": "2026-09-02T15:10:00Z"
}Changes
- info
endpoint added
- info