API guides
x402 payments
Access paid trust8004 resources with USDC over the x402 protocol.
Paid endpoints initially return 402 Payment Required. The JSON body and the PAYMENT-REQUIRED header describe accepted networks, USDC assets, amounts, and the recipient.
Flow
- Send the intended request without payment.
- Select one entry from
acceptson a network where your wallet holds USDC. - Create the x402 payment payload.
- Retry the same resource with a base64
payment-signatureheader. - Store the settlement response for your records.
Do not hardcode one payment network
Accepted networks can evolve. Read the server-provided options and select a compatible entry at request time.
The API reference marks paid operations and documents their 402 responses.