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

# Retrieve a media file

`GET /media/{id}`

## Request

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

Retrieves the metadata for a media file along with a fresh signed URL valid for fifteen minutes.

## Path parameters

- `id` string, required: The Cavuno media object's `id` returned by `POST /v1/media/upload`.

## Response `200`

Successful response.

- MediaGet
  - `id` string, required: Unique identifier for the object. Use this value as the `{id}` path parameter for `GET /v1/media/{id}`.
  - `object` 'media_upload', required: String representing the object's type. Objects of the same type share the same value.
  - `url` string, nullable, required: URL where the file can be downloaded. Permanent for files served from the assets domain; a signed URL for legacy files. Always set on the upload response; may be `null` on retrieval if the underlying blob has been deleted.
  - `urlExpiresAt` string, nullable, required: Time at which the signed `url` expires (ISO 8601 datetime), or `null` when the `url` is permanent and never expires.
  - `mimeType` string, required: MIME type of the uploaded file.
  - `sizeBytes` number, required: Size of the uploaded file, in bytes.
  - `purpose` 'board_logo' | 'board_hero' | 'account_avatar' | 'company_logo' | 'blog_image', required: Resource type the file was uploaded for.
  - `uploadedAt` string, required: Time at which the file was uploaded. ISO 8601 datetime.
  - `referencedBy` object[], required: Resources currently known to reference this file.
    - `resourceType` string, required: Type of the resource referencing this file.
    - `resourceId` string, required: Identifier of the resource referencing this file.

## Other responses

- `404`: Media file not found.

## Changes

- **2026-10-19** `c34152c38176`: 1 info
  - added the optional property `error/upgrade` to the response with the `404` status

[Operation history](https://skmtc.dev/cavuno/apis/cavuno-v1-rest-api/changes/media/:id/get.md)

---

[API](https://skmtc.dev/cavuno/apis/cavuno-v1-rest-api.md) · [All operations](https://skmtc.dev/cavuno/apis/cavuno-v1-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cavuno/apis/cavuno-v1-rest-api/revisions/d5974dabff14?raw)
