---
title: "Create a comment on a post"
method: POST
path: "/posts/{postId}/comments"
tags: ["Comments"]
---

# Create a comment on a post

`POST /posts/{postId}/comments`

## Request

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

## Path parameters

- `postId` string, uuid, required

## Request body

- object
  - `body` string, required
  - `reply_to_comment_id` string, uuid, nullable: If set, the comment is a reply — parent must belong to the same post and not be deleted.

## Response `201`

Comment created

- object
  - `comment` Comment
    - `id` string, uuid
    - `post_id` string, uuid
    - `user_id` string, uuid
    - `body` string
    - `display_name` string
    - `avatar_url` string, nullable
    - `created_at` string, date-time
    - `updated_at` string, date-time, nullable
    - `deleted_at` string, date-time, nullable
    - `reply_to_comment_id` string, uuid, nullable
    - `reply_to_user_id` string, uuid, nullable
    - `reply_to_display_name` string, nullable
    - `like_count` integer
    - `is_liked` boolean

---

[API](https://skmtc.dev/shopseen/apis/a-side-api.md) - [All operations](https://skmtc.dev/shopseen/apis/a-side-api/llms.txt) - [OpenAPI document](https://skmtc.dev/shopseen/apis/a-side-api/revisions/f37f989e90da?raw)
