> ## Documentation Index
> Fetch the complete documentation index at: https://docs.narrative.io/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Connect: Invalid Authorization State

> The OAuth callback carried an unknown or expired state parameter.

**HTTP status:** 400

## Error message

```
The authorization state is unknown or has expired.
```

## When this error occurs

`GET /mcp-connections/callback` received a `state` that doesn't match a pending authorization flow — the flow expired,
was already completed, or the value is malformed. Authorization flows are short-lived and single-use.

## How to fix

Restart the connection: call `POST /mcp-connections` again for a fresh authorize URL, then complete the consent
promptly.
