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

# Authentication

> How to authenticate with the SuggestKit API

## API Key Authentication

All SuggestKit API requests require authentication using your project's API key. The API key should be included in the Authorization header as a Bearer token.

```bash theme={null}
Authorization: Bearer your_public_api_key_here
```

## Getting Your API Key

1. Log in to your [SuggestKit Dashboard](https://dashboard.suggestkit.app)
2. Navigate to your project settings
3. Copy your public API key from the API Keys section

<Warning>
  Never share your API key publicly or include it in client-side code. Keep it secure and use environment variables in production.
</Warning>

## Example Request

```bash cURL theme={null}
curl -X GET "https://api.suggestkit.app/api/v1/sdk/users" \
  -H "Authorization: Bearer sk_live_1234567890abcdef..." \
  -H "Content-Type: application/json"
```

## Error Responses

If authentication fails, you'll receive a `401 Unauthorized` response:

```json theme={null}
{
  "error": {
    "message": "Invalid or missing API key",
    "code": "UNAUTHORIZED"
  }
}
```

## Base URL

All API requests should be made to:

```
https://api.suggestkit.app/api/v1/sdk
```
