Create a new post in a channel. To create the post as a comment on another post, provide root_id. ##### Permissions Must have create_post permission for the channel the post is being created in.
Soft deletes a post, by marking the post as deleted in the database. Soft deleted posts will not be returned in post queries. ##### Permissions Must be logged in as the user or have delete_others_posts permission.
Perform a post action, which allows users to interact with integrations through posts. ##### Permissions Must be authenticated and have the read_channel permission to the channel the post is in.
Gets a list of file information objects for the files attached to a post. ##### Permissions Must have read_channel permission for the channel the post is in.
Get a page of flagged posts of a user provided user id string. Selects from a channel, team, or all flagged posts by a user. Will only return posts from channels in which the user is member. ##### Permissions Must be user or have manage_system permission.
Get a single post. ##### 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 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 the oldest unread post in the channel for the given user as well as the posts around it. The returned list is sorted in descending order (most recent post first). ##### Permissions Must be logged in as the user or have edit_other_users permission, and must have read_channel permission for the channel. Minimum server version: 5.14
Fetch a list of posts based on the provided postIDs ##### 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 a page of posts in a channel. Use the query parameters to modify the behaviour of this endpoint. The parameter since must not be used with any of before, after, page, and per_page parameters. If since is used, it will always return all posts modified since that time, ordered by their create time limited till 1000. A caveat with this parameter is that there is no guarantee that the returned posts will be consecutive. It is left to the clients to maintain state and fill any missing holes in the post order. ##### Permissions Must have read_channel permission for the channel.
Partially update a post by providing only the fields you want to update. Omitted fields will not be updated. The fields that can be updated are defined in the request body, all other provided fields will be ignored. ##### Permissions Must have the edit_post permission.
Pin a post to a channel it is in based from the provided post id string. ##### Permissions Must be authenticated and have the read_channel permission to the channel the post is in.
Set a reminder for the user for the post. ##### Permissions Must have read_channel permission for the channel the post is in. Minimum server version: 7.2
Mark a channel as being unread from a given post. ##### 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. Must have edit_other_users permission if the user is not the one marking the post for himself. Minimum server version: 5.18
Unpin a post to a channel it is in based from the provided post id string. ##### Permissions Must be authenticated and have the read_channel permission to the channel the post is in.
Update a post. Only the fields listed below are updatable, omitted fields will be treated as blank. ##### Permissions Must have edit_post permission for the channel the post is in.