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

# Identity & key status

> Check who a key belongs to, whether it's valid, and when it expires.

A few lightweight endpoints let you inspect the key you're calling with — useful for health
checks, diagnostics, and surfacing key state in your own UI.

## Is the key valid?

`GET /auth/validate` confirms the key is active and returns basic identity info
(`Valid`, `UserId`).

```bash theme={null}
curl https://dev.api.nestapi.com/auth/validate \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## When does the key expire?

`GET /apiKey/validUntil` returns the key's expiry. A key with no expiry returns
`31/12/9999`.

```bash theme={null}
curl https://dev.api.nestapi.com/apiKey/validUntil \
  -H "Authorization: Bearer YOUR_API_KEY"
```

<Tip>
  Poll `validUntil` in scheduled jobs to warn before an integration's key lapses, and rotate it
  ahead of time from your dashboard (see [API keys](/account/api-keys)).
</Tip>
