v3

latestOpenAPI 3.1.0MIT2026-07-31930688.4 KB
Posts

Like a post and other actions

post/post_actions.json

Headers

Api-Keystring required
Api-Usernamestring required

Request body

idinteger required

The ID of the post to perform the action on

post_action_type_idinteger required

The ID of the post action type (e.g., 2 for like)

flag_topicboolean

Whether to flag the entire topic

Response

post updated

idinteger required

The ID of the post

namestring required

The name of the post author

usernamestring required

The username of the post author

avatar_templatestring required

Template for the author's avatar URL

created_atstring required

When the post was created

cookedstring required

The HTML content of the post

post_numberinteger required

The post number within the topic

post_typeinteger required

The type of post

posts_countinteger required

Total posts count for the user

updated_atstring required

When the post was last updated

reply_countinteger required

Number of replies to this post

reply_to_post_numberstring nullable required

Post number this post is replying to

quote_countinteger required

Number of times this post has been quoted

incoming_link_countinteger required

Number of incoming links to this post

readsinteger required

Number of reads

readers_countinteger required

Number of readers

scorenumber required

Post score

yoursboolean required

Whether this post belongs to the current user

topic_idinteger required

ID of the topic this post belongs to

topic_slugstring required

Slug of the topic this post belongs to

display_usernamestring required

Display username of the post author

primary_group_namestring nullable required

Primary group name of the author

flair_namestring nullable required

Flair name of the author

flair_urlstring nullable required

Flair URL of the author

flair_bg_colorstring nullable required

Flair background color of the author

flair_colorstring nullable required

Flair color of the author

flair_group_idinteger nullable required

Flair group ID of the author

versioninteger required

Version number of the post

can_editboolean required

Whether the current user can edit this post

can_deleteboolean required

Whether the current user can delete this post

can_recoverboolean required

Whether the current user can recover this post

can_see_hidden_postboolean required

Whether the current user can see hidden posts

can_wikiboolean required

Whether the current user can wiki this post

user_titlestring nullable required

Title of the post author

bookmarkedboolean required

Whether the post is bookmarked by the current user

moderatorboolean required

Whether the post author is a moderator

adminboolean required

Whether the post author is an admin

staffboolean required

Whether the post author is staff

user_idinteger required

ID of the post author

hiddenboolean required

Whether the post is hidden

trust_levelinteger required

Trust level of the post author

deleted_atstring nullable required

When the post was deleted

user_deletedboolean required

Whether the post was deleted by the user

edit_reasonstring nullable required

Reason for the last edit

can_view_edit_historyboolean required

Whether the current user can view edit history

wikiboolean required

Whether this is a wiki post

reviewable_idinteger nullable required

ID of the reviewable if this post is under review

reviewable_score_countinteger required

Number of reviewable scores

reviewable_score_pending_countinteger required

Number of pending reviewable scores

post_urlstring required

URL of the post