Skip to main content
POST
/
api
/
x402
/
facilitator
/
verify
x402 facilitator
curl --request POST \
  --url https://api.compose.market/api/x402/facilitator/verify \
  --header 'Content-Type: application/json' \
  --data '
{
  "paymentPayload": {},
  "paymentRequirements": {}
}
'
{
  "chains": [
    {}
  ],
  "defaultChainId": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.compose.market/llms.txt

Use this file to discover all available pages before exploring further.

The facilitator routes expose Compose’s x402-compatible verification and settlement surface.

Routes

MethodPathDescription
GET/api/x402/facilitator/supportedReturns supported x402 versions, schemes, and networks.
GET/api/x402/facilitator/chainsReturns configured chain metadata, USDC address, explorer, and default chain.
POST/api/x402/facilitator/verifyVerifies a payment payload against requirements.
POST/api/x402/facilitator/settleSettles a verified payment payload.

Verify and settle body

paymentPayload
object
required
x402 payment payload supplied by the payer.
paymentRequirements
object
required
x402 payment requirements issued by the paid resource.

Chain metadata response

chains
array
Configured chains with chainId, network, shortName, explorer, usdcAddress, schemes, asset, and decimals.
defaultChainId
number
Active default chain ID.

Errors

Malformed verify or settle payloads return 400 with:
{
  "error": "Failed to verify payment",
  "details": "..."
}