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

# Authentication

> Authenticate Reposeek API requests with Bearer API keys.

# Authentication

`POST /v1/search` requires a Reposeek API key in the `Authorization` header.

```http theme={null}
Authorization: Bearer <api-key>
```

The CLI reads the same key from `REPOSEEK_API_KEY`.

```bash theme={null}
export REPOSEEK_API_KEY="replace-me"
```

## Create a key

Manage keys at [reposeek.ai/dashboard/api-keys](https://reposeek.ai/dashboard/api-keys).

Keys are shown once when created or regenerated. Store the full value somewhere safe and never commit it to source control.

## Auth failures

* Missing or malformed `Authorization: Bearer <api-key>` header returns `401 missing_api_key`.
* Unknown, revoked, inactive, or expired-account keys return `401 invalid_api_key`.

See [API errors](/api/errors) for the full error contract.
