Apiosk Gateway
The Apiosk gateway is a pay-per-call API surface for agents and applications. Consumers discover APIs, inspect machine-readable metadata, receive anHTTP 402 payment challenge when required, attach an x-payment proof, and execute calls through a uniform contract.
At a glance
The gateway acts as a public x402 payment boundary. A client requests execution, receives pricing in a402 Payment Required response when the route is paid, settles in USDC, retries with a proof, and then receives the upstream result through the same public surface.
- The agent makes a normal request to the gateway.
- The gateway returns
HTTP 402plus pricing when payment is required. - The client settles on-chain and attaches the proof in
x-payment. - The gateway verifies the proof, forwards the call, and returns data.
Public routes that matter
| Route | Purpose |
|---|---|
GET /types | Discover listing groups. |
GET /v1/apis | Search and paginate public listings. |
GET /v1/apis/:slug | Inspect one public listing and its endpoint docs. |
GET /:api_slug/metadata | Fetch MCP-style metadata and operation hints. |
POST /:api_slug/execute | Execute through the agent-native contract. |
POST /v1/apis/register | Publish a community API listing. |
How the public flow works
- Discover an API from the catalog.
- Read
/:api_slug/metadatato understand the default operation, schemas, price, and tags. - Call
/:api_slug/execute. - If the route is paid, handle the
402 Payment Requiredresponse and attach anx-paymentproof. - Receive a normalized response envelope with
result,cost,latency, andstatus.
What these docs do not expose
- settlement and payout topology
- operator controls
- replay and anti-abuse implementation details
- managed wallet or session internals
- internal forwarding behavior that is not part of the public contract