# Invalid token

Le API di KeenAuth restituiscono questo tipo di problema con stato HTTP 401 (Unauthorized).

## Tipo di problema

| Campo | Valore |
|---|---|
| URI del tipo | `https://docs.keenauth.com/errors/invalid_token` |
| Codice | `invalid_token` |
| Stato HTTP | 401 Unauthorized |
| Titolo | Invalid token |

## Significato

Descrizione dal contratto API (testo originale, non tradotto):

> The dashboard access token or the eu0 identity token is invalid: the scheme is not DPoP, or the typ, alg, kid, signature, iss, aud or lifetime check fails (RFC 6750 §3.1). The response carries `WWW-Authenticate: DPoP error="invalid_token"`.

## Risposta di esempio

Esempio di corpo della risposta. `detail` è una descrizione leggibile in inglese, non destinata agli utenti finali; `instance` identifica la richiesta.

```json
{
  "type": "https://docs.keenauth.com/errors/invalid_token",
  "title": "Invalid token",
  "status": 401,
  "code": "invalid_token",
  "detail": "...",
  "instance": "urn:idp:request:<request_id>"
}
```

Tutti i codici di errore: [Riferimento degli errori](/docs/errors).
