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

# Authentication

> Authenticate with the Giftbit API by sending your API token prefixed by the word Bearer (case sensitive) and a space in the “Authorization” HTTP header.

```http theme={null}
Authorization: Bearer YOUR_API_KEY
```

<Tip>
  The [`/ping`](/api-reference/ping/ping) endpoint can be used to test your authentication.
</Tip>

Generate an API token from the `Account → API keys` section of your Giftbit account. You will require a separate token for each environment — see [Environments and URLs](/guides/environments).
