Message

Message Models #

The Canvas SDK defines messaging-related data models for sending, receiving, and tracking messages.

TransmissionChannel #

A TextChoices enum representing the available channels for transmitting messages.

MemberValueDescription
MANUALmanualManual
TEXT_MESSAGEsmsText Message
EMAILemailEmail
NOOPnoopNo-op

Message #

Represents an individual message record.

Fields #

NameTypeDescription
idUUIDUnique identifier for the message.
dbidIntegerDatabase primary key.
createdDateTimeTimestamp when the message was created.
modifiedDateTimeTimestamp when the message was last modified.
contentTextThe body text of the message.
senderCanvasUserThe user who sent the message. May be null.
recipientCanvasUserThe user who received the message. May be null.
noteNoteAssociated note (if any) for contextual linkage. May be null.
readDateTimeTimestamp when the recipient read the message. Null if unread.

MessageAttachment #

Represents a file attachment linked to a message.

Fields #

NameTypeDescription
idUUIDUnique identifier for the attachment.
dbidIntegerDatabase primary key.
fileTextStorage path or identifier for the file.
content_typeStringMIME type of the attachment.
messageMessageThe parent message to which this belongs.

MessageTransmission #

Tracks delivery attempts and status for a message.

Fields #

NameTypeDescription
idUUIDUnique identifier for the transmission record.
dbidIntegerDatabase primary key.
createdDateTimeTimestamp when the transmission was created.
modifiedDateTimeTimestamp when the transmission was last modified.
messageMessageThe message associated with this transmission.
deliveredBooleanWhether delivery was successful.
failedBooleanWhether delivery failed.
contact_point_systemTransmissionChannelThe channel used for delivery.
contact_point_valueStringThe destination address or identifier (e.g., phone, email).
commentTextOptional comments or error details.
delivered_byStaffThe staff member who processed the delivery. May be null.