Skip to main content

Get media MIME type, size, hash and temporary URL

GET/v1/media/{id}

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

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​

NameInRequiredType / constraintsDescription
idpathYesstringThe Meta media id

Response​

StatusDescription
200OK
4xxClient error

For the common error envelope and how to handle it, see Error Codes.

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.