> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Resource: Messages # Type: Message Object # Link: https://dev.wix.com/docs/api-reference/crm/communication/inbox/messages/message-object.md ## Schema: ```json Type: Message Object | type: Message - name: id | type: string | description: Message ID. - name: value | type: string | description: - name: content | type: MessageContent | description: Structured message content. - name: previewText | type: string | description: Summary of message contents. Displayed in Inbox in the [Message List](https://support.wix.com/en/article/wix-inbox-an-overview). - name: title | type: string | description: Message title. - name: sender | type: IdentificationData | description: 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 the Send Message method by using the `sendAs` parameter. - name: contactId | type: string | description: Contact ID. See the Contacts API for more information. - name: badges | type: Array | description: 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. - name: text | type: string | description: Display text. - name: iconUrl | type: string | description: URL where the icon is hosted. - name: badgeVisibility | type: string | description: Controls whether the badge is visible to the participant. Currently not supported in the Chat widget. enum: UNKNOWN_BADGE_VISIBILITY, BUSINESS_AND_PARTICIPANT, BUSINESS - name: targetChannels | type: Array | description: Communication channel to send the message to. Currently messages can be sent to 1 channel only. enum: UNKNOWN_CHANNEL_TYPE, CHAT, EMAIL, SMS, FACEBOOK, INSTAGRAM, WHATSAPP - name: sourceChannel | type: string | description: Communication channel the message is sent from. - name: appId | type: string | description: ID of the app that sent the message. Omitted if the message was sent with the Chat widget. - name: visibility | type: string | description: __Required.__ Controls who can see the message. enum: UNKNOWN_VISIBILITY, BUSINESS_AND_PARTICIPANT, BUSINESS - name: sequence | type: string | description: Sequential ordering of the message. Ensures more accurate sorting than `createdDate` if two messages are sent at the same time. - name: value | type: string | description: - name: direction | type: string | description: __Required.__ Message direction. enum: UNKNOWN_DIRECTION, BUSINESS_TO_PARTICIPANT, PARTICIPANT_TO_BUSINESS - name: createdDate | type: string | description: Date and time the message was sent. - name: seconds | type: string | description: - name: nanos | type: number | description: - name: targetChannelIds | type: Array | description: Target channel IDs to send the message to. - name: sourceChannelId | type: string | description: The channel ID from which the message was sent. - name: silent | type: boolean | description: Controls whether the unread count and conversation summary are updated in the [Message List](https://support.wix.com/en/article/wix-inbox-an-overview). If `true`, unread count and conversation summary are not updated. Default: `false` ```