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

# Authentication

> Learn how to authenticate your requests to the Nuntly API.

The Nuntly API uses API keys to authenticate requests. Each request to the API must include a valid API key in the `Authorization` header.

## Authentication

```shell theme={null}
curl -X POST 'https://api.nuntly.com/emails' \
     -H 'Authorization: Bearer <API_KEY>' \
    -H 'Content-Type: application/json' \
    ... # other headers and body
```

You can create an API key in the Nuntly dashboard [here](https://nuntly.com/api-keys). Make sure to keep your API key secure and do not share it publicly.

## SDK

For easier integration, consider using our official client SDKs, which handle authentication and API requests for you.

```ts theme={null}
const client = new Nuntly({
  apiKey: process.env['NUNTLY_API_KEY'],
});
```

Refer to the [SDK documentation](https://github.com/nuntly/nuntly-sdk-typescript) for more details on how to use the client libraries.
