---
title: "Add a comment to a post"
method: POST
path: "/posts/{postId}/comments"
---

# Add a comment to a post

`POST /posts/{postId}/comments`

## Request

- Base URL: `https://app.voteship.app/api/v1`
- URL: `https://app.voteship.app/api/v1/posts/{postId}/comments`
- Auth: HTTP bearer

## Path parameters

- `postId` string, required

## Request body

- object
  - `body` string, required: Comment text
  - `authorName` string: Display name of the commenter
  - `isInternalNote` boolean: If true, creates an internal note visible only to team members

## Response `201`

Comment created

- object
  - `data` Comment
    - `id` string
    - `postId` string
    - `body` string
    - `authorName` string, nullable
    - `isInternalNote` boolean
    - `createdAt` string, date-time

---

[API](https://skmtc.dev/voteship/apis/voteship-api.md) · [All operations](https://skmtc.dev/voteship/apis/voteship-api/llms.txt) · [OpenAPI document](https://skmtc.dev/voteship/apis/voteship-api/revisions/51ab9e650f82?raw)
