Create a Mux direct upload and retrieve a playback ID

domain: docs.mux.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Authenticate using HTTP Basic Auth with your Mux token ID as the username and token secret as the password.
  2. Create a direct upload by sending a POST request to the direct uploads endpoint, specifying a new_asset_settings object with playback_policy (e.g., public) in the JSON body.
  3. From the response, capture the url field (the pre-signed upload URL) and the upload id.
  4. PUT the video file bytes directly to the pre-signed URL — no Mux authentication headers are needed for this step.
  5. Poll the upload status via the direct uploads endpoint using the upload id, or listen for the video.asset.ready webhook event.
  6. Once the asset is ready, retrieve the asset's playback_ids array; use a playback ID with the Mux stream base URL to construct the HLS manifest URL for playback.

Known gotchas

Related routes

Upload and stream video with Mux
mux.com · 4 steps · unrated
Ingest and transcode a video asset via the Mux API and retrieve a playback URL
mux · 5 steps · unrated
Create a Mux live stream with RTMPS ingest and retrieve stream key
docs.mux.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans