Skip to main content
Timberlogs uses API Keys for authentication.

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 keys
  • tb_test_* - Test/development keys

Using API Keys

Include your API key in the Authorization header:
Or use the X-API-Key header:

Creating API Keys

  1. Sign in to app.timberlogs.dev
  2. Select your workspace
  3. Navigate to Settings > API Keys
  4. Click Create API Key
  5. 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

How to resolve: Check that the Authorization or X-API-Key header is included in your request.
How to resolve: Verify the key format (tb_live_* / tb_test_*) and that it was copied correctly. If in doubt, generate a new key in Settings > API Keys.
How to resolve: This key has been revoked and can no longer be used. Create a new key in the dashboard under Settings > API Keys.
How to resolve: This key has expired. Create a new key in the dashboard under Settings > API Keys.

403 Forbidden

How to resolve: The API key does not have access to the specified workspace. Verify the key belongs to the correct workspace.
How to resolve: The account associated with this request has no workspace. Create or join a workspace in the dashboard.

404 Not Found

How to resolve: The workspace ID doesn’t exist. Double-check the workspaceId value in your request.

Best Practices

  1. Store keys securely - Never commit API keys to version control
  2. Use different keys per environment - Separate test and production keys
  3. Rotate keys regularly - Especially after team changes
  4. Revoke compromised keys immediately - Generate a new key in the dashboard