API Reference

Send a text message to a chat

Send a text message to a chat. The chatId format varies depending on the chat type:

Log in to see full request history
Path Params
int64
required

Instance ID

Body Params
string
required

Chat ID <countrycode_short>@c.us or @g.us for groups

string
required

Text message to send. Can include @123456789 for group chats.

mentions
array of strings

Optional array of contact IDs to mention. Only works in group chats. Make sure to include @123456789 in the message text.

mentions
string

Optional message ID to reply to. Format: {fromMe}{chatId}{messageId}

boolean
Defaults to true
Response

Response body
object
string

success error

string
data
object
_data
object
Language
Credentials