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

# Create a comment

`POST /comments`

## Request

- Base URL: `https://api.sandbox.monite.com/v1`
- URL: `https://api.sandbox.monite.com/v1/comments`
- Auth: HTTP bearer

Create new comment

## Headers

- `x-monite-version` string, required
- `x-monite-entity-id` string, required

## Request body

- object
  - `object_id` string, uuid, required
  - `object_type` string, required
  - `reply_to_entity_user_id` string, uuid
  - `text` string, required

## Response `201`

Successful Response

- CommentResource
  - `id` string, uuid, required
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `created_by_entity_user_id` string, uuid, required
  - `entity_id` string, uuid, required
  - `object_id` string, uuid, required
  - `object_type` string, required
  - `reply_to_entity_user_id` string, uuid
  - `status` 'active' | 'deleted', required
  - `text` string, required

## Other responses

- `400`: Bad Request
- `401`: The `Authorization` header is missing or contains an invalid or expired access token. See [Authentication](https://docs.monite.com/api/concepts/authentication) to learn how to authenticate API calls.
- `403`: The specified access token does not have permissions to perform this operation.
- `404`: Not Found
- `409`: Possible responses: `Could not notify groups: {not_valid_recipients}. Recipients dont exists`, `groups with ids: {','.join(missed_ids)} dont exists`, `Could not notify groups: {missed_groups}. Only {available_groups} are available`, `Action {action} for {object_type} not allowed`, `Action for {object_type} at permissions not found: {action}`, `Object type at permissions not found: {object_type}``{operation}: status has not changed`
- `422`: Validation Error
- `429`: API rate limit has been exceeded. Check the response headers for the rate limit information.

---

[API](https://skmtc.dev/monite/apis/monite-2.md) - [All operations](https://skmtc.dev/monite/apis/monite-2/llms.txt) - [OpenAPI document](https://skmtc.dev/monite/apis/monite-2/revisions/4299ccf95edb?raw)
