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

# Authentication

> All requests to the Precept API must be authenticated using an API key. You can generate and manage your API keys from the Developer Dashboard in your Precept account.

## Generating Your API Key

1. **Navigate to the Developer Page**: Log in to your Precept account and go to the [Developer](https://app.preceptai.co.uk/developer) page.
2. **Generate a New Key**: Click the "Generate New API Key" button. This will create a new, unique key for your account.

<Info>
  **Important**: Your API key is a secret and should be treated like a password.
  Do not share it publicly or commit it to version control.
</Info>

## Making Authenticated Requests

To authenticate your API requests, you must include your API key in the `Authorization` header of every request, using the `Bearer` authentication scheme.

Here is an example of how to include the header in a `curl` request:

```bash theme={null}
curl "https://api.preceptai.co.uk/v1/leads/enrich" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

Replace `YOUR_API_KEY` with the key you generated in the Developer Dashboard.

<Warning>
  Requests made without a valid API key, or with an incorrect key, will receive
  a `401 Unauthorized` error response.
</Warning>

<div className="flex flex-col items-center justify-center p-8 text-center bg-gradient-to-br from-blue-50 to-indigo-100 dark:from-slate-900 dark:to-indigo-950 rounded-2xl border border-blue-100 dark:border-indigo-900 my-8 shadow-sm">
  <h3 className="text-xl font-bold text-slate-800 dark:text-white mb-2">Ready to start building?</h3>

  <p className="text-slate-600 dark:text-slate-300 max-w-md mx-auto mb-6 text-sm">
    Create an account today to get free trial credits and start integrating our B2B data APIs.
  </p>

  <a href="https://app.preceptai.co.uk/auth" className="inline-flex items-center justify-center px-6 py-3 text-sm font-semibold text-white bg-blue-700 hover:bg-blue-800 dark:bg-blue-600 dark:hover:bg-blue-500 rounded-xl transition duration-150 ease-in-out shadow-sm">
    Start Free Trial

    <svg className="w-4 h-4 ml-2" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
      <path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M9 5l7 7-7 7" />
    </svg>
  </a>
</div>
