Skip to main content

Publish paid APIs withoutchanging your origin

Register an upstream API, configure route-level x402 pricing, and publish a gateway hostname.

Workflow

Gateway workflow

Whether buyers use SDKs, the React paywall, or store plugins, traffic flows through the gateway and facilitator you configure in the dashboard.

01

Register your upstream

Add your API base URL, optional upstream auth, and a default subdomain on the Ax402 platform.

02

Price each route

Define endpoints, HTTP methods, and x402 accept options — scheme, network, asset, and amount per call.

03

Publish the gateway

Verify a custom domain or use the provided subdomain. Traffic hits the gateway, not your origin directly.

04

Buyers pay, you serve

Unpaid requests get HTTP 402 with payment requirements. After settlement, the gateway proxies to upstream.

Capabilities

Control plane for your gateway fleet

Dashboard tools for sellers — backed by the same facilitator and SDKs that power buyer integrations.

Route-level pricing

Attach x402 accept options to individual endpoints. Mix free health checks with paid data routes on the same API.

Custom domains

Use the platform subdomain or bring your own hostname. DNS TXT verification keeps ownership clear.

Upstream credentials

Store bearer tokens and API keys encrypted. The gateway injects auth on proxied requests — buyers never see your secrets.

OpenAPI import

Upload OpenAPI 3.x or Swagger 2.0 in the dashboard to bulk-create endpoints instead of configuring each path manually.

Scoped API keys

Automate with SDK or CLI using keys limited to the scopes you choose — read stats, write endpoints, manage domains.

Settlement visibility

Track 402 challenges, paid requests, and on-chain settlements per API from the control plane dashboard.

Documentation

Go deeper in the gateway guide

Step-by-step setup, OpenAPI import, custom domains, and buyer testing are documented for sellers.

Ready to publish your first paid gateway?

Create a seller account, register an upstream API, and test with an x402 buyer client.