authentication_required
No credential was presented
HTTP 401authentication_required
The request carried no API key, or a console session that has expired.
Why it happens
- The Authorization header was missing or empty.
- A console session cookie expired, which happens after a period of inactivity.
- A proxy in front of your application stripped the Authorization header.
How to fix it
- Send
Authorization: Bearer $WOYRA_KEYon every call. The key is shown once when it is created, so if you lost it, mint a new one. - If you are calling through a reverse proxy or a serverless platform, check that it forwards the Authorization header.
Is it worth retrying?
Only after you change something. Retrying as-is will fail again.
What the response looks like
HTTP/1.1 401
Content-Type: application/json
Woyra-Request-Id: req_01J...
{
"error": {
"code": "authentication_required",
"message": "…",
"doc_url": "https://docs.woyra.io/errors/authentication_required",
"param": null,
"request_id": "req_01J..."
}
}