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

# Create a comment

`POST /comments`

## Request

- Base URL: `https://api.fanheroapi.com`
- URL: `https://api.fanheroapi.com/comments`
- Auth: API key in header `apiKey`

## Headers

- `organization` string, required

## Request body

- AddCommentRestInput
  - `parent` string: Parent comment (if this comment is in reply to another one)
  - `description` string, required: Comment text
  - `content` string, required: The ID of the post that this comment is for

## Response `201`

Added a comment.

---

[API](https://skmtc.dev/fanhero/apis/headless-cms-endpoints.md) - [All operations](https://skmtc.dev/fanhero/apis/headless-cms-endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/fanhero/apis/headless-cms-endpoints/revisions/fb8d50c05ee6?raw)
