---
title: "Add comment to feedback"
method: POST
path: "/v1/feedback/{id}/comments"
tags: ["Comments"]
---

# Add comment to feedback

`POST /v1/feedback/{id}/comments`

## Request

- Base URL: `https://api.ybug.io`
- URL: `https://api.ybug.io/v1/feedback/{id}/comments`
- Auth: HTTP bearer

Creates a new comment on the feedback item. The authenticated user is set as the author.
Comments are internal (private team notes) by default. Set `internal` to `false` to create a public reply to notify the reporter.

## Request body

- object
  - `body` string, required: The comment body (max 500 characters, HTML stripped).
  - `internal` boolean: When true, the comment is a private team comment. When false, it is a public reply visible to the reporter. Defaults to true.

## Response `201`

Comment successfully created.

- Comment
  - `id` string, uuid: Comment identifier (UUID).
  - `body` string: The comment body text.
  - `internal` boolean: True if this is a private team comment (note), false if it is a public reply.
  - `author` object: The comment author.
    - `id` string, uuid, nullable: Author user UUID. Null for inbound email replies.
    - `name` string
    - `email` string, email, nullable
  - `created_at` string, date-time
  - `updated_at` string, date-time, nullable

## Other responses

- `400`: Bad Request. The request was invalid (e.g., missing required fields in payload).
- `401`: Unauthorized. Missing or invalid API token.
- `403`: Forbidden. The user does not have permission to access the resource, or the operation is restricted by the account plan.
- `404`: Not Found. The requested resource (team or project ID) could not be found.
- `429`: Too Many Requests. The rate limit for the client has been exceeded.
- `500`: Internal Server Error. An unexpected error occurred on the server.

---

[API](https://skmtc.dev/ybug/apis/ybug-api.md) · [All operations](https://skmtc.dev/ybug/apis/ybug-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ybug/apis/ybug-api/revisions/50f50cb05459?raw)
