# Authentication

All API requests require a valid API token. You can create and manage tokens from the [dashboard](https://app.zeplo.io) under **Settings → Tokens**.

Provide your token as a Bearer token in the `Authorization` header:

```
Authorization: Bearer YOUR_TOKEN
```

Tokens are scoped to a workspace. Each workspace can have multiple tokens, which is useful for separating access across environments or services.

### Example

```bash
curl -X GET "https://api.zeplo.io/workspaces/YOUR_WORKSPACE_ID/queues" \
  -H "Authorization: Bearer YOUR_TOKEN"
```

### Security

- Keep your tokens secret. Never commit them to source control.
- Rotate tokens regularly from the dashboard.
- If a token is compromised, revoke it immediately and create a new one.
- Use separate tokens for development and production environments.
