OptionalbodyOptionalapp?: "gmail" | "postmark"Optionalauto?: booleanOptionalbcc?: { email: string; name?: string }[]Optionalbody?: stringOptionalcc?: { email: string; name?: string }[]The communication channel for the message.
Optionalconversation?: stringOptionalcustomer?: stringOptionalfrom?: { email: string; name?: string }Optionalheaders?: { name: string; value?: string }[]OptionalkbArticles?: string[]Optionallang?: string | nullThe language the message is in.
Optionalpayload?: { [key: string]: unknown }OptionalreplyTo?: stringOptionalsendAt?: string | nullA timestamp for a future date/time the drafted message to be sent at.
Optionalshortcuts?: string[]The ID string associated with a shortcut. Shortcuts are pre-defined blocks of text defined in Kustomer. See Get All Shortcuts endpoint view currently available shortcuts or create a shortcut with the Create Shortcut endpoint. to Learn more about shortcuts in the Use workspace shortcuts article.
Optionalsource?: "bulk" | "satisfaction"Optionalsubject?: stringOptionaltemplate?: string | nullOptionalto?: { email: string; name?: string }[] | { email: string; name?: string }Optionalapp?: "twilio" | "zipwhip"Optionalauto?: booleanOptionalbody?: stringOptionalconversation?: stringOptionalcustomer?: stringOptionalfrom?: stringOptionalkbArticles?: string[]Optionallang?: string | nullOptionalpayload?: { [key: string]: unknown }OptionalsendAt?: string | nullA timestamp for a future date/time the drafted message to be sent at.
Optionalshortcuts?: string[]Optionalsource?: "bulk" | "satisfaction"Optionalto?: stringOptionalauto?: booleanIf true, message was automatically generated from a Kustomer workflow or auto-response feature. If set to true, this message will be excluded from reporting metrics. If false, message was created by a manual method.
Optionalconversation?: stringOptionalcustomer?: stringOptionalfrom?: stringOptionalkbArticles?: string[]Optionallang?: string | nullOptionalpayload?: { [key: string]: unknown }OptionalsendAt?: string | nullOptionalshortcuts?: string[]Optionalsource?: "bulk" | "satisfaction" | "biz-rules"Optionalto?: stringRequired if the message doesn't have any attachments. If the message has an image or video attachment, this field is optional and will be used as the caption for the attached media. If the attachment is any other type, this field is ignored.
Optionalauto?: booleanIf true, message was automatically generated from a Kustomer workflow or auto-response feature. If set to true, this message will be excluded from reporting metrics. If false, message was created by a manual method.
Optionalconversation?: stringOptionalcustomer?: stringOptionalfrom?: stringOptionalkbArticles?: string[]Optionallang?: string | nullOptionalpayload?: { [key: string]: unknown }OptionalsendAt?: string | nullOptionalshortcuts?: string[]Optionalsource?: "bulk" | "satisfaction" | "biz-rules"Optionalto?: stringWhatsApp interactive messages are only officially supported for Kustomer native WhatsApp for now.
Optionalauto?: booleanIf true, message was automatically generated from a Kustomer workflow or auto-response feature. If set to true, this message will be excluded from reporting metrics. If false, message was created by a manual method.
Optionalconversation?: stringOptionalcustomer?: stringOptionalfrom?: stringOptionalkbArticles?: string[]Optionallang?: string | nullOptionalpayload?: { [key: string]: unknown }OptionalsendAt?: string | nullOptionalshortcuts?: string[]Optionalsource?: "bulk" | "satisfaction" | "biz-rules"Optionalto?: stringWhatsApp templates are only officially supported for Kustomer native WhatsApp for now.
Optionalcomponents?: {Optionalbody?: { [key: string]: { text?: string; type?: "text" } }Optionalbuttons?: {We currently only support parameterizing one button. The index and sub_type fields should be the same for all entries in this array, and the numbered parameters provided will only be applied to the button indexed by the index value provided.
Optionalheader?: Template IDs can be found at /v1/whatsapp/accounts/{accountId}/templates
Optionalattachments?: string[]Optionalauto?: booleanOptionalbody?: stringOptionalconversation?: stringOptionalcustomer?: stringOptionalfrom?: stringOptionalkbArticles?: string[]Optionallang?: string | nullOptionalpayload?: { [key: string]: unknown }OptionalsendAt?: string | nullA timestamp for a future date/time the drafted message to be sent at.
Optionalshortcuts?: string[]Optionalsource?: "bulk" | "satisfaction"Optionalto?: stringOptionalauto?: booleanOptionalbody?: stringOptionalconversation?: stringOptionalcustomer?: stringOptionalfrom?: stringOptionalkbArticles?: string[]Optionallang?: string | nullOptionalpayload?: { [key: string]: unknown }OptionalsendAt?: string | nullA timestamp for a future date/time the drafted message to be sent at.
Optionalshortcuts?: string[]Optionalsource?: "bulk" | "satisfaction"Optionalto?: stringOptionalauto?: booleanOptionalbody?: stringOptionalconversation?: stringOptionalcustomer?: stringOptionalfrom?: stringOptionalkbArticles?: string[]Optionallang?: string | nullOptionalpayload?: { [key: string]: unknown }OptionalsendAt?: stringA timestamp for a future date/time the drafted message to be sent at.
Optionalshortcuts?: string[]Optionalsource?: "bulk" | "satisfaction"Optionalto?: stringOptionalauto?: booleanOptionalbody?: stringOptionalconversation?: stringOptionalcustomer?: stringOptionalfrom?: stringOptionalkbArticles?: string[]Optionallang?: string | nullOptionalpayload?: { [key: string]: unknown }OptionalsendAt?: stringA timestamp for a future date/time the drafted message to be sent at.
Optionalshortcuts?: string[]Optionalsource?: "bulk" | "satisfaction"Optionalto?: stringOptionalbody?: stringOptionalconversation?: stringOptionalcustomer?: stringOptionalkbArticles?: string[]Optionallang?: string | nullOptionalpayload?: { [key: string]: unknown }OptionalsendAt?: string | nullA timestamp for a future date/time the drafted message to be sent at.
Optionalshortcuts?: string[]Optionalsource?: "bulk"OptionaluserMentions?: { team?: string; user?: string }[]Optionalauto?: booleanOptionalbody?: stringOptionalconversation?: stringOptionalcustomer?: stringOptionalfrom?: stringOptionalkbArticles?: string[]Optionallang?: string | nullOptionalpayload?: { [key: string]: unknown }OptionalsendAt?: string | nullA timestamp for a future date/time the drafted message to be sent at.
Optionalshortcuts?: string[]Optionalsource?: "bulk" | "satisfaction"Optionalto?: stringUnique ID of the customer.
Optionalquery
If true, message was automatically generated from a Kustomer workflow or auto-response feature. If set to true, this message will be excluded from reporting metrics. If false, message was created by a manual method.