Distribute File API
Push an uploaded build to Streampixel’s streaming servers. Only needed when autoRelease is false or for re-distribution.
POST
Push an uploaded build to Streampixel’s streaming servers manually.Documentation Index
Fetch the complete documentation index at: https://docs.streampixel.io/llms.txt
Use this file to discover all available pages before exploring further.
If you uploaded with
autoRelease: true (the default), builds are distributed automatically after approval — you don’t need this endpoint. Use it only when autoRelease is false or when you want to re-distribute a previous build (e.g., rolling back to an older version).Distribution is asynchronous. A
200 response means the process has been triggered, not completed. Use webhooks to track when distribution finishes.Prerequisites
- The build has been uploaded via the Upload File API.
- The build has finished processing and has a valid URL.
- Your project is enabled (not disabled by an admin).
- You have a valid API key.
Request body
Your Streampixel API key.
The ID of the account that owns the project.
The project the build belongs to.
The
uploadId returned by the Upload File API. Must belong to the specified projectId.Response
Status of the distribution request (e.g.,
"Distribution triggered").How distribution works
Supported regions
| Region | Description |
|---|---|
us-east-1 | United States (East) |
europe | Europe |
asia-pacific | Asia Pacific (default) |
Rate limiting
Automated pipeline with webhooks
Combine webhooks and this endpoint for a controlled CI/CD flow:Upload with autoRelease: false
Submit the build via the Upload File API with
autoRelease: false.Listen for build.approved
Subscribe to webhook events.
- Node.js
- Python
Troubleshooting
| Problem | Solution |
|---|---|
Unauthorized: Invalid API Key | Regenerate your API key from the dashboard Settings page. |
Access denied | Verify you own the project and it isn’t disabled. |
File not found in project | Double-check the uploadId — it must belong to the specified project. |
File has no URL | The upload is still processing. Wait for it to complete before distributing. |
Rate limit exceeded | Wait the indicated seconds before retrying (limit: 1 req / 2 min / user). |
| Triggered but not live | Distribution is async. Use webhooks to track status. |
Next steps
Listen for webhooks
Track distribution events in real time.
Upload File API
The endpoint that produces the
uploadId you pass here.