Draft a WhatsApp message
send_messageDrafts WhatsApp messages, media, polls, locations, or forwards and returns a draft ID and preview to confirm before sending.
Instructions
Drafts text, media, polls, locations, forwards; sends nothing. Call it as soon as you have recipient and text: it returns draft_id and preview (recipient, number, exact text). Show that preview; confirm_send only on a yes to this text and recipient — a send in the same request is that yes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as | No | Media: a plain document, a voice note, a looping GIF | |
| url | No | Media: public http(s) URL | |
| text | Yes | The message, or the caption, poll question or place name; "" for a forward, a voice note or audio | |
| address | No | Location: shown under the name | |
| chat_id | Yes | Chat id, or a phone number | |
| forward | No | Forward this message; text "" | |
| options | No | Poll answers | |
| send_at | No | Send later: "2026-10-12T09:00" in time_zone, or with an offset; 1 minute to 365 days ahead | |
| latitude | No | ||
| reply_to | No | ||
| file_path | No | Media: absolute path on the machine running wazap | |
| longitude | No | ||
| time_zone | No | IANA zone for send_at, e.g. "Europe/Bucharest"; the server's by default | |
| account_id | No | ||
| mention_ids | No | Chat ids to @-mention; write @<number> in text for each | |
| multi_select | No | Poll: several answers allowed |