api_key_required: API key required
Havoptic API error api_key_required (HTTP 401, API key required): The endpoint needs an API key and the request did not send one. What it means and how to fix it.
| Field | Value |
|---|---|
| type | https://www.havoptic.com/docs/errors/api_key_required |
| HTTP status | 401 |
| title | API key required |
| Returned by | api.havoptic.com (webhooks) |
What it means
Read endpoints work anonymously. Webhook management (/v1/webhooks) is tied to an owner, so it needs a key.
Common causes
- Calling
/v1/webhookswithoutAuthorization: Bearer hv_live_….
How to fix it
- Create a free key at /api-keys and send it as
Authorization: Bearer hv_live_….
Example response
{
"type": "https://www.havoptic.com/docs/errors/api_key_required",
"title": "API key required",
"status": 401,
"detail": "Webhooks need an API key: send Authorization: Bearer hv_live_… (create one at https://www.havoptic.com/api-keys)."
}