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

# API Authentication

> Learn how to authenticate requests to the Bannerify API.

Bannerify uses project API keys to authenticate API requests. Create one key per project or workflow so you can rotate access without affecting unrelated automations.

## API keys

You can create a project API key in **Dashboard → API Keys**.

Keep API keys in server-side code, environment variables, or secret managers. Do not commit them to git or expose them in browser code.

## Use your API key

Pass your API key as `apiKey` in API requests that require authentication:

```bash theme={null}
curl --request POST \
  --url https://api.bannerify.co/v1/templates/createImage \
  --header 'Content-Type: application/json' \
  --data '{
    "apiKey": "bnfy_xxx",
    "templateId": "tpl_xxx",
    "modifications": {
      "headline": "Summer sale"
    }
  }'
```

## Rotate a key

If a key is exposed or no longer needed, create a replacement key, update your workflow, then revoke the old key from the dashboard.
