Authentication
All REST API requests require a Bearer token in theAuthorization header.
Getting a Token
Generate API keys in the StreamBot dashboard: Settings > API Keys > Create Key.Token Types
| Type | Prefix | Behavior |
|---|---|---|
| Live | sb_live_ | Events are delivered to the live overlay |
| Test | sb_test_ | Events are accepted but not delivered (for development) |
Using Your Token
Token Security
- Never expose tokens in client-side code or public repositories
- Use
sb_test_tokens during development - Store tokens in environment variables or secret managers
- Rotate tokens periodically via the dashboard
Revoking Tokens
Revoke compromised tokens from Settings > API Keys > Revoke. Revoked tokens immediately return401 Unauthorized on all requests.
Error Responses
| Status | Meaning |
|---|---|
| 401 | Missing Authorization header or invalid token |
| 403 | Token is valid but lacks permission for this action |