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

# Authentication

> Authenticate every request with your secret API key.

The Global Stack API uses **bearer authentication**. Pass your secret API key — issued during merchant onboarding — in the `Authorization` header of every request:

```bash theme={null}
Authorization: Bearer YOUR_SECRET_KEY
```

## Example request

```bash theme={null}
curl https://api.globalstack.io/v1/wallets \
  -H "Authorization: Bearer YOUR_SECRET_KEY"
```

## Keys

> [card] [Get your keys](https://dashboard.globalstack.io)
>
> Manage and rotate your API keys from the Global Stack dashboard.

* Your secret key authenticates server-to-server calls. **Treat it like a password** — never commit it to source control or expose it in client-side code.
* A missing or invalid key returns `401` with the `authentication_failed` code. See [Errors](https://docs.globalstack.io/errors.md).

> [!WARNING]
>
> All requests must be made over HTTPS. Calls over plain HTTP fail.


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