Skip to main content
GET
Retrieve Message

Autorisationer

Authorization
string
header
påkrævet

An Account API key, an App API key, an account access token, an account-scoped user token, or a user OAuth token. Prepend the key or token with Bearer, for example Bearer ***************************. See Auth & API keys for how to get each one.

Scopes

dms:read
chat:read
support_chat:read

Overskrifter

Api-Version-Date
string

Pins the request to a dated API version.

Eksempel:

"2026-11-17"

Sti-parametre

id
string
påkrævet

Existing public message ID.

Forespørgselsparametre

include_replying_to_message
boolean
standard:false

Include the full replied-to message. Nested replies are not included.

Svar

message retrieved

attachments
object[]
påkrævet
author
object | null
påkrævet
author_is_team_member
boolean
påkrævet

true if the author is a team member of the account that owns this community channel. false for partners, private and support channels, and deleted messages.

Eksempel:

false

author_user_id
string | null
påkrævet
Eksempel:

"user_xxxxxxxxxxxxxx"

channel_id
string
påkrævet
Eksempel:

"feed_xxxxxxxxxxxxxxxxxxxxxx"

content
string | null
påkrævet

Markdown content. null for a deleted message.

Eksempel:

"Content 1"

created_at
string
påkrævet

Creation time as an ISO 8601 timestamp.

Eksempel:

"2026-01-01T12:00:00.000Z"

custom_author
object | null
påkrævet
deleted_at
string | null
påkrævet

Deletion time, or null for a live message.

Eksempel:

null

edited
boolean
påkrævet
Eksempel:

false

embeds
object[]
påkrævet
gifs
object[]
påkrævet
id
string
påkrævet

Message ID, prefixed post_. Matches the id sent on create, when one was sent.

Eksempel:

"post_xxxxxxxxxxxxxxxxxxxxxx"

mentioned_user_ids
string[]
påkrævet
message_type
enum<string>
påkrævet
Tilgængelige muligheder:
regular,
system,
automated
Eksempel:

"regular"

pinned
boolean
påkrævet
Eksempel:

false

plain_content
string | null
påkrævet

Unformatted message text. null when the text is absent or the message is deleted

Eksempel:

"Content 1"

poll
object | null
påkrævet
reaction_counts
object[]
påkrævet
replying_to_message_id
string | null
påkrævet
Eksempel:

null

replying_to_user_id
string | null
påkrævet

User ID of the replied-to message's author, prefixed user_. null without a reply in this channel, or when either message is deleted.

Eksempel:

null

updated_at
string
påkrævet

Last message change as an ISO 8601 timestamp.

Eksempel:

"2026-01-01T12:00:00.000Z"

view_count
integer | null
påkrævet

Experience view count. null for DM-backed channels.

Eksempel:

null

replying_to_message
any | null

The replied-to message. Omitted unless include_replying_to_message=true. Includes all message fields except replying_to_message. null when this message is deleted or no same-channel target exists.