---
title: "Download a media file"
method: GET
path: "/v1/media/{id}/file"
tags: ["media"]
---

# Download a media file

`GET /v1/media/{id}/file`

## Request

- Base URL: `https://api.brixsignage.com`
- URL: `https://api.brixsignage.com/v1/media/{id}/file`
- Auth: HTTP bearer

Stream the media asset's file bytes. Supports HTTP Range requests for partial downloads.

**Notes.**
- HTML, SVG and script files are served as `application/octet-stream` attachments, never inline.

## Path parameters

- `id` string, required

## Query parameters

- `w` string
- `h` string
- `fit` 'cover' | 'contain' | 'scale-down' | 'crop' | 'pad'

## Response `200`

Success. The body is the file itself.

## Other responses

- `401`: Missing, expired or revoked bearer token.
- `403`: The token lacks the permission this operation needs (see `x-brix-permission`).
- `404`: No media with this id, or the file is not in storage.
- `5XX`: Server error. The body carries a `requestId` to quote to support.

---

[API](https://skmtc.dev/brixsignage/apis/brix-api.md) · [All operations](https://skmtc.dev/brixsignage/apis/brix-api/llms.txt) · [OpenAPI document](https://skmtc.dev/brixsignage/apis/brix-api/revisions/02fd3665dc7d?raw)
