Send a message
send_messageQueue WhatsApp text, media or documents to send at a human pace with built-in gaps and daily limits, and get back when it will go out and why it isn't sooner.
Instructions
Queue a message on a connected channel: text, or a photo, video, GIF, voice note or document (pass media; text is then its caption). Parley sends at a human pace to keep the account safe: with gaps between sends, breaks after bursts, and a daily limit; if the person turned on active hours for the number, only inside its local active hours. The reply says when it will go out (scheduled_for) and why it isn't sooner (waits). Replies in existing conversations go ahead of conversation openers that hit their limit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient on the channel: a chat_id from list_chats, or a phone number for WhatsApp. | |
| kind | No | What the send costs the account. Defaults to "message" in an existing conversation and "first_message" to someone new. | |
| text | No | The message, or the caption when sending media. | |
| media | No | A file to send: photos up to 16 MB; videos, audio and documents up to 100 MB from a url (16 MB as data). Give exactly one of url or data. | |
| typing | No | Show "typing…" in the chat first ("recording…" before a voice note), for about as long as a person would take: ~24s per 100 characters (50 words a minute), at most a minute, then send. On by default (the number's setting in Parley); pass false when it should just go. On a number whose typing the account holder turned off, it never shows. | |
| not_before | No | Don't send before this ISO time. | |
| connection_id | No | Which of your accounts: a connection id from list_connections, or the account's number. Optional when only one account fits. Left out, it's the account that has the `to` chat. | |
| idempotency_key | No | Retrying with the same key returns the original message instead of sending twice. |