Shoal supports two access modes:Documentation Index
Fetch the complete documentation index at: https://docs.shoal.xyz/llms.txt
Use this file to discover all available pages before exploring further.
- API key for regular usage and broader account access
- pay-per-request for the public paid surface
Option 1: API Key (Bearer Token)
Send your API key in theAuthorization header using the Bearer scheme.
Error Responses
| Status | Body | Cause |
|---|---|---|
| 401 | { "error": "Authorization header missing or malformed" } | No header or bad format |
| 401 | { "error": "API key missing" } | Empty key after Bearer |
| 401 | { "error": "Invalid API key" } | Key not found |
Option 2: Pay-Per-Request
No API key is required for the public paid endpoints. Shoal supports pay-per-request flows over HTTP 402. Most users do not need protocol details to get started. If you are building a custom client or agent, see the dedicated MPP/x402 guide.How It Works
- Send a request to a paid endpoint without an API key
- Shoal returns
402 Payment Required - Your client pays and retries
- Shoal returns the response
Quick Start
Use themppx CLI to test a paid endpoint: