Send message
trumpia_send_messageWRITE, SENDS REAL MESSAGES that spend credits and cannot be recalled once sent: send an SMS and/or an email to distribution lists or specific subscriptions, now or scheduled (a scheduled one can be cancelled with trumpia_cancel_scheduled_message). Subscribers must have opted in (TCPA, CAN-SPAM, CTIA). Confirm the recipients and text with the user first. Mail merge tokens: [$FirstName], [$LastName], [$FullName], [$CustomData-NAME]. Returns request_id and message_id. PUT /message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sms | No | SMS text (140 bytes per segment in US/Canada, up to 980 bytes concatenated). | |
| send_date | No | Schedule time as YYYY-MM-DD hh:mm:ss (24-hour clock; the account's time zone). Omit to send immediately. | |
| email_body | No | Email body (needs email_subject). | |
| description | Yes | Internal description of the message. | |
| org_name_id | No | Organization name id to include in the mobile message (default organization name if omitted). | |
| email_subject | No | Email subject (needs email_body). | |
| recipient_ids | Yes | 1-300 ids (at most 100 lists or 300 subscriptions). | |
| email_reply_to | No | Reply-to address (a registered sender). | |
| recipient_type | Yes | Whether recipient_ids are distribution list ids or subscription ids. | |
| mail_merge_full_name | No | Replacement when a contact has no full name. | |
| mail_merge_last_name | No | Replacement when a contact has no last name. | |
| mail_merge_first_name | No | Replacement when a contact has no first name. |