---
title: "Add a comment to a post"
method: POST
path: "/posts/{id}/comments"
tags: ["Posts"]
---

# Add a comment to a post

`POST /posts/{id}/comments`

Creates a new comment on a post. Pass replyToCommentId to create a threaded reply to an existing comment on the same post.

## Path parameters

- `id` string, required

## Request body

- object
  - `text` string, required
  - `teamOnly` boolean
  - `replyToCommentId` string

## Response `201`

Comment created

- object
  - `data` object, required
    - `id` string, required
    - `postId` string, required
    - `text` string, required
    - `authorId` string, required
    - `teamOnly` boolean, required
    - `replyFor` string
    - `reactions` object[], required
      - `emoji` string, required
      - `emojiId` string, required
      - `emojiSkin` integer, required
      - `emojiNative` string, required
      - `users` object[], required
        - `userId` string, required
        - `userName` string
        - `createdAt` string, date-time
    - `createdAt` string, date-time, required

## Other responses

- `400` — Validation error
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Post not found
- `429` — Rate limit exceeded
- `500` — Internal server error

---

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