How to authenticate your API requests.
All API requests require a Bearer token in the Authorization header. Generate your API key from the API Keys page.
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | string | Required | Bearer token: "Bearer YOUR_API_KEY" |
Content-Type | string | Required | "application/json" for POST/PUT requests |
API keys follow a simple generate → use → revoke lifecycle:
If you receive a 401 error, verify that your API key is correct and has not been revoked. A 403 error means your credit balance is empty — check via GET /usage.
Security Best Practices