HomeUser GuidesAPI Reference
Get Started
HomeAPI Reference
Authentication
Branches
Contact Groups
Contacts
Conversations
Error HandlingInvoices
Messages
Orders
Rate LimitingSDKs & Code ExamplesTemplatesTicketsAPI VersioningWABA NumbersWebhooks
User GuideAPI ReferenceMessagesSend Media Message

Send Media Message

Send images, videos, files, and audio clips

Reading time: 1 minute

Send Media Message

Send images, videos, files, and audio clips.

POST{{base_url}}/w/message/media

Query Parameters

ParameterTypeRequiredDescription
phone_number_idstringYesPhone number ID of the sender

Method 1: Send via URL

ParameterTypeRequiredDescription
phonestringYesRecipient phone number
typestringYesMedia type: image, video, audio, document, sticker
linkstringYesMedia URL (must start with https://)
captionstringNoMedia description (not supported for audio and stickers)

Method 2: Upload File

Content-Type: multipart/form-data

ParameterTypeRequiredDescription
phonestringYesRecipient phone number
typestringYesMedia type: image, video, audio, document, sticker
filefileYesFile to upload
captionstringNoMedia description (not supported for audio and stickers)
file_namestringNoFile name (for documents)

Supported Media Types

ParameterTypeRequiredDescription
imagestringNoJPG, PNG, WEBP - max 5 MB
videostringNoMP4, 3GP - max 16 MB
audiostringNoMP3, OGG, AMR - max 16 MB
documentstringNoPDF, DOC, DOCX, XLS, XLSX, PPT, PPTX - max 100 MB
stickerstringNoWEBP (512x512) - max 100 KB

Media Tips:

  • Use high-quality images but optimized for size
  • Videos: prefer 720p or 1080p resolution
  • Documents: ensure they are readable on mobile

Example: Upload Image

Example: Upload Imagebash
curl -X POST "{{base_url}}/w/message/media?phone_number_id=123456" \
-H "Accept: application/json" \
-H "X-Awal-Signature-256: sha256=abc..." \
-H "X-Timestamp: 1704124800" \
-H "X-Domain: your-workspace" \
-H "X-Client-ID: your-client-id" \
-F "phone=96650000000" \
-F "type=image" \
-F "file=@/path/to/image.jpg" \
-F "caption=Our new product is now available!"

Related

← Back to Messages
View Guide
View