# token-expired

The request to generate events carries a **token that has expired**.

- **Status:** `401 Unauthorized`
- **Route:** `POST /api/v1/generate-events`
- **Description:** `token is expired: expected a token that is still valid`
- **Details:** **`expiredAt`**, the moment the token expired, in UTC. The response has the header **`WWW-Authenticate: Bearer`**.

## Why It Happens

A token is valid until **midnight in Berlin** after the last day of the occasion it was issued for, such as a workshop or a talk. The token is right in every other way, but that moment has passed.

## How to Fix It

Ask for a new token with a **[tailor-made data set](/contact?topic=synthevents-tailor-made-data-set)**.

## Example

For a token that expired at the end of 15 October 2026 in Berlin, SynthEvents answers:

```json
{
  "type": "error",
  "data": {
    "code": "https://docs.synthevents.io/errors/token-expired",
    "description": "token is expired: expected a token that is still valid",
    "details": {
      "expiredAt": "2026-10-15T22:00:00Z"
    }
  }
}
```
