Distribute File API
Trigger distribution of an uploaded build file to the streaming servers in the project's configured region. Distribution is asynchronous — a 200 response means the process has been triggered, not completed. Use webhooks to track progress.
Body
apiKeystringRequired
Your API authentication key
userIdstringRequired
Your Streampixel user ID
projectIdstringRequired
The unique identifier of your Streampixel project
uploadIdstringRequired
The unique identifier of the uploaded build file (returned from upload-file)
Responses
200
Distribution triggered successfully
application/json
successbooleanOptionalExample:
trueuploadIdstringOptionalExample:
665a2b3c4d5e6f7a8b9c0e1fregionstring · enumOptionalExample:
Region the build is being distributed to
us-east-1Possible values: messagestringOptionalExample:
File distribution triggered successfully400
Bad request — missing fields or file has no URL
application/json
401
Unauthorized — invalid user or API key
application/json
403
Forbidden — access denied to project
application/json
404
Not found — project or file does not exist
application/json
429
Rate limit exceeded — 1 request per 2 minutes per user
application/json
500
Internal server error
application/json
post
/projects/distribute-fileOverview
Prerequisites
Code Examples
How Distribution Works
Supported Regions
Region
Description
Rate Limiting
Automated Pipeline with Webhooks
Troubleshooting
Problem
Solution
Last updated