# Get media MIME type, size, hash and temporary URL

Canonical: https://docs.bluehola.com/docs/templates-flows-media/get-v1-media-id
OpenAPI: https://docs.bluehola.com/openapi.yaml

<div class="endpoint"><span class="endpoint-method endpoint-method--get">GET</span><code class="endpoint-path">/v1/media/{id}</code></div>

Read the media's MIME type, size, hash and a temporary URL.

:::note[Authentication]

Send `Authorization: Bearer <API_KEY>` in the request headers. Which resources an API Key can reach is determined by its current authorization scope.

:::

## Request

Base URL: `https://api.bluehola.com`

### Parameters

| Name | In | Required | Type / constraints | Description |
| --- | --- | --- | --- | --- |
| `id` | path | Yes | string | The Meta media id |

## Response

| Status | Description |
| --- | --- |
| `200` | OK |
| `4xx` | Client error |

For the common error envelope and how to handle it, see [Error Codes](../guides/error-codes.md).

## Notes

Two kinds of media id can be looked up: media this account uploaded with `POST /v1/media`, and media in inbound messages users sent to this account's phone numbers (the `id` of an image, sticker, video, audio or document). Any other id returns 404, even if it genuinely exists on Meta's side. Customer Keys can call this endpoint; ownership is checked against the media's phone number (the uploading number, or the number that received the message), and a Key restricted to specific phone numbers is checked the same way. The download URL returned is a temporary link generated by Meta that **expires after 5 minutes**; once it expires, call this endpoint again for a new one rather than caching it long-term.
