Skip to content

unauthorized

Unauthorized. HTTP status 401.

The request has no valid API key.

What to do

Send the key as Authorization: Bearer or in the X-API-Key header. Check that the key is active and allows the calling IP address. Create a new key in the client area if it was revoked or has expired.

What the message says

  • Authentication is required.
  • Authentication is required. Provide a valid API key or session.
  • Authentication is required to resend verification emails.

Example

Response 401
{
"type": "https://developer.hostup.se/errors/unauthorized",
"title": "Unauthorized",
"status": 401,
"detail": "Authentication is required.",
"code": "unauthorized",
"requestId": "req_01hxa3b4c5d6e7f8g9h0j1k2m3"
}

Branch on code, not on title or detail. When you contact support about it, include the requestId. More in Errors and retries.

Endpoints that return it