API Keys
API keys are the recommended method for server-side applications and SDKs.Key Format
API keys follow the format:tb_{environment}_{random}
tb_live_*- Production keystb_test_*- Test/development keys
Using API Keys
Include your API key in theAuthorization header:
X-API-Key header:
Creating API Keys
- Sign in to app.timberlogs.dev
- Select your organization
- Navigate to Settings > API Keys
- Click Create API Key
- Store the key securely - it’s only shown once
Key Security
- Keys are hashed before storage (we never store the raw key)
- Use environment variables to store keys in your applications
- Rotate keys periodically
- Revoke compromised keys immediately
Error Responses
401 Unauthorized
Authorization or X-API-Key header is included in your request.
tb_live_* / tb_test_*) and that it was copied correctly. If in doubt, generate a new key in Settings > API Keys.
403 Forbidden
404 Not Found
organizationId value in your request.
Best Practices
- Store keys securely - Never commit API keys to version control
- Use different keys per environment - Separate test and production keys
- Rotate keys regularly - Especially after team changes
- Revoke compromised keys immediately - Generate a new key in the dashboard