Message Object


Properties
idstringRead-only

Message ID.


contentContent

Structured message content.


senderSender

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 that give an additional detail about the message, such as the app the message was sent from 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.

  • BUSINESS_AND_PARTICIPANT: Visible to the participant and site contributors.
  • BUSINESS: Visible to site contributors only.

sequenceSequenceRead-only

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


directionstring

Required. Message direction.

  • BUSINESS_TO_PARTICIPANT: The message was sent from the business to the participant.
  • PARTICIPANT_TO_BUSINESS: The message was sent from the participant to the business.

createdDatestringformat date-time

Date and time the message was sent.

Did this help?