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

# Authentication

> Learn how to authenticate your API requests

## API Key Authentication

All Unifically API endpoints require authentication using a Bearer token.

<Steps>
  <Step title="Get Your API Key">
    Sign up at [unifically.com](https://unifically.com) to get your API key
  </Step>

  <Step title="Add to Request Headers">
    Include your API key in the Authorization header of every request
  </Step>
</Steps>

## Authentication Header

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

## Best Practices

<AccordionGroup>
  <Accordion title="Use Environment Variables">
    Never hardcode your API key. Always store it securely in environment variables or secrets management systems.

    ```bash theme={null}
    export UNIFICALLY_API_KEY="your_api_key_here"
    ```
  </Accordion>

  <Accordion title="Keep Keys Secret">
    * Never commit API keys to version control
    * Don't share keys in public forums or documentation
    * Rotate keys regularly
    * Use separate keys for development and production
  </Accordion>

  <Accordion title="Handle Errors Gracefully">
    Always check for authentication errors and handle them appropriately in your application.
  </Accordion>
</AccordionGroup>

<Warning>
  If your API key is compromised, regenerate it immediately from your dashboard.
</Warning>
