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.
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
string
required
Your Streampixel API key.
string
required
The ID of the account that owns the project.
string
required
The project the build belongs to.
string
required
The
uploadId returned by the Upload File API. Must belong to the specified projectId.Response
string
Status of the distribution request (e.g.,
"Distribution triggered").How distribution works
1
Validation
Streampixel verifies your API key, project ownership, and that the file exists.
2
Region routing
The build is routed to your project’s configured region.
3
Queued
The distribution task is added to the processing queue.
4
Streaming servers
The build is pushed to servers and becomes available for streaming.
Supported regions
Rate limiting
Automated pipeline with webhooks
Combine webhooks and this endpoint for a controlled CI/CD flow:1
Upload with autoRelease: false
Submit the build via the Upload File API with
autoRelease: false.2
Listen for build.approved
Subscribe to webhook events.
3
Run your validation
On approval, run any internal checks (smoke tests, asset scans, etc.).
4
Call this endpoint
Distribute the build by calling
POST /projects/distribute-file.5
Confirm distribution
Listen for
build.distributing to confirm the rollout started.- Node.js
- Python
Troubleshooting
Next steps
Listen for webhooks
Track distribution events in real time.
Upload File API
The endpoint that produces the
uploadId you pass here.