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

# Authentication

> Learn how to authenticate HTTP API requests.

SuprSend uses API Keys to authenticate requests. You can get the API Keys from [SuprSend dashboard -> Developers -> API Keys](https://app.suprsend.com/en/staging/developers/api-keys) page. API Keys are unique to your workspace. This is done to keep your testing and production workspace separate and safeguards against accidentally sending wrong notification to your production users during testing.

API Keys are confidential to your account and can only be generated in your SuprSend dashboard. To add an extra layer of security, we guarantee that any API Key generated is displayed only once to the user at the time of key generation and is not stored anywhere apart from your codebase.

## Generating API Keys

To generate API Key, go to [SuprSend dashboard -> Developers -> API Keys](https://app.suprsend.com/en/staging/developers/api-keys) page and click on `Generate API Key` button.

* Next, give your API Key a relevant name and click on '`Create and Save`'.
* You'll now see the generated API Key. Copy it and store it somewhere safe in your codebase. For security purposes, API Key can be seen only once at the time of generation. You'll not be able to view the API Key afterwards. Once copied, you can close the modal by clicking on "Done."

**Signing API Requests**

To authorize your API request, pass your API Key in the `Authorization` header with the contents of the header being “Bearer XXX” where XXX is your API Secret Key. Also, pass content type as `application/json`

**Example Header:**

```curl theme={"system"}
Authorization: Bearer _APIKey_
Content-Type: application/json
```
