cURL
curl --request POST \ --url https://api.wapizap.com/api/v2/messages/media \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "instanceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "to": "5511999999999", "mediaUrl": "https://example.com/image.jpg", "mediaType": "image", "caption": "Confira esta imagem!", "fileName": "documento.pdf" } '
{ "id": "<string>", "instanceId": "<string>", "remoteJid": "<string>", "fromMe": true, "type": "text", "content": {}, "timestamp": 123, "status": "pending" }
Envia imagem, vídeo ou documento
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
"5511999999999"
"https://example.com/image.jpg"
image
video
document
"Confira esta imagem!"
"documento.pdf"
Mídia enviada
text
audio
sticker
location
contact
poll
reaction
buttons
list
pending
sent
delivered
read
failed