Integrations
Status
Instances
Settings
Webhooks
Send Messages
Chat Management
Label Management
Profile Settings
Group Management
- POSTCreate Group
- PUTUpdate Group Picture
- PUTUpdate Group Subject
- PUTUpdate Group Description
- GETFetch Invite Code
- GETAccept Invite Code
- PUTRevoke Invite Code
- POSTSend Invite URL
- GETFind Group By Invite Code
- GETFind Group By JID
- GETFetch All Groups
- GETFind Participants
- PUTUpdate Group Participants
- PUTUpdate Group Settings
- PUTToggle Ephemeral Mode
- DELLeave Group
Send Media
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"
}
Authorizations
Seu cabeçalho da chave de autorização.
Path Parameters
ID da instância.
Body
Número para receber a mensagem (com código do país)
Tipo de mídia
image
, video
, document
, audio
Nome do arquivo (apenas para o tipo de mídia documento
)
Legenda para enviar com a mídia (exceto com o tipo de mídia áudio
)
Mídia Url ou em arquivo base64
Response
O conteúdo da mensagem, que pode incluir vários tipos de mensagens como texto, imagens, etc.
Details of the image message.
O URL da mensagem.
The MIME type of the image.
O texto da legenda da imagem.
The SHA-256 hash of the image file.
The length of the image file.
The height of the image.
The width of the image.
The media key of the image.
The SHA-256 hash of the encrypted image file.
The direct path to the image.
The timestamp of the media key.
The JPEG thumbnail of the image.
Additional context information.
O timestamp da mensagem, representado como uma string.
O status da mensagem, como enviado, recebido ou pendente.
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"
}