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

# Authentication

> How to authenticate Enrow API requests with your API key in the x-api-key header

The Enrow API uses API key authentication. Every request must include your API key in the `x-api-key` header. There are no OAuth flows or bearer tokens to manage — one API key authenticates every endpoint.

## How do I get my API key?

1. Sign up at [app.enrow.io](https://app.enrow.io)
2. Click **API** in the left menu
3. Copy your API key

> [!WARNING]
>
> Keep your API key secure and never commit it to version control. Treat it like a password. If your key is ever exposed, reset it: see [Best practices](#best-practices).

## How do I authenticate a request?

Include your API key in the `x-api-key` header on every request:

```bash cURL theme={null}
curl --request POST \
  --url https://api.enrow.io/email/find/single \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: YOUR_API_KEY' \
  --data '{
    "fullname": "John Doe",
    "company_domain": "example.com"
  }'
```

```javascript Node.js theme={null}
const response = await fetch('https://api.enrow.io/email/find/single', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'x-api-key': 'YOUR_API_KEY'
  },
  body: JSON.stringify({
    fullname: 'John Doe',
    company_domain: 'example.com'
  })
});

const data = await response.json();
```

```python Python theme={null}
import requests

url = "https://api.enrow.io/email/find/single"
headers = {
    "Content-Type": "application/json",
    "x-api-key": "YOUR_API_KEY"
}
payload = {
    "fullname": "John Doe",
    "company_domain": "example.com"
}

response = requests.post(url, json=payload, headers=headers)
data = response.json()
```

The same `x-api-key` header works for every endpoint — [Email Finder](https://docs.enrow.io/api-reference/email-finder/find-single.md), [Email Verifier](https://docs.enrow.io/api-reference/email-verifier/verify-single.md), [Phone Finder](https://docs.enrow.io/api-reference/phone/find-single.md), and [Account info](https://docs.enrow.io/api-reference/account/info.md).

## Why am I getting a 401 error?

A `401 Unauthorized` response means your API key is missing or invalid.

If the API key is invalid, you'll receive:

```json theme={null}
{
  "message": "This apikey is not valid"
}
```

If no API key is provided, the `message` is instead `"No apikey found in the x-api-key headers"`.

For the complete list of status codes and error formats, see [Status codes](https://docs.enrow.io/status-codes.md) and [Error handling](https://docs.enrow.io/error-handling.md).

## How do I check my account and credits?

You can retrieve your account information (credits balance and registered webhooks) using the same `x-api-key` header — no body payload is needed:

```bash theme={null}
curl https://api.enrow.io/account/info \
  -H "x-api-key: YOUR_API_KEY"
```

```json Response theme={null}
{
  "credits": 8500,
  "webhooks": ["https://your-app.com/webhooks/enrow"]
}
```

To understand how credits are consumed per endpoint, see [Credits & billing](https://docs.enrow.io/credits-billing.md).

## Best practices

> [accordion] Use Environment Variables
>
> Store your API key in environment variables rather than hardcoding it:
>
> ```bash theme={null}
> export ENROW_API_KEY="your_api_key_here"
> ```

> [accordion] One Key per Account
>
> Your account has a single API key, and on a team the whole team shares it. There is no separate key per environment or per member, so keep it in a secret manager and load it from there in each environment.

> [accordion] Reset the Key If It Is Exposed
>
> The account owner (on a team, the team owner) can reset the key from the [API page](https://app.enrow.io/api) with **Reset API key**. The previous key is invalidated, so update it everywhere you use it.

## Next steps

> [card] [Find an email](https://docs.enrow.io/api-reference/email-finder/find-single.md)
>
> Search for a professional email address from a name and company.

> [card] [Verify an email](https://docs.enrow.io/api-reference/email-verifier/verify-single.md)
>
> Check whether an email address is valid and deliverable.

> [card] [Credits & billing](https://docs.enrow.io/credits-billing.md)
>
> See how credits are consumed for each endpoint.

> [card] [Rate limits](https://docs.enrow.io/rate-limits.md)
>
> Understand the API request limits before scaling up.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.