# unauthorized

> The unauthorized error from the Warmerly API (HTTP 401): Missing, invalid, or revoked API key.

Source: https://warmerly.com/docs/errors/unauthorized

The API returns `unauthorized` with HTTP status **401**.

Missing, invalid, or revoked API key.

## What the response looks like

```json
{
  "error": {
    "code": "unauthorized",
    "message": "...",
    "details": null
  }
}
```

`error.code` is stable and safe to branch on. `error.message` is debugging context, not something to parse. The full list of codes, and the rate limits, are on [Errors & Rate Limits](https://warmerly.com/docs/errors).

## More from Errors & Rate Limits

- [bad_request](https://warmerly.com/docs/errors/bad-request): The bad_request error from the Warmerly API (HTTP 400): Malformed request body/query, often paired with…
- [forbidden](https://warmerly.com/docs/errors/forbidden): The forbidden error from the Warmerly API (HTTP 403): Authenticated, but not allowed to access this resource.
- [account_suspended](https://warmerly.com/docs/errors/account-suspended): The account_suspended error from the Warmerly API (HTTP 403): The account is suspended. Returned on every…
