Messages
Message Fields
Field | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
channel_id |
string | Primary identifier for the channel this message is a part of. This will be an integer, but it is always expressed as a string to avoid limitations with the way JavaScript integers are expressed. This id space is unique to Channel objects. | ||||||||||||
counts |
object |
|
||||||||||||
created_at |
string | The time at which the message was created in ISO 8601 format; YYYY-MM-DDTHH:MM:SSZ. | ||||||||||||
deleted_by |
string | The ID of the user that deleted the message.
Only set if message was deleted by someone else; messages can be deleted in a channel by anyone who has |
||||||||||||
id |
string | Primary identifier for a message. This will be an integer, but it is always expressed as a string to avoid limitations with the way JavaScript integers are expressed. This id space is unique to Message objects. There can be a Post and Message with the same ID; no relation is implied. | ||||||||||||
is_deleted |
boolean | Whether message is deleted. content will not be included if true.
Only set if |
||||||||||||
is_sticky |
boolean | Whether a full -access user has stickied the message. |
||||||||||||
source |
object |
|
||||||||||||
reply_to |
string | ID of the message this message is replying to.
Only set if message is a reply. |
||||||||||||
thread_id |
string | The ID of the message at the root of the thread that this message is a part of. If thread_id==id then this property does not guarantee that the thread has > 1 message. |
||||||||||||
user |
object | This is an embedded User object.
In certain cases (e.g., when a user account has been deleted), this may be omitted. |
||||||||||||
user_id |
string | Primary identifier for the user who created the message.
Only set if the |
||||||||||||
content |
object |
Not set if the message has been deleted.
|
||||||||||||
raw |
object | The raw items attached to this object.
Only set if query parameter specified.
|
General Message Parameters
Any endpoint that returns message objects can be subject to these parameters.
General Parameters
Name | Type | Description | Default |
---|---|---|---|
include_client |
integer (0 or 1) | Include client object. If false, a source_id field will be included instead. |
true |
include_deleted |
integer (0 or 1) | Include deleted messages. | true |
include_html |
integer (0 or 1) | Should the message and user html field be included alongside the text field in the response objects? |
true |
include_message_html |
integer (0 or 1) | Should the message html field be included alongside the text field in the response objects? |
true |
include_raw |
integer (0 or 1) | Include raw on all objects. | false |
include_message_raw |
integer (0 or 1) | Include raw on all message objects. | false |
include_user |
integer (0 or 1) | Include user object. If false, a user_id field will be included instead. |
true |