---
title: "Add a comment"
method: POST
path: "/tasks/{tid}/comments"
tags: ["tasks"]
---

# Add a comment

`POST /tasks/{tid}/comments`

## Request

- Base URL: `https://task.igordudnek.com/api/v1`
- URL: `https://task.igordudnek.com/api/v1/tasks/{tid}/comments`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `lt_access`

## Request body

- CreateCommentRequest
  - `body` string, required

## Response `201`

OK

- Comment
  - `author_id` string, uuid
  - `author_kind` 'user' | 'ai'
  - `body` string, required
  - `created_at` string, date-time
  - `id` string, uuid, required
  - `task_id` string, uuid, required

---

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