Sendbird · Schema

Sendbird Message

A message sent in a Sendbird channel.

Properties

Name Type Description
message_id integer Unique identifier of the message.
type string Type of message: MESG (text), FILE (file), ADMM (admin).
message string Text content of the message.
channel_url string URL of the channel containing this message.
created_at integer Unix timestamp (milliseconds) when the message was sent.
updated_at integer Unix timestamp (milliseconds) when the message was last updated.
custom_type string Custom type for message categorization.
data string Custom data string attached to the message.
mention_type string Type of user mention: 'users' for specific users, 'channel' for all members.
mentioned_users array Users mentioned in the message.
View JSON Schema on GitHub

JSON Schema

sendbird-message-schema.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://api-evangelist.github.io/sendbird/json-schema/sendbird-message-schema.json",
  "title": "Sendbird Message",
  "description": "A message sent in a Sendbird channel.",
  "type": "object",
  "properties": {
    "message_id": {
      "type": "integer",
      "description": "Unique identifier of the message."
    },
    "type": {
      "type": "string",
      "description": "Type of message: MESG (text), FILE (file), ADMM (admin).",
      "enum": ["MESG", "FILE", "ADMM"]
    },
    "message": {
      "type": "string",
      "description": "Text content of the message."
    },
    "channel_url": {
      "type": "string",
      "description": "URL of the channel containing this message."
    },
    "created_at": {
      "type": "integer",
      "description": "Unix timestamp (milliseconds) when the message was sent."
    },
    "updated_at": {
      "type": "integer",
      "description": "Unix timestamp (milliseconds) when the message was last updated."
    },
    "custom_type": {
      "type": "string",
      "description": "Custom type for message categorization."
    },
    "data": {
      "type": "string",
      "description": "Custom data string attached to the message."
    },
    "mention_type": {
      "type": "string",
      "description": "Type of user mention: 'users' for specific users, 'channel' for all members.",
      "enum": ["users", "channel"]
    },
    "mentioned_users": {
      "type": "array",
      "description": "Users mentioned in the message.",
      "items": {
        "type": "object",
        "properties": {
          "user_id": {"type": "string"},
          "nickname": {"type": "string"}
        }
      }
    }
  },
  "required": ["message_id", "type", "channel_url", "created_at"]
}