posts

Get a thread

Get a post and the rest of the posts in the same thread.

Permissions

Must have read_channel permission for the channel the post is in or if the channel is public, have the read_public_channels permission for the team.

get/api/v4/posts/{post_id}/thread

Path parameters

post_idstring required

ID of a post in the thread

Query parameters

perPageinteger

The number of posts per page

fromPoststring

The post_id to return the next page of posts from

fromCreateAtinteger

The create_at timestamp to return the next page of posts from

directionstring

The direction to return the posts. Either up or down.

skipFetchThreadsboolean

Whether to skip fetching threads or not

collapsedThreadsboolean

Whether the client uses CRT or not

collapsedThreadsExtendedboolean

Whether to return the associated users as part of the response or not

Response

Post list retrieval successful

orderstring[]
postsobject
next_post_idstring

The ID of next post. Not omitted when empty or not relevant.

prev_post_idstring

The ID of previous post. Not omitted when empty or not relevant.

has_nextboolean

Whether there are more items after this page.

Example response

{
  "order": [
    "post_id1",
    "post_id12"
  ]
}

Changes