v1
latestOpenAPI 3.1.02026-07-14330101.9 KB๐ Send File
The Send File Message API endpoint allows you to send files with an optional caption to a WhatsApp account via the API. This endpoint supports various file types, making it easy to share documents, images, and other media with your users.
post/send-message/file
Request body
Response
200
Example response
{
"success": true,
"message": "OK",
"data": {
"id": "3EB053170B6CA6BE259ED0",
"status": "PENDING",
"message": {
"caption": "Checkout this image, its hilarious!",
"file": "https://mmg.whatsapp.net/v/t62.7119-24/34592298_458863353821698_4364078351026116344_n.enc?ccb=11-4&oh=01_Q5AaIHH6myGHwFZ9M479n63IZRaeL8D6TyK5ExkPFm_dNFC6&oe=670524AA&_nc_sid=5e03e0&mms3=true",
"details": {
"mimetype": "application/pdf",
"mediaKey": "fL0LHk3jzJREI9Z5tbQrRXmMoeBamlRBvHDgvkWyX/0=",
"fileSha256": "wx5C0TWkHFppzJ7I/b7FCwQMbB2u0tIrm12Ms9cXD6Q=",
"timestamp": "1725806771"
}
},
"timestamp": "1725806771"
}
}