---
title: "Create a comment on a task"
method: POST
path: "/tasks/{id}/comments"
tags: ["tasks"]
---

# Create a comment on a task

`POST /tasks/{id}/comments`

Creates a new comment on a task. The authenticated user is the author.

**Rate limit:** 20 requests per minute

## Path parameters

- `id` string, required

## Request body

- CreateTaskCommentRequestBody
  - `body_html` string, required — The body of the comment in HTML format.
  - `is_internal` boolean — Whether the comment is visible only to internal users.

## Response `200`

- CreateTaskCommentResponseBody
  - `data` TaskComment
    - `author` Actor
      - `contact` MiniContact
        - `email` string — The email of the contact.
        - `id` string — The ID of the contact.
      - `user` MiniUser
        - `email` string — The email of the user.
        - `id` string — The ID of the user.
    - `body_html` string — The body of the comment in HTML format.
    - `created_at` string — The created at time of the comment.
    - `id` string — The ID of the comment.
    - `is_internal` boolean — Whether the comment is visible only to internal users.
    - `last_edited_at` string — The time the comment was last edited, in RFC3339 format.
    - `task_id` string — The ID of the task this comment belongs to.
    - `updated_at` string — The updated at time of the comment.
  - `request_id` string — The request ID for tracking.

## Other responses

- `400` — The request was invalid or could not be completed.
- `404`
- `500` — An unexpected internal error occurred.

---

[API](https://skmtc.net/usepylon/apis/pylon-api.md) · [All operations](https://skmtc.net/usepylon/apis/pylon-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/usepylon/pylon-api/versions/999c51740b4e/schema)
