Skip to main content
Unpublish a message

Authorizations

Authorization
string
header
required

A Tightknit admin API key, sent as Authorization: Bearer <key>.

Path Parameters

message_id
string
required

The message's id.

Pattern: ^msg_[a-zA-Z0-9]{12}$

Response

Success

object
enum<string>
required

Always message.

Available options:
message
id
string
required

Unique identifier for the object.

Example:

"msg_9f2b8c1d4e5a"

created_at
string<date-time>
required

When it was written, Slack’s own time for a Slack message.

updated_at
string<date-time>
required

When the object was last changed.

type
enum<string>
required

What kind of message it is. One of:

  • post: opens a thread.
  • comment: replies to a post.
Available options:
post,
comment
feed_id
string | null
required

The id of the feed the message was posted in. Null when it belongs to no feed.

Example:

"feed_7m3x9k4t8plz"

parent_message_id
string | null
required

The post this comment replies to. Null for a post, and for a comment whose post was deleted; type tells them apart.

Example:

"msg_9f2b8c1d4e5a"

title
string | null
required

The post title. Null on a comment, and on a post stored from Slack until its first publish.

slug
string | null
required

The URL segment of the post’s page. Null on a comment, and on a post stored from Slack until its first publish.

description
string | null
required

A short summary of the post, used in search results and link previews. Null on a comment, and on a post with no summary: one stored from Slack gets a generated one on publish only when its feed has ai_titles_enabled on.

body
string
required

The plaintext rendering of the body.

notice
string | null
required

The plaintext rendering of the notice an admin shows above the post on the community site. Null on a comment, and on a post with none. Set it with POST /v1/messages/{message_id}/notice.

Example:

"This thread is out of date. See the current guide."

cover_image_file_id
string | null
required

The id of the image shown as the post’s cover. Null when it has none.

Example:

"file_2b3c4d5e6f7g"

author_profile_id
string | null
required

Null when the author was forgotten.

Example:

"prof_9f2b8c1d4e5a"

source
enum<string>
required

Where it was written. One of:

  • site: on the community site.
  • slack: in a synced channel.
Available options:
site,
slack
Example:

"slack"

is_published
boolean
required

Whether members see it on the community site.

first_published_at
string<date-time> | null
required

When it was first published to the community site. Null for one that never was.

edited_at
string<date-time> | null
required

When the message was last edited. Null for one never edited.

latest_activity_at
string<date-time> | null
required

The latest activity on the thread, the post or any of its comments. Null on a comment.

integrations
object
required

Where the message connects to other platforms.

author
object | null

The author’s profile. Present only when author is expanded.

feed
object | null

The feed. Present only when feed is expanded.

cover_image_file
object | null

The cover image. Present only when cover_image_file is expanded.

parent_message
object | null

The post a comment replies to. Present only when parent_message is expanded.