send_message
Send SMS or iMessage from an agent's phone number, attach media, thread replies, add effects, or react to existing messages.
Instructions
Send an SMS or iMessage from one of your agent's phone numbers, or react to a message.
The agent must have at least one phone number attached. If the agent has multiple numbers, number_id or from_number selects which one to send from. iMessage extras (silently ignored on SMS): reply_to_message_id threads the reply under an earlier message, and send_style adds an expressive screen/bubble effect. To react to a message instead of sending one, set reaction and react_to_message_id (iMessage only); to_number and body are not needed in that case.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | The message text to send (may be empty when sending media only) | |
| agent_id | No | The agent ID to send from (the agent must have a phone number attached). Optional if you pass from_number or number_id instead. | |
| reaction | No | iMessage only. Tapback or single emoji applied to react_to_message_id: one of love, like, dislike, laugh, emphasize, question, or a single emoji (e.g. '🔥'). When set, this reacts instead of sending a message. | |
| media_url | No | URL of a single image/media file to attach | |
| number_id | No | Specific phone number ID to send from (if agent has multiple numbers) | |
| to_number | No | Recipient: a phone number in E.164 format (e.g. +14155551234), a US short code, or a group ID (grp_...) to post into an iMessage group chat. Required when sending a message (not needed for a reaction). | |
| media_urls | No | Multiple media URLs to attach (delivered as an image carousel on iMessage) | |
| send_style | No | iMessage only. Expressive screen/bubble effect to send with the message | |
| from_number | No | Exact number to send from in E.164 format (alternative to number_id) | |
| react_to_message_id | No | iMessage only. ID of a message to react to. Set together with `reaction`. | |
| reply_to_message_id | No | iMessage only. ID of an earlier message to reply to inline (threaded reply) |