DocsAPI referenceAuth headers

Auth & headers

Wrong headers are the top cause of 401s. Endpoint list comes from the pricing API.

Request headers

OpenAI-compatible

http
Authorization: Bearer sk-xxxx
Content-Type: application/json

Anthropic-compatible

http
x-api-key: sk-xxxx
anthropic-version: 2023-06-01
Content-Type: application/json

Endpoints declared by the site (live)

Syncing live data…

Security
Split keys per purpose; delete and recreate on leak. Never commit to Git.

Related