Media
Endpoints for managing media files
Retrieve media attachments from WhatsApp Business attachments service.
API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.
Media attachments retrieved successfully
Unauthorized
Internal server error
GET /whatsapp_business/attachments/ HTTP/1.1
Host: waba-v2.360dialog.io
D360-API-KEY: YOUR_API_KEY
Accept: */*
{}Retrieve media URL and metadata by media ID. URL is valid for 5 minutes. Includes security validation.
API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.
Media ID (must be numeric)
Media URL and metadata retrieved successfully
Response payload containing the media download URL and metadata
123451037543291543636whatsappimage/jpega1b2c3d4e5f6...https://lookaside.fbsbx.com/whatsapp_business/attachments/?mid=1037543291543636&ext=...Bad request - invalid media ID format
Unauthorized
Forbidden - missing permissions
Too many requests - endpoint disabled
Internal server error
GET /{media_id} HTTP/1.1
Host: waba-v2.360dialog.io
D360-API-KEY: YOUR_API_KEY
Accept: */*
{
"file_size": 12345,
"id": "1037543291543636",
"messaging_product": "whatsapp",
"mime_type": "image/jpeg",
"sha256": "a1b2c3d4e5f6...",
"url": "https://lookaside.fbsbx.com/whatsapp_business/attachments/?mid=1037543291543636&ext=..."
}Delete media content by media ID from Meta's storage.
API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.
Media ID to delete (must be numeric)
Media deleted successfully
Response payload for successful media deletion
trueBad request
Unauthorized
Too many requests - endpoint disabled
Internal server error
DELETE /{media_id} HTTP/1.1
Host: waba-v2.360dialog.io
D360-API-KEY: YOUR_API_KEY
Accept: */*
{
"success": true
}Last updated
Was this helpful?