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

# Create comment

`POST /comments`

The Create comment API endpoint allows you to create a new comment for a campaign lead id. You should add the following fields in the request body:

#### Request Body

- `creator_user_id` (string, required): The ID of the user creating the comment.
    
- `campaign_lead_id` (string, required): The ID of the campaign lead related to the comment.
    
- `body` (string, required): The content of the comment.
    

#### Response

The response will be a JSON object with a `comments` array containing the newly created comment object. Each comment object includes the following fields:

- `id` (string): The unique identifier of the comment.
    
- `campaign_lead_id` (string): The ID of the campaign lead related to the comment.
    
- `creator_user_id` (string): The ID of the user who created the comment.
    
- `body` (string): The content of the comment.
    
- `created_at` (string): The timestamp of when the comment was created.
    
- `success` (boolean): Indicates whether the request was successful.

## Request body

- object
  - `body` string
  - `campaign_lead_id` string
  - `creator_user_id` number

## Response `201`

Successful operation

- object
  - `comments` object[]
    - `body` string
    - `campaign_lead_id` string
    - `created_at` string
    - `creator_user_id` string
    - `id` string
    - `success` boolean

## Other responses

- `404` — Error

---

[API](https://skmtc.net/commpeak/apis/dialer-api-v2-0-1.md) · [All operations](https://skmtc.net/commpeak/apis/dialer-api-v2-0-1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/commpeak/dialer-api-v2-0-1/revisions/eacecf960bb6/schema)
