---
title: "Comment on a post, or reply to a comment"
method: POST
path: "/community/posts/{id}/comments"
tags: ["Community"]
---

# Comment on a post, or reply to a comment

`POST /community/posts/{id}/comments`

## Request

- Base URL: `https://ledgerhq.pro/api/v1`
- URL: `https://ledgerhq.pro/api/v1/community/posts/{id}/comments`
- Auth: one of:
  - HTTP bearer and API key in header `x-organization-id`
  - HTTP bearer and API key in header `x-organization-id`

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `body` string: Required unless imageIds is given
  - `imageIds` string[]
  - `parentCommentId` string, uuid, nullable
  - `anonymous` boolean
  - `official` boolean

## Response `201`

Post with updated comments

## Other responses

- `default`: Error response

---

[API](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api.md) · [All operations](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ledgerhq-pro/apis/ledgerhq-bookkeeping-api/revisions/01c3e57d281f?raw)
