---
title: "Create a task comment"
method: POST
path: "/v1/tasks/{task_id}/comments"
tags: ["Tasks"]
---

# Create a task comment

`POST /v1/tasks/{task_id}/comments`

## Request

- Base URL: `https://api.slant.app`
- URL: `https://api.slant.app/v1/tasks/{task_id}/comments`
- Auth: HTTP bearer

Add a comment as the authenticated user. Supply parent_id to reply to an active comment on this task.

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `content` string, required: Comment content as plaintext or Markdown.
  - `parent_id` string

## Response `201`

Comment created

- object
  - `id` string, required
  - `task_id` string, required
  - `content` string, required
  - `parent_id` string, nullable, required
  - `user_id` string, nullable, required
  - `user_name` string, nullable
  - `automation_id` string, nullable
  - `automation_name` string, nullable
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `content_edited_at` string, date-time, nullable

## Other responses

- `400`: Bad Request - malformed JSON, invalid filters, or missing required book context
- `401`: Unauthorized - missing or invalid token
- `403`: Access denied. Policy and membership failures may have an empty body. A read-only personal token cannot perform writes.
- `429`: An hourly API rate limit was exceeded. Wait Retry-After seconds before retrying.

## Changes

- **2026-11-03** `173c41bf6be9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/slant/apis/slant-public-api-v1/changes/v1/tasks/:task_id/comments/post.md)

---

[API](https://skmtc.dev/slant/apis/slant-public-api-v1.md) - [All operations](https://skmtc.dev/slant/apis/slant-public-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/slant/apis/slant-public-api-v1/revisions/173c41bf6be9?raw)
