Skip to main content

Message

An individual message, for example an incoming email, an email reply, or a note.

interface Message {
attachments(
after: String
before: String
first: Int
last: Int
): AttachmentConnection
author: Author
body: String
bodyPlainText: String
cannedReply: CannedReply
channel: Channel!
createdAt: DateTime!
editedAt: DateTime
fromMerge: Boolean
fromMove: Boolean
id: ID!
isNote: Boolean!
rule: Rule
sourceConversation: Conversation
summary: SummaryMessage!
updatedAt: DateTime!
}

Fields

Message.attachments ● AttachmentConnection object common

The files attached to the message, if any.

Message.attachments.after ● String scalar common

Returns the elements in the list that come after the specified cursor.

Message.attachments.before ● String scalar common

Returns the elements in the list that come before the specified cursor.

Message.attachments.first ● Int scalar common

Returns the first n elements from the list.

Message.attachments.last ● Int scalar common

Returns the last n elements from the list.

Message.author ● Author union common

The actor that authored the body.

Message.body ● String scalar common

The body of the message in HTML.

Message.bodyPlainText ● String scalar common

The body of the message in plain text.

Message.cannedReply ● CannedReply object common

The canned reply used for this message.

Message.channel ● Channel! non-null interface common

The channel this message belongs to

Message.createdAt ● DateTime! non-null scalar common

The date and time that the object was created.

Message.editedAt ● DateTime scalar common

The date and time that the object was last updated.

Message.fromMerge ● Boolean scalar common

True if the message comes from a merged conversation; false otherwise.

Message.fromMove ● Boolean scalar common

True if the message was moved from another conversation; false otherwise.

Message.id ● ID! non-null scalar common

Message.isNote ● Boolean! non-null scalar common

True if the message is a note; false otherwise.

Message.rule ● Rule object common

The rule that caused this message to be created.

Message.sourceConversation ● Conversation interface common

The conversation the message was moved from.

Message.summary ● SummaryMessage! non-null object common

The summary of the message.

Message.updatedAt ● DateTime! non-null scalar common

The date and time that the object was last updated.

Member of

ContactOpenedMessage object ● ConversationForwardPayload object ● ConversationForwardV2Payload object ● ConversationReplyPayload object ● MessageMoved object ● Rating object

Implemented by

EmailMessage object ● FacebookMessage object ● ForwardedMessage object ● Note object ● Reply object ● SummaryMessage object ● TwitterMessage object ● WidgetMessage object