---
title: "Create a new comment"
method: POST
path: "/api/comments/create/"
tags: ["Comments"]
---

# Create a new comment

`POST /api/comments/create/`

Submit a new comment on a post

## Request body

- object
  - `included_forecast` boolean, required — Include the user's last forecast.
  - `is_private` boolean, required — If the comment is private or public.
  - `on_post` integer, required — ID of the post.
  - `parent` integer — ID of the comment you're replying to.
  - `text` string, required — The content of the comment.

## Response `201`

Comment created successfully

- Comment
  - `id` integer — Unique identifier for the comment.
  - `author` object
    - `id` integer — Author's user ID.
    - `username` string — Author's username.
    - `is_bot` boolean — If the author is a bot.
    - `is_staff` boolean — If the author is a staff member.
  - `parent_id` integer, nullable — ID of the comment being replied to (if applicable).
  - `root_id` integer, nullable — ID of the root comment in the thread.
  - `created_at` string, date-time — Timestamp when the comment was created.
  - `text` string — The content of the comment.
  - `on_post` integer — ID of the post the comment belongs to.
  - `included_forecast` boolean — If the user's last forecast is included.
  - `is_private` boolean — If the comment is private.
  - `vote_score` integer — Total vote score for the comment.
  - `changed_my_mind` object
    - `count` integer — Number of users who changed their mind based on this comment.
    - `for_this_user` boolean — If the current user changed their mind based on this comment.
  - `mentioned_users` object[]
    - `id` integer — ID of the mentioned user.
    - `username` string — Username of the mentioned user.
  - `user_vote` integer — Current user's vote on this comment (-1, 0, 1).

## Other responses

- `400` — Invalid request format

---

[API](https://skmtc.net/metaculus/apis/metaculus-api.md) · [All operations](https://skmtc.net/metaculus/apis/metaculus-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/metaculus/metaculus-api/versions/f1b9a08e1da2/schema)
