Optional
bodyOptional
attachments?: Optional
auto?: booleanThe communication channel of the message: email, SMS, chat, facebook, twitter-dm, twitter-tweet, voice, instagram, whatsapp
Optional
conversation?: stringThe conversation ID of the conversation message is to be added to.
Optional
createdAt?: stringOptional
createdBy?: stringOptional
custom?: { [key: string]: never }Optional
customer?: stringThe customer's name
Indicates if the message is coming in from a customer or sent out by an agent.
Optional
error?: {Optional
errorAt?: stringThe timestamp for when the message errored out.
Optional
externalId?: stringThe unique identifier from the channel the message. For example, a message ID from Instagram for a specific DM.
Optional
id?: stringOptional
importedAt?: stringOptional
kbArticles?: string[]Optional
lang?: string | nullThe language the message is in.
Optional
location?: {Optional
meta?: { [key: string]: unknown }Optional
modifiedAt?: stringOptional
modifiedBy?: stringOptional
preview?: stringOptional
queue?: unknown & { external?: "amazon-connect"; id?: string }Optional
reference?: { message: string; type: "reply" | "replyAll" | "forward" }For email channel only. The unique message ID for an email that is a reply, reply-all, or forward.
Indicate if the message is a reply, reply-all, or forward.
Optional
related?: stringOptional
sentAt?: stringThe timestamp for when the message was sent.
Optional
sentiment?: { confidence: number; polarity: -1 | 0 | 1 }Optional
shortcuts?: string[]Optional
size?: numberOptional
source?: "bulk" | "satisfaction"Indicate if the message is part of a bulk message (bulk) or CSAT (Customer Satisfaction Survey) (satisfaction) message.
Optional
status?: "sent" | "received" | "error"Optional
subject?: stringOptional
pathOptional
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.