- 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
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: