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

# Add a comment to a post

`POST /v1/posts/{postId}/comments`

## Path parameters

- `postId` string, uuid, required

## Request body

- object
  - `content` string, required
  - `attachmentIds` string[]
  - `messageType` 'text' | 'audio'
  - `clientMessageId` string
  - `replyToId` string, uuid

## Response `200`

Successful response

- object
  - `messageId` string, uuid, required
  - `chatRoomId` string, uuid, required

## Other responses

- `404` — Resource not found

---

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