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

# Authentication

> Learn how to authenticate your API requests using API keys

## Overview

Authentication is required to access all Cevoid API endpoints. The Cevoid API uses token-based authentication with API keys that you include in your request headers.

## Getting Your API Key

1. Log in to your Cevoid account
2. Navigate to **Settings** -> **Integrations** -> **API**
3. Create a new API key or copy an existing one

<Note>
  You can find your API keys at: [https://app.cevoid.com/settings/integrations/api <Icon icon="square-arrow-out-up-right" />](https://app.cevoid.com/settings/integrations/api)
</Note>

***

## Authentication Method

Include your API key in the request headers using the `x-api-key` field:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl https://api.cevoid.com/v1/posts \
  -H "x-api-key: {your-api-key}"
```

***

## Security Best Practices

<Warning>
  Never commit your Cevoid API token to version control systems like GitHub. Store your API keys securely and treat them like passwords.
</Warning>

### Recommendations

* Store API keys as environment variables
* Use different API keys for development and production environments
* Rotate your API keys regularly
* Restrict API key access to only necessary team members

***

## Example Request

Here's a complete example of an authenticated API request:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl https://api.cevoid.com/v1/posts \
  -H "x-api-key: sk_live_1234567890abcdef" \
  -H "Content-Type: application/json"
```

<Check>
  If your request is properly authenticated, you'll receive a successful response with the requested data.
</Check>
