Upload a video to Cloudflare Stream via tus resumable upload

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

Steps

  1. Obtain your Cloudflare account ID and create an API token with Stream permissions (or use your Global API Key).
  2. Initiate a tus upload session by sending a POST request to the Cloudflare Stream tus endpoint for your account, including the Upload-Length header (file size in bytes) and Upload-Metadata header with encoded metadata such as the video name.
  3. Include your Cloudflare API token in the Authorization header (Bearer YOUR_TOKEN) and the required tus version header.
  4. From the 201 response, capture the Location header which contains the unique upload URL for this session.
  5. Use a tus-compatible client library to upload the file bytes to the Location URL in chunks, resuming from the last acknowledged offset if interrupted.
  6. Once the upload completes, retrieve the video's uid from the Stream dashboard or the videos API to construct the playback URL.

Known gotchas

Related routes

Upload a video to Vimeo using the tus resumable upload protocol and configure privacy settings
vimeo · 6 steps · unrated
Upload a video to YouTube using the resumable upload (videos.insert)
developers.google.com · 6 steps · unrated
Configure Cloudflare Stream signed URLs for private video playback
developers.cloudflare.com · 5 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