---
title: "Get a short-lived download URL for a media file"
method: GET
path: "/v2/media/{media_id}/download"
tags: ["v2 - Media"]
---

# Get a short-lived download URL for a media file

`GET /v2/media/{media_id}/download`

## Request

- Base URL: `https://api.jubjubapp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jubjubapp.com/v2/media/{media_id}/download`
- Auth: HTTP bearer

A signed URL (15 minutes) that downloads the stored file with its
original filename.

Access: CONTENT_DOWNLOAD on the media's workspace (owner, admin, manager,
editor, team publisher). A viewer or reviewer gets 403.

## Path parameters

- `media_id` string, required

## Headers

- `Authorization` string
- `X-JubJub-Service-Key` string
- `X-JubJub-Agent-Key` string
- `X-JubJub-Platform-Key` string
- `Origin` string
- `Referer` string
- `X-JubJub-Trial-Token` string

## Response `200`

Successful Response

- MediaDownloadResponse: A short-lived signed URL that saves the stored file.
  - `media_id` string, required
  - `filename` string, required
  - `content_type` string, nullable
  - `size_bytes` integer, nullable
  - `url` string, required
  - `expires_in_seconds` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jubjubapp/apis/jubjub-api.md) - [All operations](https://skmtc.dev/jubjubapp/apis/jubjub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jubjubapp/apis/jubjub-api/revisions/353157b296f2?raw)
