OptionalbodyOptionalattachments?: Optionalauto?: booleanThe communication channel of the message: email, SMS, chat, facebook, twitter-dm, twitter-tweet, voice, instagram, whatsapp
Optionalconversation?: stringThe conversation ID of the conversation message is to be added to.
OptionalcreatedAt?: stringOptionalcreatedBy?: stringOptionalcustom?: { [key: string]: never }Optionalcustomer?: stringThe customer's name
Indicates if the message is coming in from a customer or sent out by an agent.
Optionalerror?: {OptionalerrorAt?: stringThe timestamp for when the message errored out.
OptionalexternalId?: stringThe unique identifier from the channel the message. For example, a message ID from Instagram for a specific DM.
Optionalid?: stringOptionalimportedAt?: stringOptionalkbArticles?: string[]Optionallang?: string | nullThe language the message is in.
Optionallocation?: {Optionalmeta?: { [key: string]: unknown }OptionalmodifiedAt?: stringOptionalmodifiedBy?: stringOptionalpreview?: stringOptionalqueue?: unknown & { external?: "amazon-connect"; id?: string }Optionalreference?: { 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.
Optionalrelated?: stringOptionalsentAt?: stringThe timestamp for when the message was sent.
Optionalsentiment?: { confidence: number; polarity: -1 | 0 | 1 }Optionalshortcuts?: string[]Optionalsize?: numberOptionalsource?: "bulk" | "satisfaction"Indicate if the message is part of a bulk message (bulk) or CSAT (Customer Satisfaction Survey) (satisfaction) message.
Optionalstatus?: "sent" | "received" | "error"Optionalsubject?: stringOptionalpathOptionalquery
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.