Skip to main content
500CallsDocs
Browse the docs

unauthenticated

Authentication required

HTTP status
401
Code
unauthenticated
Retry?
No, until you fix the key

What it means

The request had no API key, or the key is unknown, revoked or expired. Every cause gives the same response on purpose, so a guessed key learns nothing.

What to do

Send Authorization: Bearer <key> with an active key. Check the key's status in the dashboard under Developers, then API keys, and rotate it if it was lost. In the dashboard itself, sign in again.

Example

Example 401 response
{  "type": "https://docs.messaging.500calls.com/errors/unauthenticated",  "title": "Authentication required",  "status": 401,  "code": "unauthenticated",  "detail": "Send a valid API key in the header 'Authorization: Bearer <key>'.",  "request_id": "req_01M3KR6CQ26S90NG2V790GVFTX",  "errors": []}

Returned by

How errors work