Consumer Guide
If you are integrating through the Apiosk MCP package in local stdio mode, runapiosk_get_started first. It can save a dashboard connect string or create a local wallet, then verify the setup with discovery plus a first execute attempt.
1. Discover a listing
Start with the public catalog.GET /types and GET /types/:listing_type/v1.
2. Read agent-native metadata
The best entrypoint for agents is:- operation names
- default operation
- input and output schema hints
- cost and latency metadata
- tags and other agent-facing discovery fields
3. Execute using the uniform contract
For default-operation APIs,POST /execute accepts raw JSON directly.
4. Handle payment
Paid routes returnHTTP 402 with a machine-readable requirement. Your payer signs that requirement and sends the resulting proof in the x-payment header.
The gateway does not require API keys for this flow.
If you are using the local MCP package, you normally do not need to build this first step by hand. apiosk_get_started configures the local payment state and tells you if the setup is ready or still needs wallet funding.
5. Read the normalized response
Successful execute responses are wrapped into a consistent envelope:GET /metadata plus POST /execute.