A system message is a neutrally rendered message, shown to all users in a conversation. System messages support wiki-style formatting.

System message data

Field Type Description
id string

Read-only. A unique ID for the message, generated by TalkJS.

Example: "msg_6TKoWs0Jm8XrjPOmFdOGiX"

conversationId string ID of the Conversation this message was sent to.
type "SystemMessage" Always set to "SystemMessage". Read about user messages for the alternative.
text string The text of the message. Only given if this message is a text message.
origin "rest" | "import" Determines how this message was sent: respectively, via the REST API or using the import API.
createdAt number

Timestamp when this message was sent, expressed as the amount of milliseconds since the UNIX epoch (1970-1-1, 00:00:00 UTC).

Example: 1525249255419

Further reading