Create a message (draft)
vision6_create_messageWRITE: save a new email or SMS message in Vision6. This only stores the message; it is NOT sent (use the Vision6 app to send a campaign, or vision6_send_transactional for a one-off send). Email needs email_type, subject and matching body fields (plain: content_text; html: content_html; plain-html: both; raw_html: content_html or content_html_raw). SMS needs content_sms. The drag-and-drop builder is not supported. POST /messages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name of the message in Vision6. | |
| type | Yes | ||
| subject | No | Email subject line (required for email). Supports wildcards like %%first_name**there%%. | |
| reply_to | No | ||
| folder_id | No | Message folder id (see vision6_list_folders with type message). Omit to use the account's first message folder. | |
| from_name | No | ||
| email_type | No | Required for email. | |
| content_sms | No | SMS text (required for an sms message; keep it near 500 characters). | |
| is_template | No | Mark the message as reusable starter content. | |
| content_html | No | HTML body (email types html and plain-html; raw_html accepts it or content_html_raw). | |
| content_text | No | Plain-text body (email types plain and plain-html). | |
| from_address | No | Sender address. For email it must be a verified address/domain in the account. Omit to use the account's saved default (see vision6_get_message_sender_defaults). | |
| is_responsive | No | Responsive HTML flag (email). | |
| content_html_raw | No | Raw HTML document (email type raw_html). |