Start an x402 payment session
Changed onInitiates 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.
Request
- Base URLhttp://localhost:3773
- AuthHTTP bearer
Response
Payment session opened
Example response
{
"asset": "USDC",
"network": "base-sepolia"
}Changes
- breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - warning
removed the optional property
from the response with the status - info
api operation id
startPaymentSessionremoved and replaced with - info
the endpoint scheme security
BearerAuthwas removed from the API - info
api tag
Payment (x402)added - info
api tag
Paymentremoved - info
removed the non-success response with the status
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking