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

# Authentication

> How to authenticate API requests with Bearer tokens and project DSNs.

The Traceback API authenticates requests using **Bearer Tokens** in the standard `Authorization` header.

## API Keys

Traceback provides two types of API keys:

1. **User / Organization Tokens** (`tb_live_...` or `tb_test_...`): Used for administrative queries, fetching events, managing alerts, and uploading source maps.
2. **Project DSNs** (`https://<key>@ingest.traceback.dev/<project_id>`): Public client-safe keys used by frontend and backend SDKs for event ingestion.

***

## Passing Credentials in Headers

```bash theme={null}
curl -X GET "https://api.traceback.dev/v1/projects" \
  -H "Authorization: Bearer tb_live_94820184729104" \
  -H "Content-Type: application/json"
```
