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

# Authentication

All API requests must include your API key in the `X-API-Key` header. This page is the canonical source for getting and managing your key.

## API Key Format

API keys are prefixed with `nxr_live_`. Each account has a single key that authenticates every request to the API.

## Where to find your key

Your key lives in the Nexor dashboard. To get it:

1. Click your profile at the bottom left of the Nexor dashboard.
2. Open **Integrations**.

Your API key is shown there, ready to copy.

## Usage

Include the header in every request:

```bash theme={null}
curl https://api.getnexor.ai/api/public/leads \
  -H "X-API-Key: nxr_live_your_api_key"
```

## Error Responses

### Missing API Key

```json theme={null}
{
  "error": "Missing API key",
  "message": "Please provide your API key in the X-API-Key header"
}
```

**Status:** `401 Unauthorized`

### Invalid API Key

```json theme={null}
{
  "error": "Invalid API key",
  "message": "The provided API key is not valid"
}
```

**Status:** `401 Unauthorized`
