Payment (x402)
Start an x402 payment session
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.
post/api/start-payment-session
Response
Payment session opened
Example response
{
"asset": "USDC",
"network": "base-sepolia"
}