---
title: "Retrieve Media URL"
method: GET
path: "/{Version}/{Media-ID}"
tags: ["Media"]
---

# Retrieve Media URL

`GET /{Version}/{Media-ID}`

## Request

- Base URL: `https://graph.facebook.com`
- URL: `https://graph.facebook.com/{Version}/{Media-ID}`
- Auth: HTTP bearer

To retrieve your media’s URL, make a **GET** call to **`/{{Media-ID}}`**. Use the returned URL to download the media file. Note that clicking this URL (i.e. performing a generic GET) will not return the media; you must include an access token. For more information, see [Download Media](https://developers.facebook.com/docs/business-messaging/whatsapp/business-phone-numbers/media#download-media).

You can also use the optional query **`?phone_number_id`** for **`Retrieve Media URL`** and **`Delete Media`**. This parameter checks to make sure the media belongs to the phone number before retrieval or deletion.

#### Response

A successful response includes an object with a media URL. The URL is only valid for 5 minutes. To use this URL, see [Download Media](https://developers.facebook.com/docs/business-messaging/whatsapp/business-phone-numbers/media#download-media).

## Query parameters

- `phone_number_id` string

## Headers

- `User-Agent` string
- `Authorization` string, required

## Response `200`

Retrieve Media URL

- object
  - `file_size` string
  - `id` string
  - `messaging_product` string
  - `mime_type` string
  - `sha256` string
  - `url` string

---

[API](https://skmtc.dev/meta/apis/whatsapp-business-messaging.md) - [All operations](https://skmtc.dev/meta/apis/whatsapp-business-messaging/llms.txt) - [OpenAPI document](https://skmtc.dev/meta/apis/whatsapp-business-messaging/revisions/5c1973265369?raw)
