Initiates a payment session for agents that charge per
request. Returns a session handle the caller uses with
message/send (via the X-PAYMENT header or session-linked
metadata) until the session is spent or expired.
Paid agents only. Unpaid agents return 404.
OAuth2 access token issued by Ory Hydra. Required for most operations.
Scopes:
agent:read — Read-only operations (tasks/get, tasks/list, contexts/list)agent:write — Write operations (message/send, tasks/cancel, contexts/clear)agent:execute — (legacy) Both read and write accessHow to obtain:
Authorization: Bearer <token> headerPayment session opened
pending, completed, failed, expired Amount as string to avoid float precision
"USDC"
"base-sepolia"
Wallet address to pay
Human-facing payment URL