> For the complete documentation index, fetch https://nextauto.ai/llms.txt. Use it to find every page before exploring further.

# Auth and keys

Every API call needs a key sent as a Bearer token.

```http
Authorization: Bearer <your key>
```

## Getting a key

1. Sign up at [https://nextauto.ai/sign-up](https://nextauto.ai/sign-up).
2. Wait for approval. Until then every call answers `403`. Ask your NeXT Grade contact if it is taking a while.
3. Create a key on the [API keys](https://nextauto.ai/keys) page and copy it. It is shown once.

A key belongs to you or to a company organization. An organization's keys share its usage and limits, so a whole team can use one account.

## Keeping keys safe

- Keep keys in an environment variable or a secrets manager, never in code, prompts or chat.
- Revoking a key on the API keys page stops it at once.

## Answers

- `401`: the key is missing or invalid.
- `403`: the account isn't approved yet, or it is paused.

Both carry an `error` message, and a missing key or an account not yet approved also carries a `docs` link to this page.
