Authentication
All StatStream REST API requests must be authenticated using an API key.
Generate an API Key
Section titled “Generate an API Key”To create a new API key:
- Sign in to the StatStream web application.
- Navigate to Manage Organization → API Keys.
- Click Create API Key.
- Enter a Name, Description, and Owner.
- Generate the key and store it securely.
Authenticate Requests
Section titled “Authenticate Requests”Include your API key in the Authorization header using the Bearer authentication scheme.
Authorization: Bearer <YOUR_API_KEY>Authentication Errors
Section titled “Authentication Errors”Requests with an invalid, expired, revoked, or deleted API key will receive an HTTP 401 Unauthorized response.
| HTTP Status | Description |
|---|---|
| 401 Unauthorized | The API key is missing, invalid, expired, revoked, or has been deleted. |