---
title: "Add a new comment"
method: POST
path: "/comments/add"
tags: ["Comments"]
---

# Add a new comment

`POST /comments/add`

## Request

- Base URL: `https://dummyjson.com`
- URL: `https://dummyjson.com/comments/add`
- Auth: none required

## Query parameters

- `delay` integer

## Request body

- object
  - `body` string, required
  - `postId` integer, required
  - `userId` integer, required

## Response `201`

Created comment

- Comment
  - `id` integer
  - `body` string
  - `postId` integer
  - `likes` integer
  - `user` object
    - `id` integer
    - `username` string
    - `fullName` string

---

[API](https://skmtc.dev/dummyjson/apis/dummyjson-api.md) - [All operations](https://skmtc.dev/dummyjson/apis/dummyjson-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dummyjson/apis/dummyjson-api/revisions/5e704f33a559?raw)
