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

# Authentication

> Authenticate your API requests with an API key

All DeepXL API endpoints require authentication using an **API key**.

## API Key Authentication

Pass your API key in the `x-api-key` header:

```bash theme={null}
curl https://api.deepxl.ai/v1/detection \
  -H "x-api-key: YOUR_API_KEY"
```

### Managing API Keys

Manage API keys from the DeepXL Console. These management endpoints are console-only and are not part of the public API.

<Note>
  Use the Console dashboard for API key creation, rename, and deletion. Public API keys cannot be used to manage other API keys.
</Note>

## Error Responses

| Status             | Description                                    |
| ------------------ | ---------------------------------------------- |
| `401 Unauthorized` | Missing or invalid API key                     |
| `403 Forbidden`    | Valid credentials but insufficient permissions |

```json theme={null}
{
  "statusCode": 401,
  "error": "Unauthorized",
  "message": "Unauthorized"
}
```
