Quickstart
If you want to wire Apiosk directly into Claude Code or Codex as an MCP server, start with Claude Code and Codex. In local stdio mode, the recommended first step isapiosk_get_started, which can save a dashboard connect string or create a local wallet and then immediately run a test call.
1. Find a listing
2. Read the metadata
- the default operation
- input and output shape
- price and latency hints
- tags and MCP-style tool metadata
3. Execute the API
Default-operation APIs accept raw JSON:4. Handle the 402 challenge
If payment is required and no valid proof is attached, the gateway returnsHTTP 402 Payment Required.
At that point you can either:
- attach a raw
x-paymentproof from your own payer flow - use a dashboard-managed wallet or connect string flow
apiosk_get_started over manually managing the first paid call. It will set up the local wallet or saved connect-token state and tell you whether the next step is ready, needs_funding, or more specific input.