# Create a comment reply

`POST https://api.cademi.com.br/api/v3/products/{product_id}/comments/{comment_id}/replies`

Operation ID: `comments.replies.create` · API v3

Adds a reply to a top-level comment.

Replies created through the API are attributed to the credential that made the request (`author.kind` is `credential`).

Required permissions: `comments.update`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `product_id` | path | string | yes |  |
| `comment_id` | path | string | yes |  |
| `Idempotency-Key` | header | string | yes |  |

## Request body

Content type: `application/json`, required.

| Field | Type | Required | Description |
|---|---|---|---|
| `text` | string | yes |  |
| `visibility` | string, one of `public` | no |  |

## Responses

### 201

Returns the newly created reply.

### 401

The credential is missing, malformed, expired, or revoked.

Body: Error.

### 403

The current credentials do not have the permission required by this operation.

Body: Error.

### 404

The comment was not found in this product or is not accessible with the current credentials.

Body: Error.

### 422

The request body or query parameters failed validation.

Body: ValidationFailed.

Full schema: https://cademi.dev/openapi/v3.json
