An API key authenticates your REST requests against the Streampixel API. Keys are issued per user and scope to the projects that user has access to. They are passed in the JSON body of each request alongside yourDocumentation Index
Fetch the complete documentation index at: https://docs.streampixel.io/llms.txt
Use this file to discover all available pages before exploring further.
userId.
How keys are stored
Streampixel encrypts every API key at rest using AES-256-CBC. The stored value has the format{iv_hex}:{encrypted_hex}. You only ever see the plaintext key once — at the moment it is generated. Streampixel cannot recover a lost key; you must rotate to a new one.
Generate a key
Sign in to the dashboard
Open streampixel.io and sign in with your Google account.
Request the key
Click Request API Key. The key is sent to your registered email address and shown once in the dashboard.
Find your User ID and Project ID
Every API call needs both youruserId and a projectId. Both are visible in the dashboard.
Locating your IDs
Step-by-step guide to finding
userId and projectId in the dashboard.Use a key in a request
Pass the key as theapiKey field in the JSON body. It is never sent as an Authorization header.
Key scope
A key inherits the access of the user it was generated for:- Account owner — the key works on every project in the account.
- Team member with
FULLaccess — the key works on every project in their access list. - Team member with
READONLYaccess — the key only works for read endpoints on projects in their access list.
Rotate a key
Rotation is one-step: requesting a new key invalidates the previous one.Update your integrations
Replace the old key everywhere it is used — env vars, CI secrets, deploy configs.
Security best practices
Troubleshooting
| Status | Message | Cause |
|---|---|---|
401 | Unauthorized: Invalid API Key | Key was rotated, mistyped, or belongs to a different account |
401 | Invalid User | userId does not match the key’s owner |
403 | Forbidden | Key owner has no access to the requested project |
Next steps
API authentication
Full reference for the auth model used by every endpoint.
Find your IDs
Locate
userId and projectId for use in requests.Team members
Control who can issue keys and which projects they cover.
Webhooks
Get push notifications instead of polling the API.