curl --request POST \
--url https://converso-whatsapp-api.p.rapidapi.com/message/sendMedia/{instance} \
--header 'Content-Type: application/json' \
--header 'instanceCode: <api-key>' \
--header 'x-rapidapi-key: <api-key>' \
--data '
{
"number": "<string>",
"mediatype": "<string>",
"mimetype": "<string>",
"caption": "<string>",
"media": "<string>",
"fileName": "<string>",
"delay": 123,
"linkPreview": true,
"mentionsEveryOne": true,
"mentioned": [
"{{remoteJID}}"
],
"quoted": {
"key": {
"id": "<string>"
},
"message": {
"conversation": "<string>"
}
}
}
'{
"key": {
"remoteJid": "553198296801@s.whatsapp.net",
"fromMe": true,
"id": "BAE5F5A632EAE722"
},
"message": {
"imageMessage": {
"url": "https://mmg.whatsapp.net/o1/v/t62.7118-2...",
"mimetype": "image/png",
"caption": "Caption text",
"fileSha256": "VbCGkGBv5SZStLD5PHdkBWpQav/lNsXcY...",
"fileLength": "1305757",
"height": 1080,
"width": 1920,
"mediaKey": "aFQK9Ocw5tE7Nf0iBA42Xcb4Dee6G1k/pLL...",
"fileEncSha256": "bGVtYeR3458RwC0p1tsGDNuj+vOu/...",
"directPath": "/o1/v/t62.7118-24/f1/m232/up-oil...",
"mediaKeyTimestamp": "1717775573",
"jpegThumbnail": "/9j/2wBDABALDA4MChAODQ4SERATG...",
"contextInfo": {}
}
},
"messageTimestamp": "1717775575",
"status": "PENDING"
}Send media message
curl --request POST \
--url https://converso-whatsapp-api.p.rapidapi.com/message/sendMedia/{instance} \
--header 'Content-Type: application/json' \
--header 'instanceCode: <api-key>' \
--header 'x-rapidapi-key: <api-key>' \
--data '
{
"number": "<string>",
"mediatype": "<string>",
"mimetype": "<string>",
"caption": "<string>",
"media": "<string>",
"fileName": "<string>",
"delay": 123,
"linkPreview": true,
"mentionsEveryOne": true,
"mentioned": [
"{{remoteJID}}"
],
"quoted": {
"key": {
"id": "<string>"
},
"message": {
"conversation": "<string>"
}
}
}
'{
"key": {
"remoteJid": "553198296801@s.whatsapp.net",
"fromMe": true,
"id": "BAE5F5A632EAE722"
},
"message": {
"imageMessage": {
"url": "https://mmg.whatsapp.net/o1/v/t62.7118-2...",
"mimetype": "image/png",
"caption": "Caption text",
"fileSha256": "VbCGkGBv5SZStLD5PHdkBWpQav/lNsXcY...",
"fileLength": "1305757",
"height": 1080,
"width": 1920,
"mediaKey": "aFQK9Ocw5tE7Nf0iBA42Xcb4Dee6G1k/pLL...",
"fileEncSha256": "bGVtYeR3458RwC0p1tsGDNuj+vOu/...",
"directPath": "/o1/v/t62.7118-24/f1/m232/up-oil...",
"mediaKeyTimestamp": "1717775573",
"jpegThumbnail": "/9j/2wBDABALDA4MChAODQ4SERATG...",
"contextInfo": {}
}
},
"messageTimestamp": "1717775575",
"status": "PENDING"
}Your authorization key header
Your rapid api key
Name instance
Number to receive the message (with country code)
Image, video or document
image/png
Teste de caption
Url or base64
Image.png
Presence time in milliseconds before sending message
Shows a preview of the target website if there's a link within the message
Mentioned everyone when the message send
Numbers to mention
{{remoteJID}} Show child attributes
Created
The key of the message, which identifies the message in the chat.
Show child attributes
The message content, which may include various types of messages like text, images, etc.
Show child attributes
The timestamp of the message, represented as a string.
The status of the message, such as sent, received, or pending.