Method
GET /v1/gallery/download/:id
Path Parameters
Gallery file ID.
Headers
Bearer token (e.g.
Authorization: Bearer YOUR_API_KEY)Request Example
Response
- 302 redirect – Videos stored in Cloudflare Stream (or other providers with playback URLs) redirect to the playback URL (
hls,dash, orprimary). - 200 OK – For assets stored in R2 or Cloudflare Images, the API streams the binary file with
Content-Disposition: attachment.
Files in
status: deleting or deleted return 404. Respect the redirect URL’s authentication model (Stream URLs expire if you configured signed delivery).