---
title: "Get a message's file"
method: GET
path: "/api/v1/conversations/{id}/messages/{messageId}/media"
tags: ["conversations"]
---

# Get a message's file

`GET /api/v1/conversations/{id}/messages/{messageId}/media`

## Request

- Base URL: `https://app.blueticked.com`
- URL: `https://app.blueticked.com/api/v1/conversations/{id}/messages/{messageId}/media`
- Auth: HTTP bearer

A short-lived signed URL for one message's photo, video, audio, sticker or document, with its type, MIME type and filename.

The URL works for five minutes (until `expires_at`) and is minted for each call: download the file straight away, and call again when you need it later. Files are private; a URL is never reused.

Take the path from a message's `media_download_path` in the messages list. A message with no file, or one in a conversation your key cannot see, answers 404 not_found.

While the file is still being fetched from the channel (`media_status` pending) the answer is 409 conflict with `details.reason` media_pending: retry in a few seconds. When the fetch failed for good (`media_status` failed) it is 404 not_found with `details.reason` media_unavailable.

## Path parameters

- `id` string, required

## Response `200`

Success

- object
  - `data` object, required
    - `url` string, required
    - `expires_at` string, date-time, required
    - `media_type` string, nullable, required
    - `media_mime` string, nullable, required
    - `media_filename` string, nullable, required
  - `request_id` string, required

## Other responses

- `400`: Validation failed
- `401`: Unauthorized: missing or invalid API key
- `402`: Insufficient wallet balance
- `403`: Forbidden: scope, plan limit, or suspension
- `404`: Not found
- `409`: Conflict (idempotency-key reuse or resource in use)
- `422`: Understood but refused: the request is well-formed, the action is not permitted for this resource
- `429`: Rate limited
- `500`: Internal error
- `502`: An upstream provider refused or failed the request
- `503`: Channel or send queue unavailable

---

[API](https://skmtc.dev/blueticked/apis/blueticked-api.md) · [All operations](https://skmtc.dev/blueticked/apis/blueticked-api/llms.txt) · [OpenAPI document](https://skmtc.dev/blueticked/apis/blueticked-api/revisions/07132284f4ff?raw)
