# Authentication

Go to [Datarova Connections](https://app.datarova.com/settings/connections) and generate or rotate a User API key. The raw key is shown only once when created, so store it securely.

Bearer authentication is the only supported authentication method for `/v0`. Send the raw API key on every request in the `Authorization` header:

```
Authorization: Bearer <api_key>
```

Replace `<api_key>` with your key in every example in these docs. Never put a key in a URL, a shared document or client-side code.

## When authentication fails

| Status | Code | Meaning |
| --- | --- | --- |
| `401` | `missing_api_key` | The request has no `Authorization: Bearer` header. |
| `401` | `invalid_api_key` | The key is not recognised. Check that you sent the whole raw key, or generate a new one in Datarova Connections. |
| `403` | `feature_not_enabled` | The key is valid, but User API access is not enabled for the account. |

See [Pagination, rate limits and errors](/pagination-rate-limits-errors) for every shared error.
