Skip to main content

Server Integration

Adding payment requirements to your API

Client Integration

Paying for x402-protected APIs

Agent Self-Provisioning

An AI agent that needs a facilitator endpoint

Base URL

All requests go through:

Path prefixes

The path prefix determines authentication and tier routing:

Facilitator URL in your server config

Your server needs a facilitator URL. This is what you pass to HTTPFacilitatorClient:
The facilitator exposes two core endpoints at this base URL:
  • POST /settle — settle a payment on-chain
  • POST /verify — verify a payment signature without settling
The @x402/express middleware calls these automatically.