> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nexusmission.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Comment

> Add a comment to a task.

## Path Parameters

<ParamField path="id" type="string" required>
  Task ID.
</ParamField>

## Body

<ParamField body="text" type="string" required>
  Comment text.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST http://localhost:3000/api/v1/tasks/clxyz789/comments \
    -H "Authorization: Bearer <token>" \
    -H "Content-Type: application/json" \
    -d '{"text": "Looking good, merging soon."}'
  ```
</RequestExample>

<ResponseExample>
  ```json 201 theme={null}
  {
    "id": "clcom001",
    "text": "Looking good, merging soon.",
    "authorId": "clxyz123",
    "taskId": "clxyz789",
    "createdAt": "2026-03-18T01:10:00.000Z"
  }
  ```
</ResponseExample>
