Send Meta-compatible image, video, audio, document, and sticker message payloads.
Meta-Compatible Media
Summary
Send Meta-compatible image, video, audio, document, and sticker message payloads.
Prerequisites
- A Whats91 account
- A generated public API token
Related documentation
For Meta-compatible media sends, set type to image, video, audio, document, or sticker and include the matching object. Media objects use link or id. Documents can also include filename and caption.
| Message type | Required object | Common fields |
|---|---|---|
| image | image | link or id, caption |
| video | video | link or id, caption |
| audio | audio | link or id |
| document | document | link or id, filename, caption |
| sticker | sticker | link or id |
curl - document
curl -X POST "https://graph.whats91.com/api/v2/messages" \
-H "Authorization: Bearer w91_live_xxx" \
-H "Content-Type: application/json" \
-d '{
"senderId": "919999999999",
"messaging_product": "whatsapp",
"to": "918888888888",
"type": "document",
"document": {
"link": "https://example.com/invoice.pdf",
"filename": "invoice.pdf",
"caption": "Invoice INV-1001"
}
}'Related Documentation
Messaging Meta-Compatibility
Understand the Meta-compatible JSON message sending endpoints exposed through Whats91.
Text
Send Meta-compatible text messages through the Whats91 public API.
Template
Send Meta-compatible template messages with language and components objects.
Interactive
Send Meta-compatible interactive button and list payloads.