Send a text message
send_textSend a text message from a linked number to a contact, group or channel. The message is queued and sent at the account's pace; the result has its id and queued status. Send only to people who expect it.
Instructions
Send a text message from a linked number to a contact, group or channel. The message is queued and sent at the account's pace; the result has its id and queued status. Send only to people who expect it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient: a phone number in E.164 with + (`+584241112233`), `lid:<digits>`, the `@username` of a contact the account already chats with, a group id (`...@g.us`), or a channel id (`...@newsletter`) the account administers. | |
| text | Yes | The message, up to 4096 characters. WhatsApp formatting works: *bold*, _italic_. | |
| mentions | No | Contact ids to @mention (E.164 or `lid:<digits>`). | |
| accountId | Yes | The wuapi account id of the linked number to act as (from list_accounts). | |
| idempotencyKey | No | Optional. Reuse the same key when retrying this exact call: within 24 hours wuapi returns the first result instead of doing it twice. | |
| replyToMessageId | No | A wuapi message id in the same chat to quote (reply to). One exception, a private reply: a message someone else wrote in a group can be quoted in the direct chat with its author (`to` is that message's `from`). |