Message Object


Properties
idstringRead-only

Message ID.


contentContent

Structured message content.


senderSenderRead-only

ID of the message sender.

Defaults to the caller's ID using the property that matches their identity type. For 3rd-party apps, defaults to using the app's appId.

You can override the default behavior when calling Send Message by using the sendAs parameter.


badgesArray <Badge>maxItems 1

Optional icon and short text providing additional details about the message, such as the app from which the message was sent, or whether the message was an automated response.

Currently only 1 badge is supported.


targetChannelsArray <string>

Communication channel to send the message to.

Currently messages can be sent to 1 channel only.


sourceChannelstring

Communication channel the message is sent from.


appIdstringRead-onlyformat GUID

ID of the application that sent the message.

Omitted if the message was sent with the Chat widget.


visibilitystring

Required. Controls who can see the message.


sequencestringRead-onlyformat int64

Sequential ordering of the message.

Ensures more accurate sorting than createdDate if two messages are sent at the same time.


directionstring

Required. Message direction.


createdDatestringformat date-time

Date and time the message was sent.


silentboolean

Controls whether the unread count and conversation summary are updated in the Message List.

If true, unread count and conversation summary are not updated.

Default: false

Did this help?