Overview
Comments allow users to discuss questions, share insights, and explain their reasoning. Comments can be public or private, can include forecasts, and support threading (replies).List Comments
GET /api/comments/
Retrieve comments with filtering options. Either post or author parameter is required.
Query Parameters
Filter comments by post ID (required if
author not provided)Filter comments by author user ID (required if
post not provided)Show private comments (for authenticated user only) or public comments
Filter to only root comments (
true) or only replies (false)Sort order:
created_at (oldest first) or -created_at (newest first)Place a specific comment at the top of results
Include soft-deleted comments in results
If true, pagination applies only to root comments, and all replies are included
Number of comments to return
Pagination offset
Response
Total number of comments (including replies)
Number of root comments only
URL for next page, or null
URL for previous page, or null
Array of comment objects
Comment Object
Unique comment identifier
ID of the comment being replied to, or null if root comment
ID of the root comment in this thread
When the comment was created
When the comment text was last edited
Comment content in markdown
ID of the post this comment belongs to
Whether this is a private comment
Whether the comment has been deleted
Whether the comment is pinned by moderators
Total vote score (upvotes - downvotes)
Current user’s vote:
1 (upvote), -1 (downvote), or nullUsers mentioned with @ in the comment
Author’s staff permission level on the post
Key factors associated with this comment (advanced feature)
Create Comment
POST /api/comments/create/
Create a new comment on a post.
Request Body
The post ID to comment on
Comment text in markdown format. Can be empty if key_factors are provided.
Whether this is a private comment (visible only to you)
Include your most recent forecast on this question
ID of the comment to reply to (omit for root comments)
Advanced: Key factors to attach to this comment
Response
Returns the created comment object.Comment FormattingComments support markdown formatting:
- Bold:
**text** - Italic:
*text* - Links:
[text](url) - Lists:
- itemor1. item - Code:
`code` - Mentions:
@username - LaTeX math:
$equation$or$$block$$
Edit Comment
PATCH /api/comments/{commentId}/edit/
Edit your own comment.
Path Parameters
The comment ID to edit
Request Body
Updated comment text
You can only edit your own comments. The edit timestamp is tracked in
text_edited_at.Delete Comment
DELETE /api/comments/{commentId}/delete/
Soft-delete your comment. The comment text is replaced with “deleted” but the comment remains visible.
Path Parameters
The comment ID to delete
Vote on Comment
POST /api/comments/{commentId}/vote/
Vote on a comment.
Path Parameters
The comment ID to vote on
Request Body
Vote direction:
1: Upvote-1: Downvote0: Remove vote
Report Comment
POST /api/comments/{commentId}/report/
Report a comment for moderator review.
Path Parameters
The comment ID to report
Request Body
Reason for reporting
