x-api-key header. The key identifies your account; the endpoint then applies the same ownership and team-role checks the dashboard does, so a key can never reach another account’s projects.
Two endpoints are the exception. Upload File and Distribute File predate the header and require the key as
apiKey in the JSON body, together with userId, exactly as their examples show; the header alone returns 400 Missing required fields. Both are POST requests. A GET with a JSON body is rejected at the edge with an HTML 400 Bad Request page before it reaches the API.Scopes
A key is issued with one or more scopes. They are fixed when the key is created and cannot be widened afterwards; a key on a route outside its scope gets403 API_KEY_SCOPE naming the scope it lacks.
Keys issued before scopes existed carry
upload and read, exactly what they could do before. Nothing already deployed gains the ability to switch a project off.
Generate an API key
1
Log in to the dashboard
Go to dashboard.streampixel.io and sign in.
2
Open your account menu
Click your account name in the top-right corner.
3
Choose scopes
Under Settings → API Keys, tick the scopes the key should have.
Upload and Read are on by default; tick Control only for automation that must switch projects or change settings.4
Request the key
Click Request API Key. The key is emailed to you and shown once, with its scopes.
Issuing a key programmatically
The dashboard is the usual way. The same endpoint is available to a dashboard login (never to a key, so a key cannot widen itself):200 OK
Team members
A key inherits the role of the team member it was issued to. Owners, admins and editors can use every scope on the projects they can see. An uploader’s key can upload, read, and, when issued with thecontrol scope, set the live build; it cannot switch a project on or off, end sessions or change settings. A viewer’s key can only read; a finance member’s key cannot use the API. Removing a member from the team invalidates what their key can reach at once.
Authentication errors
403 API_KEY_SCOPE
Security best practices
Next steps
Find your IDs
Locate your
userId and projectId in the dashboard.Rate limits & errors
Limits, status codes and the error format.