Get media MIME type, size, hash and temporary URL
/v1/media/{id}Read the media's MIME type, size, hash and a temporary URL.
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.
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.