Messages
Send Media Message
Send media files (images, videos, documents, audio) to WhatsApp contacts.
Supported Media Types:
- Images: JPEG, PNG, WebP (max 5MB)
- Videos: MP4, 3GPP (max 16MB)
- Documents: PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX (max 100MB)
- Audio: AAC, M4A, AMR, MP3, OGG (max 16MB)
Features:
- Direct URL media sending
- Optional captions for images and videos
- Custom file naming
- Automatic media processing and optimization
Use Cases:
- Product catalogs and showcases
- Document sharing (invoices, contracts, brochures)
- Video demonstrations and tutorials
- Audio messages and voice notes
POST
Authorizations
Bearer token authentication. Include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Body
application/json
Response
200
application/json
Media message sent successfully
The response is of type object
.
Previous
Send Template MessageSend WhatsApp approved template messages with dynamic parameters.
**Template Requirements:**
- Templates must be pre-approved by WhatsApp Business
- Templates support dynamic variables and components
- Multiple language versions supported
- Used for notifications, alerts, and business communications
**Template Components:**
- **Header**: Text, media, or document headers
- **Body**: Main message content with variables
- **Footer**: Optional footer text
- **Buttons**: Call-to-action or quick reply buttons
**Use Cases:**
- Order confirmations and shipping notifications
- Appointment reminders and confirmations
- Payment receipts and billing notifications
- Welcome messages and onboarding flows
- Emergency alerts and important announcements
Next