# Authentication

> Create API keys, send them with requests, and keep them safe.

Source: https://docs.gastrogate.io/docs/getting-started/authentication

Every request to the Loco API is authenticated with a token sent in the `Authorization` header.

```text
Authorization: Bearer <your-api-key>
```

## Creating an API key

> [!IMPORTANT]
> Placeholder: describe where customers create keys (dashboard location, required role) and how keys are scoped to an organization.

## Permissions

Many operations require a specific permission. The required permission is listed in the description of each operation in the [API reference](https://docs.gastrogate.io/docs/api.md), for example the [`me`](https://docs.gastrogate.io/docs/api/queries/me.md) query requires `Authenticated`. Read more in [Permissions](https://docs.gastrogate.io/docs/concepts/permissions.md).

## Keeping keys safe

- Only use API keys from servers you control — never ship them in a browser or mobile app bundle.
- Store keys in a secret manager or environment variable.
- Rotate keys immediately if you suspect one has leaked.
