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

# API Key

> Authenticate programmatic access to Neo using your API key

Your API key authenticates requests to Neo's API. Use it to trigger tasks, retrieve results, and integrate Neo into your own workflows and tooling. Keep it secure and never expose it in client-side code or public repositories.

Find your API key under **Settings → API Key**.

## Using your API key

Pass the key in the `X-Api-Key` header on every request:

```bash theme={"system"}
curl -X POST https://neo.api.projectdiscovery.io/api/v1/tasks \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --data '{
    "task": "Review my authentication flow for token leakage, missing authorization checks, and insecure storage"
  }'
```

See the [API Reference](/api-reference/overview) for the full list of available endpoints.

## Rotating your key

Click **Rotate** to generate a new API key. The old key is invalidated immediately. Update any integrations or scripts that use the previous key before rotating.
