UNAUTHENTICATED
Not authenticated. The key was not accepted.
| Status | 401 |
|---|---|
| Retry? | No |
What it means
The x-api-key header is missing, or names a key that is unknown, inactive, expired, or not of type Developer API. An SDK widget key is refused here even though it is a valid key: it is public by design.
The detail is the same for every cause, on purpose. Saying which check failed would help someone guessing keys more than it helps you.
What to do
- Check the header is exactly x-api-key and the value is the whole mk_… key.
- Check the key's status and type in Workspace Settings → API Keys.
- If the key is lost, rotate: create a new key and retire the old one.
The response
Served as application/problem+json. Branch on code; detail describes this occurrence and can change wording at any time.
{
"type": "https://docs.medos.one/errors/unauthenticated",
"title": "Not authenticated",
"status": 401,
"detail": "…",
"instance": "/v1/…",
"code": "UNAUTHENTICATED",
"requestId": "01JCX6Q4W3J7N8Y2H5K9M1B0VD"
}