Comments are threaded replies attached to a post or to other comments. The Comments API covers submitting new comments, retrieving comment threads and permalinks, voting, editing, and deletion. The sameDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/artemis-development-group/artemis/llms.txt
Use this file to discover all available pages before exploring further.
/api/vote endpoint handles both post and comment voting — the fullname prefix (t1_ for comments, t3_ for posts) distinguishes the target type.
POST /api/comment
Submits a new comment as a reply to a post, an existing comment, or a message. Requires thesubmit OAuth2 scope for post and comment replies, or privatemessages for message replies.
The fullname of the thing being replied to. Use a
t3_ fullname to create a top-level comment on a post, a t1_ fullname to reply to an existing comment, or a t4_ fullname to reply to a private message.The comment body in Markdown. Maximum 10,000 characters.
Base-36 comment ID.
Comment fullname (e.g.
t1_xyz99).Username of the comment author.
Comment body in raw Markdown.
Comment body rendered as safe HTML.
Unix timestamp of when the comment was created.
Net vote score.
Fullname of the parent post.
Fullname of the immediate parent (post or comment).
Branch the comment belongs to.
Relative URL to the comment’s permalink page.
Comment submission is rate-limited unless the author has sufficient karma or is the post’s author commenting on their own self-post.
GET /r/:branch/comments/:article/:title/:comment.json
Returns a focused view of a comment thread, with the specified comment highlighted as the focal point.The branch name.
The base-36 ID of the parent post.
The URL-encoded post title slug. Can be omitted or replaced with a placeholder; the server resolves the article by ID.
The base-36 ID of the focal comment. When present, the response shows this comment and its thread, with surrounding context according to the
context query parameter.Number of ancestor comments to include above the focal comment. Maximum 8.
Maximum depth of the comment subtree to return.
Maximum number of comments to include in the listing.
Comment sort order. One of
confidence, top, new, controversial, old, random, or qa.[post_listing, comment_listing], identical in structure to the /comments/:article.json response but focused on the specified comment.
POST /api/vote
Votes on a comment (or post). Requires thevote OAuth2 scope. The same endpoint handles both posts and comments — the t1_ prefix in the fullname identifies a comment target.
The fullname of the comment to vote on (e.g.
t1_xyz99).Vote direction.
1 for an upvote, -1 for a downvote, 0 to retract a previous vote.The rank of the item in the listing at the time of voting, for analytics purposes.
POST /api/editusertext
Edits the body of a comment or the text of a self-post. Only the original author can call this endpoint. Requires theedit OAuth2 scope.
Fullname of the comment or self-post to edit (e.g.
t1_xyz99 for a comment, t3_abc12 for a self-post).The replacement Markdown body. Maximum 10,000 characters for comments; longer limits apply to self-posts.
Comments that are more than 3 minutes old or have more than 2 votes will be marked as edited. The edit timestamp is stored in the
editted field.POST /api/del
Deletes a comment. Only the comment’s author can delete it. Requires theedit OAuth2 scope. The same endpoint is used to delete posts; the fullname prefix distinguishes the target type.
Fullname of the comment to delete (e.g.
t1_xyz99).[deleted] and the author field shows [deleted].
GET /user/:username/comments.json
Returns a paginated listing of all comments made by a user.The account username.
Sort order. One of
new, hot, top, or controversial.Time window when
sort is top. One of hour, day, week, month, year, or all.Fullname cursor for forward pagination.
Fullname cursor for backward pagination.
Number of comments to return. Maximum is 100.