userId.
Generate a key
1
Sign in to the dashboard
Open dashboard.streampixel.io and sign in.
2
Open your account menu
Click your account name in the top-right corner.
3
Request the key
Click Request API Key. The key is sent to your registered email address and shown once in the dashboard.
4
Copy and store it
Save the key in a password manager or secrets store immediately.
Use a key in a request
Pass it asapiKey in the JSON body — never as an Authorization header. Every call also needs your userId and projectId.
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.1
Generate a new key
Click Request API Key in your account menu.
2
Update your integrations
Replace the old key everywhere it is used — env vars, CI secrets, deploy configs.
3
Verify
Make a test request. A
401 Unauthorized: Invalid API Key means an integration still references the old value.Security best practices
- Never commit keys to source control. Use env vars or a secrets store.
- Server-side only. Don’t embed in browser bundles, mobile binaries, or anything users can decompile.
- Rotate on suspected exposure. Accidentally pushed to GitHub → rotate immediately, then scrub the commit.
- Limit teammate scope. Use
READONLYor per-project access — their keys inherit the restrictions.
Troubleshooting
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.