Optional
bodyOptional
app?: "gmail" | "postmark"Optional
auto?: booleanOptional
bcc?: { email: string; name?: string }[]Optional
body?: stringOptional
cc?: { email: string; name?: string }[]The communication channel for the message.
Optional
conversation?: stringOptional
customer?: stringOptional
from?: { email: string; name?: string }Optional
headers?: { name: string; value?: string }[]Optional
kbArticles?: string[]Optional
lang?: string | nullThe language the message is in.
Optional
payload?: { [key: string]: unknown }Optional
replyTo?: stringOptional
sendAt?: string | nullA timestamp for a future date/time the drafted message to be sent at.
Optional
shortcuts?: 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.
Optional
source?: "bulk" | "satisfaction"Optional
subject?: stringOptional
template?: string | nullOptional
to?: { email: string; name?: string }[] | { email: string; name?: string }Optional
app?: "twilio" | "zipwhip"Optional
auto?: booleanOptional
body?: stringOptional
conversation?: stringOptional
customer?: stringOptional
from?: stringOptional
kbArticles?: string[]Optional
lang?: string | nullOptional
payload?: { [key: string]: unknown }Optional
sendAt?: string | nullA timestamp for a future date/time the drafted message to be sent at.
Optional
shortcuts?: string[]Optional
source?: "bulk" | "satisfaction"Optional
to?: stringOptional
auto?: 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.
Optional
conversation?: stringOptional
customer?: stringOptional
from?: stringOptional
kbArticles?: string[]Optional
lang?: string | nullOptional
payload?: { [key: string]: unknown }Optional
sendAt?: string | nullOptional
shortcuts?: string[]Optional
source?: "bulk" | "satisfaction" | "biz-rules"Optional
to?: 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.
Optional
auto?: 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.
Optional
conversation?: stringOptional
customer?: stringOptional
from?: stringOptional
kbArticles?: string[]Optional
lang?: string | nullOptional
payload?: { [key: string]: unknown }Optional
sendAt?: string | nullOptional
shortcuts?: string[]Optional
source?: "bulk" | "satisfaction" | "biz-rules"Optional
to?: stringWhatsApp interactive messages are only officially supported for Kustomer native WhatsApp for now.
Optional
auto?: 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.
Optional
conversation?: stringOptional
customer?: stringOptional
from?: stringOptional
kbArticles?: string[]Optional
lang?: string | nullOptional
payload?: { [key: string]: unknown }Optional
sendAt?: string | nullOptional
shortcuts?: string[]Optional
source?: "bulk" | "satisfaction" | "biz-rules"Optional
to?: stringWhatsApp templates are only officially supported for Kustomer native WhatsApp for now.
Optional
components?: {Optional
body?: { [key: string]: { text?: string; type?: "text" } }Optional
buttons?: {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.
Optional
header?: Template IDs can be found at /v1/whatsapp/accounts/{accountId}/templates
Optional
attachments?: string[]Optional
auto?: booleanOptional
body?: stringOptional
conversation?: stringOptional
customer?: stringOptional
from?: stringOptional
kbArticles?: string[]Optional
lang?: string | nullOptional
payload?: { [key: string]: unknown }Optional
sendAt?: string | nullA timestamp for a future date/time the drafted message to be sent at.
Optional
shortcuts?: string[]Optional
source?: "bulk" | "satisfaction"Optional
to?: stringOptional
auto?: booleanOptional
body?: stringOptional
conversation?: stringOptional
customer?: stringOptional
from?: stringOptional
kbArticles?: string[]Optional
lang?: string | nullOptional
payload?: { [key: string]: unknown }Optional
sendAt?: string | nullA timestamp for a future date/time the drafted message to be sent at.
Optional
shortcuts?: string[]Optional
source?: "bulk" | "satisfaction"Optional
to?: stringOptional
auto?: booleanOptional
body?: stringOptional
conversation?: stringOptional
customer?: stringOptional
from?: stringOptional
kbArticles?: string[]Optional
lang?: string | nullOptional
payload?: { [key: string]: unknown }Optional
sendAt?: stringA timestamp for a future date/time the drafted message to be sent at.
Optional
shortcuts?: string[]Optional
source?: "bulk" | "satisfaction"Optional
to?: stringOptional
auto?: booleanOptional
body?: stringOptional
conversation?: stringOptional
customer?: stringOptional
from?: stringOptional
kbArticles?: string[]Optional
lang?: string | nullOptional
payload?: { [key: string]: unknown }Optional
sendAt?: stringA timestamp for a future date/time the drafted message to be sent at.
Optional
shortcuts?: string[]Optional
source?: "bulk" | "satisfaction"Optional
to?: stringOptional
body?: stringOptional
conversation?: stringOptional
customer?: stringOptional
kbArticles?: string[]Optional
lang?: string | nullOptional
payload?: { [key: string]: unknown }Optional
sendAt?: string | nullA timestamp for a future date/time the drafted message to be sent at.
Optional
shortcuts?: string[]Optional
source?: "bulk"Optional
userMentions?: { team?: string; user?: string }[]Optional
auto?: booleanOptional
body?: stringOptional
conversation?: stringOptional
customer?: stringOptional
from?: stringOptional
kbArticles?: string[]Optional
lang?: string | nullOptional
payload?: { [key: string]: unknown }Optional
sendAt?: string | nullA timestamp for a future date/time the drafted message to be sent at.
Optional
shortcuts?: string[]Optional
source?: "bulk" | "satisfaction"Optional
to?: stringUnique ID of the customer.
Optional
query
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.