HTTP 401
invalid-api-key
Key missing or malformed.
Send the key as `Authorization: Bearer wk_live_...`. A key that was copied without its prefix, or with a trailing newline, arrives as this error rather than as a key we can recognise.
{
"type": "https://webkitapi.dev/errors/invalid-api-key",
"title": "Key missing or malformed",
"status": 401,
"detail": "..."
}
The API reference has the request shapes, and the error index has the rest of the codes.
Other errors
The rest of them.
| Situation | Status | Type |
|---|---|---|
| Key revoked | 401 | revoked-api-key |
| Key not allowed on this endpoint | 403 | endpoint-not-allowed |
| Malformed payload | 400 | invalid-request |
| Per-minute rate exceeded | 429 | rate-limit-exceeded |
| Monthly quota exhausted | 402 | quota-exceeded |
| Batch too large | 413 | batch-too-large |
| Job unknown, expired, or owned by another account | 404 | job-not-found |
| The request could not be served as sent | 400 | request-failed |
| A dependency of ours is unreachable | 503 | service-unavailable |
| A bug on our side | 500 | internal-error |