Media

Endpoints for managing media files

Get Media Attachments

get

Retrieve media attachments from WhatsApp Business attachments service.

Authorizations
D360-API-KEYstringRequired

API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.

Responses
chevron-right
200

Media attachments retrieved successfully

application/json
objectOptional
get
/whatsapp_business/attachments/

Get Media by ID

get

Retrieve media URL and metadata by media ID. URL is valid for 5 minutes. Includes security validation.

Authorizations
D360-API-KEYstringRequired

API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.

Path parameters
media_idstringRequired

Media ID (must be numeric)

Responses
chevron-right
200

Media URL and metadata retrieved successfully

application/json

Response payload containing the media download URL and metadata

file_sizeintegerOptionalExample: 12345
idstringOptionalExample: 1037543291543636
messaging_productstringOptionalExample: whatsapp
mime_typestringOptionalExample: image/jpeg
sha256stringOptionalExample: a1b2c3d4e5f6...
urlstringOptionalExample: https://lookaside.fbsbx.com/whatsapp_business/attachments/?mid=1037543291543636&ext=...
get
/{media_id}

Delete Media by ID

delete

Delete media content by media ID from Meta's storage.

Authorizations
D360-API-KEYstringRequired

API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.

Path parameters
media_idstringRequired

Media ID to delete (must be numeric)

Responses
chevron-right
200

Media deleted successfully

application/json

Response payload for successful media deletion

successbooleanOptionalExample: true
delete
/{media_id}

Last updated

Was this helpful?