Send a transactional email or SMS
vision6_send_transactionalWRITE: SENDS REAL EMAIL OR SMS to the recipients immediately (asynchronously) and USES ACCOUNT SENDING CREDITS. It cannot be recalled. Up to 100 recipients per call, each identified by exactly one of contact_id, email or mobile, plus optional personalisation values (wildcards %%key%% in the body). Either send a saved message (message_id) or custom content (subject/body_html/body_text, and for SMS body_text + from_address). Unsubscribed addresses are skipped. Email always needs list_id. Results appear in the transactional group (vision6_get_transactional_group). The account owner's email must be confirmed in Vision6 first. Pass confirm_send=true only after the user approved these recipients and this content. POST /transactional-sends.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | ||
| list_id | No | List the recipients belong to (required for email; optional for SMS). | |
| subject | No | Custom email subject (without message_id). | |
| group_id | No | ||
| reply_to | No | ||
| body_html | No | Custom HTML body (email, without message_id). | |
| body_text | No | Custom plain-text body (email or SMS, without message_id). | |
| from_name | No | ||
| group_name | No | Name of the transactional group that collects the results (created if new). One of group_name or group_id is required. | |
| message_id | No | A saved message to send. Do not combine with custom content. | |
| recipients | Yes | ||
| confirm_send | Yes | Must be true: you confirm the user approved sending this email/SMS now (it cannot be recalled and uses credits). | |
| from_address | No | Verified sender email address, or the sender mobile number for SMS. | |
| unsubscribe_type | No | SMS with custom content only: how recipients can opt out. |