---
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:** 120 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.
- `403` — The authenticated caller or organization is not allowed to access this endpoint or operation.
- `404`
- `500` — An unexpected internal error occurred.

## Changes

- **2026-08-28** `fe3adb90ea45` — 1 info
  - added the non-success response with the status `403`

[Change history](https://skmtc.dev/usepylon/apis/pylon-api/changes/tasks/:id/comments/post.md)

---

[API](https://skmtc.dev/usepylon/apis/pylon-api.md) · [All operations](https://skmtc.dev/usepylon/apis/pylon-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/usepylon/pylon-api/revisions/7b12ab92de27/schema)
