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

# Authentication

> Choose a project credential for SDK ingestion or public read queries.

| Operation | Bearer credential |
| - | - |
| Send SDK events or fetch SDK configuration under `/v1` | Project ingestion key |
| Query spend, end users, or reports under `/v1` | Project read key with the [required scope](https://docs.brello.app/sdk/guides/read-api.md) |

For ingestion and configuration, send your complete project key in the `Authorization` header.

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

| Prefix | Environment |
| - | - |
| `brl_live_` | Live |
| `brl_test_` | Test |
| `brello_` | Legacy; environment resolved by the server |

The current HTTP server accepts these prefixes followed by a 43-character Base64URL token. Use a key issued for your project. Do not generate keys or append an SDK checksum to an HTTP key.

## Project and environment

The authenticated key determines the organization, project, and environment. Do not include these properties in the batch payload. Unknown batch properties are rejected.

Call [GET /config](https://docs.brello.app/sdk/api-reference/config.md) to verify access and inspect the effective project settings. A `401` response means authentication failed; stop sending and check the key.

## Server-side secrets

Store credentials in server environment variables or secret bindings. Never expose them through browser bundles or `NEXT_PUBLIC_` variables. Provider API keys are separate credentials and must not appear in event payloads. Use an optional [provider key fingerprint](https://docs.brello.app/sdk/guides/events.md#provider-key-fingerprints).


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