Skip to main content
GET
Retrieve message
This page documents the Legacy API. For new integrations, use Retrieve Message in the Current API.
Required permissions (one of):
  • chat:read
  • dms:read
  • livestream:chat:read
  • support_chat:read

Yetkilendirmeler

Authorization
string
header
gerekli

An Account API key, account-scoped JWT, App API key, or user OAuth token. Prepend the key or token with Bearer, for example Bearer ***************************.

Scopes

chat:read
dms:read
livestream:chat:read
support_chat:read

Yol Parametreleri

id
string
gerekli

The unique identifier of the message to retrieve.

Yanıt

A successful response

A message sent within an experience chat, direct message, or group chat.

content
string | null
gerekli

The message content formatted as Markdown. Null if the message has no text content.

Örnek:

"Hey, are you available for a **quick call**?"

created_at
string<date-time>
gerekli

The timestamp when this message was originally created.

Örnek:

"2023-12-01T05:00:00.401Z"

id
string
gerekli

Represents a unique identifier that is Base64 obfuscated. It is often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "VXNlci0xMA==") or integer (such as 4) input value will be accepted as an ID.

is_edited
boolean
gerekli

Whether the message content has been edited after it was originally sent.

is_pinned
boolean
gerekli

Whether this message is pinned to the top of the channel for easy access.

mentions
string[]
gerekli

A list of user IDs that are explicitly mentioned in this message.

Represents a unique identifier that is Base64 obfuscated. It is often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "VXNlci0xMA==") or integer (such as 4) input value will be accepted as an ID.

mentions_everyone
boolean
gerekli

Whether the message includes an @everyone mention that notifies all channel members.

message_type
enum<string>
gerekli

The classification of this message: regular, system, or automated.

Mevcut seçenekler:
regular,
system,
automated
poll
object | null
gerekli

A poll attached to this message. Null if the message does not contain a poll.

poll_votes
object[]
gerekli

Aggregated reaction counts on this message, filtered to a specific reaction type.

reaction_counts
object[]
gerekli

Aggregated reaction counts on this message, filtered to a specific reaction type.

replying_to_message_id
string | null
gerekli

The unique identifier of the message this post is replying to. Null if this is not a reply.

updated_at
string<date-time>
gerekli

The timestamp when this message was last modified.

Örnek:

"2023-12-01T05:00:00.401Z"

user
object
gerekli

The user who authored this message.

view_count
integer | null
gerekli

The number of unique views this message has received. Null if view tracking is not enabled for this channel.

Örnek:

42