402 with payment requirements, sign a USDC payment, and retry — the gateway validates, settles, and forwards your request to the upstream service. Management endpoints let you create and configure those routes using a dashboard-issued API key.
Base URL
Authentication
The gateway uses two distinct authentication schemes depending on the endpoint you are calling. Management endpoints (/api/*) require a Bearer token issued from your Meterlane dashboard:
/gateway/:orgSlug/*) use the x402 X-PAYMENT header instead of Bearer. You do not need an API key to call a paid route — you need a valid signed payment payload. On the first (unpaid) request you can omit the header entirely; the gateway returns a 402 with the requirements you need to construct it.
Never send a Bearer token on proxy route requests. The
/gateway/:orgSlug/* paths authenticate exclusively through x402. See the Payments page for the full two-step flow.Error Format
All error responses share a consistent JSON shape:Endpoints Summary
Paid proxy routes at
/gateway/:orgSlug/* authenticate via X-PAYMENT, not Authorization: Bearer. All other API paths under /api/* require a Bearer token.Explore the API
Routes
Create, update, and delete payment routes for your organisation.
Payments
Understand the x402 two-step flow and proxy endpoint behaviour.
Metrics
Query usage statistics and facilitator health for your gateway.