Enviar mídia
curl --request POST \
--url https://api.wappfy.com.br/message/sendMedia/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"number": "559912345678",
"options": {
"delay": 1000,
"presence": "composing"
},
"mediaMessage": {
"mediatype": "image",
"caption": "Foto de exemplo",
"media": "https://mmg.whatsapp.net/o1/v/x41.7553-1..."
}
}'
{
"key": {
"remoteJid": "559912345678@s.whatsapp.net",
"fromMe": true,
"id": "CBC2CDBAFA5C9"
},
"message": {
"imageMessage": {
"url": "https://mmg.whatsapp.net/o1/v/x41.7553-1...",
"mimetype": "image/png",
"caption": "Texto de descrição",
"fileSha256": "dHWiYgS7890StE1p2uxHEWpw...",
"fileLength": "2345678",
"height": 1080,
"width": 1920,
"mediaKey": "cHRN0Qdx7wH9Pg3kDB53Yfe6EfF9J3l...",
"fileEncSha256": "dHWiYgS7890StE1p2uxHEWpw...",
"directPath": "/d3/v/t62.7118-24/g2/n343/up-oil...",
"mediaKeyTimestamp": "1717775573",
"jpegThumbnail": "/8e/3wCEBCBLDA5NChBPDQ5TERBTG...",
"contextInfo": {}
}
},
"messageTimestamp": "1717775575",
"status": "PENDING"
}
curl --request POST \
--url https://api.wappfy.com.br/message/sendMedia/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"number": "559912345678",
"options": {
"delay": 1000,
"presence": "composing"
},
"mediaMessage": {
"mediatype": "image",
"caption": "Foto de exemplo",
"media": "https://mmg.whatsapp.net/o1/v/x41.7553-1..."
}
}'
{
"key": {
"remoteJid": "559912345678@s.whatsapp.net",
"fromMe": true,
"id": "CBC2CDBAFA5C9"
},
"message": {
"imageMessage": {
"url": "https://mmg.whatsapp.net/o1/v/x41.7553-1...",
"mimetype": "image/png",
"caption": "Texto de descrição",
"fileSha256": "dHWiYgS7890StE1p2uxHEWpw...",
"fileLength": "2345678",
"height": 1080,
"width": 1920,
"mediaKey": "cHRN0Qdx7wH9Pg3kDB53Yfe6EfF9J3l...",
"fileEncSha256": "dHWiYgS7890StE1p2uxHEWpw...",
"directPath": "/d3/v/t62.7118-24/g2/n343/up-oil...",
"mediaKeyTimestamp": "1717775573",
"jpegThumbnail": "/8e/3wCEBCBLDA5NChBPDQ5TERBTG...",
"contextInfo": {}
}
},
"messageTimestamp": "1717775575",
"status": "PENDING"
}
Enviar mídia
curl --request POST \
--url https://api.wappfy.com.br/message/sendMedia/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"number": "559912345678",
"options": {
"delay": 1000,
"presence": "composing"
},
"mediaMessage": {
"mediatype": "image",
"caption": "Foto de exemplo",
"media": "https://mmg.whatsapp.net/o1/v/x41.7553-1..."
}
}'
{
"key": {
"remoteJid": "559912345678@s.whatsapp.net",
"fromMe": true,
"id": "CBC2CDBAFA5C9"
},
"message": {
"imageMessage": {
"url": "https://mmg.whatsapp.net/o1/v/x41.7553-1...",
"mimetype": "image/png",
"caption": "Texto de descrição",
"fileSha256": "dHWiYgS7890StE1p2uxHEWpw...",
"fileLength": "2345678",
"height": 1080,
"width": 1920,
"mediaKey": "cHRN0Qdx7wH9Pg3kDB53Yfe6EfF9J3l...",
"fileEncSha256": "dHWiYgS7890StE1p2uxHEWpw...",
"directPath": "/d3/v/t62.7118-24/g2/n343/up-oil...",
"mediaKeyTimestamp": "1717775573",
"jpegThumbnail": "/8e/3wCEBCBLDA5NChBPDQ5TERBTG...",
"contextInfo": {}
}
},
"messageTimestamp": "1717775575",
"status": "PENDING"
}
curl --request POST \
--url https://api.wappfy.com.br/message/sendMedia/{instance} \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{
"number": "559912345678",
"options": {
"delay": 1000,
"presence": "composing"
},
"mediaMessage": {
"mediatype": "image",
"caption": "Foto de exemplo",
"media": "https://mmg.whatsapp.net/o1/v/x41.7553-1..."
}
}'
{
"key": {
"remoteJid": "559912345678@s.whatsapp.net",
"fromMe": true,
"id": "CBC2CDBAFA5C9"
},
"message": {
"imageMessage": {
"url": "https://mmg.whatsapp.net/o1/v/x41.7553-1...",
"mimetype": "image/png",
"caption": "Texto de descrição",
"fileSha256": "dHWiYgS7890StE1p2uxHEWpw...",
"fileLength": "2345678",
"height": 1080,
"width": 1920,
"mediaKey": "cHRN0Qdx7wH9Pg3kDB53Yfe6EfF9J3l...",
"fileEncSha256": "dHWiYgS7890StE1p2uxHEWpw...",
"directPath": "/d3/v/t62.7118-24/g2/n343/up-oil...",
"mediaKeyTimestamp": "1717775573",
"jpegThumbnail": "/8e/3wCEBCBLDA5NChBPDQ5TERBTG...",
"contextInfo": {}
}
},
"messageTimestamp": "1717775575",
"status": "PENDING"
}