Authentication Methods
- Environment Variable
- CLI Config
- Direct Token
Set the Then initialize the client without arguments:
CHAMBER_TOKEN environment variable:Getting an API Token
- Log in to the Chamber Dashboard
- Navigate to Settings > API Tokens
- Click Create Token and copy the generated token
API tokens start with the prefix
ch. followed by a unique identifier.Multi-Organization Users
If you belong to multiple organizations, specify which one to use:Configuration Options
| Parameter | Description | Default |
|---|---|---|
token | API token | From env or config |
organization_id | Organization ID for multi-org users | None |
api_url | Override API endpoint | https://api.usechamber.io/v1 |
timeout | Request timeout in seconds | 30 |
Custom API Endpoint
For testing or custom deployments, you can override the default API URL:https://api.usechamber.io/v1.
Verifying Authentication
Test your credentials by checking the API health:Token Precedence
The SDK looks for authentication tokens in this order:- Direct token parameter -
ChamberClient(token="...") - Environment variable -
CHAMBER_TOKEN - Config file -
~/.chamber/token.json
AuthenticationError is raised.

