Send Message
Send Media
POST
https://{server-url}
/
message
/
sendMedia
/
{instance}
Authorizations
Your authorization key header
Path Parameters
ID of the instance to connect
Body
application/json
Number to receive the message (with country code)
Media type
Available options:
image
, video
, document
, audio
Media URL or file in base64
Media mimetype
Caption to send with media (except with media type audio
)
Name of the file (for media type document
only)
Presence time in milliseconds before sending message
Mention everyone on a group message
Response
201 - application/json
The key of the message, which identifies the message in the chat.
The message content, which may include various types of messages like text, images, etc.
The timestamp of the message, represented as a string.
The status of the message, such as sent, received, or pending.