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
idUUIDFieldUnique identifier for the message.
dbidBigIntegerFieldDatabase primary key.
createdDateTimeFieldTimestamp when the message was created.
modifiedDateTimeFieldTimestamp when the message was last modified.
contentTextFieldThe body text of the message.
senderForeignKey(CanvasUser)The user who sent the message. May be null.
recipientForeignKey(CanvasUser)The user who received the message. May be null.
noteForeignKey(Note)Associated note (if any) for contextual linkage. May be null.
readBooleanFieldIndicates whether the recipient has read the message.

MessageAttachment #

Represents a file attachment linked to a message.

Fields #

NameTypeDescription
idUUIDFieldUnique identifier for the attachment.
dbidBigIntegerFieldDatabase primary key.
fileTextFieldStorage path or identifier for the file.
content_typeCharField(max_length=255)MIME type of the attachment.
messageForeignKey(Message)The parent message to which this belongs.

MessageTransmission #

Tracks delivery attempts and status for a message.

Fields #

NameTypeDescription
idUUIDFieldUnique identifier for the transmission record.
dbidBigIntegerFieldDatabase primary key.
createdDateTimeFieldTimestamp when the transmission was created.
modifiedDateTimeFieldTimestamp when the transmission was last modified.
messageForeignKey(Message)The message associated with this transmission.
deliveredBooleanFieldWhether delivery was successful.
failedBooleanFieldWhether delivery failed.
contact_point_systemCharField(choices=TransmissionChannel)The channel used for delivery.
contact_point_valueCharField(max_length=255)The destination address or identifier (e.g., phone, email).
commentTextFieldOptional comments or error details.
delivered_byForeignKey(Staff)The staff member who processed the delivery. May be null.