Skip to content
Wardcase Docs

Missing or invalid credential

HTTP 401, problem type unauthorized.

The request has no valid API key or dashboard session.

Common causes

  • The Authorization header is missing, or is not in the form Bearer <key>.
  • The key is mistyped or cut short.
  • The key was revoked.
  • The dashboard session expired.

What to do

  • Send Authorization: Bearer with a current key.
  • Create a new key in the dashboard if the old one is lost or revoked.

Retrying

Retrying with the same credential will fail the same way.

Example response

The body is an RFC 9457 problem document with the content type application/problem+json.

{
"type": "https://docs.wardcase.com/errors/unauthorized",
"title": "Missing or invalid credential",
"status": 401,
"detail": "The API key is not valid"
}

All errors