All Streampixel API endpoints require an API key for authentication. The key is passed in the request body — not as an Authorization header.
Generate an API key
Open your account menu
Click your account name in the top-right corner.
Request the key
Click the Request API Key button.
Check your email
The key is sent to your registered email address.
Your API key is shown only once. Copy and store it securely — you won’t be able to view it again.
Requesting a new API key automatically invalidates the previous one. Any integration still using the old key will stop working immediately.
Use the API key
Include apiKey in the JSON body of every request:
curl -X POST https://api.streampixel.io/pixelStripeApi/projects/upload-file \
-H "Content-Type: application/json" \
-d '{
"apiKey": "your-api-key-here",
"userId": "your-user-id",
"projectId": "your-project-id",
"fileUrl": "https://storage.example.com/build.zip"
}'
Authentication errors
| Status | Message | Cause |
|---|
401 | Unauthorized: Invalid API Key | Key is wrong or has been invalidated |
401 | Invalid User | userId doesn’t match any account |
Receiving a 401? Generate a new API key from the dashboard and update your integration.
Security best practices
- Never expose your API key in frontend code, public repos, or client-side bundles.
- Store it in environment variables or a secrets manager.
- Rotate the key periodically by requesting a new one from the dashboard.
- The API only accepts HTTPS — there is no HTTP fallback.
Next steps
Find your IDs
Locate your userId and projectId in the dashboard.
Upload a build
Submit your first build with the API key you just generated.