Retrieve Media URL
GET https://graph.facebook.com/{{Version}}/{{Media-ID}}?phone_number_id=<PHONE_NUMBER_ID>
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
.
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 .
Request Params
| Key | Datatype | Required | Description |
| phone_number_id
| string | | Specifies that this action only be performed if the media belongs to the provided phone number. |
HEADERS
| Key | Datatype | Required | Description |
RESPONSES
status: OK
{"messaging_product":"whatsapp","url":"\u003cURL\u003e","mime_type":"image/jpeg","sha256":"\u003cHASH\u003e","file_size":"303833","id":"2621233374848975"}