x402 endpoints
verify and settle accept x402-shaped paymentPayload and paymentRequirements objects.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
x402 verify and settle endpoints, chain metadata, and payment intents.
| Method | Path | Purpose |
|---|---|---|
GET | /api/x402/facilitator/supported | Lists supported x402 versions, networks, and schemes. |
GET | /api/x402/facilitator/chains | Lists configured chains, CAIP-2 network IDs, USDC addresses, explorers, and default chain ID. |
POST | /api/x402/facilitator/verify | Verifies a payment payload against payment requirements. |
POST | /api/x402/facilitator/settle | Settles a payment payload. |
verify and settle accept x402-shaped paymentPayload and paymentRequirements objects.
HTTP/1.1 402 Payment Required
PAYMENT-REQUIRED: <base64-json>
Content-Type: application/json
PAYMENT-SIGNATURE: <signed-payment-payload>
| Method | Path | Purpose |
|---|---|---|
POST | /api/payments/prepare | Authorizes an exact amount, a metered quote, or a budget cap. |
POST | /api/payments/settle | Settles an intent with a final amount or metered usage. |
POST | /api/payments/abort | Releases a prepared intent when work fails before settlement. |
POST | /api/payments/meter/model | Prices model usage using catalog pricing. |
POST /api/payments/meter/model
Content-Type: application/json
{
"modelId": "gpt-5.5",
"provider": "azure",
"modality": "text",
"usage": {
"promptTokens": 1000,
"completionTokens": 250,
"totalTokens": 1250
}
}
| Header | Meaning |
|---|---|
PAYMENT-RESPONSE | Encoded x402 settlement response. |
X-Transaction-Hash | Settlement transaction hash when available. |
X-Receipt | Compose receipt with amount, network, line items, and settlement time. |
x-payment-intent-id | Prepared payment intent ID. |