Slack · JSON Structure

Slack Web Message Structure

Type: object Properties: 20
BotsChatCollaborationMessagingProductivityT1Team Communication

Message is a JSON Structure definition published by Slack, describing 20 properties. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

type subtype channel user text ts thread_ts reply_count reply_users_count latest_reply reply_users blocks attachments files reactions edited bot_id bot_profile metadata permalink

Meta-schema: https://json-structure.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/draft/2020-12/schema",
  "name": "Message",
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "subtype": {
      "type": "string"
    },
    "channel": {
      "type": "string"
    },
    "user": {
      "type": "string"
    },
    "text": {
      "type": "string"
    },
    "ts": {
      "type": "string"
    },
    "thread_ts": {
      "type": "string"
    },
    "reply_count": {
      "type": "integer"
    },
    "reply_users_count": {
      "type": "integer"
    },
    "latest_reply": {
      "type": "string"
    },
    "reply_users": {
      "type": "array"
    },
    "blocks": {
      "type": "array"
    },
    "attachments": {
      "type": "array"
    },
    "files": {
      "type": "array"
    },
    "reactions": {
      "type": "array"
    },
    "edited": {
      "type": "object"
    },
    "bot_id": {
      "type": "string"
    },
    "bot_profile": {
      "type": "object"
    },
    "metadata": {
      "type": "object"
    },
    "permalink": {
      "type": "string"
    }
  }
}