Skip to main content
POST
/
messages
/
media
Enviar Mídia
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"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
instanceId
string<uuid>
required
to
string
required
Example:

"5511999999999"

mediaUrl
string<uri>
required
Example:

"https://example.com/image.jpg"

mediaType
enum<string>
required
Available options:
image,
video,
document
caption
string
Example:

"Confira esta imagem!"

fileName
string
Example:

"documento.pdf"

Response

201 - application/json

Mídia enviada

id
string
instanceId
string
remoteJid
string
fromMe
boolean
type
enum<string>
Available options:
text,
image,
video,
audio,
document,
sticker,
location,
contact,
poll,
reaction,
buttons,
list
content
object
timestamp
integer
status
enum<string>
Available options:
pending,
sent,
delivered,
read,
failed