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

# Authentication

> How to authenticate with the Client Commander API

## API Keys

All API requests require an API Key. You can generate one in your dashboard under **Admin > API Keys**.

<Warning>
  Your API Key carries the same privileges as your user account. Keep it secure and never share it publicly.
</Warning>

### Using the SDK

The SDK handles authentication automatically:

```typescript theme={null}
import { ClientCommander } from '@clientcommander/sdk';

const cc = new ClientCommander({
  apiKey: 'ccmd_live_...',
});
```

### Raw HTTP Requests

Include the key in the `Authorization` header:

```bash theme={null}
Authorization: Bearer ccmd_live_...
```

Example request:

```bash theme={null}
curl -X GET https://api.clientcommander.com/v1/people \
  -H "Authorization: Bearer ccmd_live_..."
```
