Skip to main content
POST
Enviar Mídia

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