Send Message
Send Media
Início
Instances
Settings
Send Message
Chat Controller
Profile Settings
Group Controller
- POSTCreate Group
- POSTUpdate Group Picture
- POSTUpdate Group Subject
- POSTUpdate Group Description
- GETFetch Invite Code
- POSTRevoke Invite Code
- POSTSend Group Invite
- GETFind Group by Invite Code
- GETFind Group by JID
- GETFetch All Groups
- GETFind Group Members
- POSTUpdate Group Members
- POSTUpdate Group Setting
- POSTToggle Ephemeral
- DELLeave Group
Typebot
OpenAI
Evolution Bot
Dify
Flowise
Chatwoot
Websocket
RabbitMQ
Send Message
Send Media
POST
/
message
/
sendMedia
/
{instance}
curl --request POST \
--url https://{server-url}/message/sendMedia/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"number": "<string>",
"mediatype": "image",
"mimetype": "image/png",
"caption": "<string>",
"media": "<string>",
"fileName": "evolution-api.pdf",
"delay": 123,
"quoted": {
"key": {
"remoteJid": "<string>",
"fromMe": true,
"id": "<string>",
"participant": "<string>"
},
"message": {
"conversation": "<string>"
}
},
"mentionsEveryOne": true,
"mentioned": [
"<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"
}
Authorizations
Your authorization key header
Path Parameters
ID of the instance to connect
Body
application/json
Response
201 - application/json
Created
The response is of type object
.
curl --request POST \
--url https://{server-url}/message/sendMedia/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"number": "<string>",
"mediatype": "image",
"mimetype": "image/png",
"caption": "<string>",
"media": "<string>",
"fileName": "evolution-api.pdf",
"delay": 123,
"quoted": {
"key": {
"remoteJid": "<string>",
"fromMe": true,
"id": "<string>",
"participant": "<string>"
},
"message": {
"conversation": "<string>"
}
},
"mentionsEveryOne": true,
"mentioned": [
"<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"
}