Gateway wrap
Gateway wrap is the fastest path to a paid API. You register an upstream base URL, define priced endpoints, and publish a gateway hostname. Buyers use x402-capable clients; Ax402 verifies payment and proxies to your origin.
Traffic flow
Buyer (x402 client)
→ your-gateway.example.com/v1/resource
→ 402 + payment requirements (unpaid)
→ pay + retry
→ 200 + upstream response (proxied)Setup checklist
- Create a seller account and verify email
- Add an API with upstream base URL and pay-to wallet
- Create endpoints (method, path pattern, USDC price)
- Use the default platform subdomain or verify a custom domain
- Test with an x402 buyer client against the gateway hostname
When to use gateway wrap
- You already expose a REST API and want per-request billing
- You prefer DNS + dashboard configuration over in-app payment code
- Buyers are agents, scripts, or wallets — not card checkout flows
Related docs
Buyer clients — how purchasers pay your gateway URLs.
E-commerce plugins — sync WordPress/WooCommerce/Shopify routes to the gateway.
OpenAPI import
Upload OpenAPI 3.x or Swagger 2.0 in the dashboard to bulk-create endpoints instead of configuring each path manually.