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

# Logout

> Invalidate the current refresh token

<ParamField header="Authorization" type="string" required>
  `Authorization: Bearer nb_YOUR_ACCESS_TOKEN`
</ParamField>

<ParamField body="refresh_token" type="string">
  Refresh token to revoke. If omitted, the token from the Authorization header is used.
</ParamField>

## Request

```bash theme={null}
curl -X POST https://elumenta.ru/api/v2/auth/logout \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
```

## Response

```json theme={null}
{ "message": "Logged out successfully" }
```

After logout, the refresh token is invalidated. The access token remains valid until it expires (max 15 minutes).
