# Comments, files and reactions

> Comment on a task, attach up to five files to a comment, and react to a comment with any emoji.

**What this is:** a task’s comments, the files posted with them and the emoji reactions on them. **When you need it:** posting updates to a task from your own code, or reading the conversation on one.

**curl**


```bash
curl -X PUT "$TASKADENCE_API_URL/v1/tasks/$TASK_ID/comments/$COMMENT_ID/reactions/%F0%9F%91%8D" \
  -H "Authorization: Bearer $TASKADENCE_TOKEN"
```

**Python**


```python
now = tm.tasks.comments.react(task_id, comment_id, "👍")
print([(r.emoji, r.count, r.reacted_by_me) for r in now.reactions])
```

## Comments

[`task-comments.create`](https://docs.taskadence.com/reference/operations/task-commentscreate/) posts a comment and [`task-comments.reply`](https://docs.taskadence.com/reference/operations/task-commentsreply/) answers one. [`task-comments.list`](https://docs.taskadence.com/reference/operations/task-commentslist/) returns a task’s comments with their replies, a page of top-level comments at a time. Only the author edits a comment. Everyone subscribed to the task gets an email about it, except the author.

## Files on a comment

A comment holds up to **5 files**, each up to **100 MB**. They are task attachments, with the same file types, scan, size limit and storage quota, so they count against the organization’s [storage](https://docs.taskadence.com/guides/storage-and-billing/).

1.  Upload each file to the task with `purpose` set to `comment`, through [`uploads.create`](https://docs.taskadence.com/reference/operations/uploadscreate/) or [`task-attachments.create`](https://docs.taskadence.com/reference/operations/task-attachmentscreate/). It needs permission to comment on the task, not to edit it, and does not count toward the task’s attachment limit.
2.  Send their ids as `attachment_ids` when you create the comment or reply. Only files you uploaded to the same task, and not on another comment yet, are accepted.

A comment read carries `attachments`: each file’s `name`, `size`, `content_type` and, for an image, a short-lived `thumb` link. Download a file as any task attachment. On an edit, `attachment_ids` replaces the list: leave it out to keep the files, send `[]` for none. A file taken off the comment is deleted. The attachment itself shows which comment it belongs to in `comment_id`.

## Reactions

Anyone who can see the task can react to a comment with **any emoji**, one emoji per call:

| Operation | Does |
| --- | --- |
| [`task-comments.add_reaction`](https://docs.taskadence.com/reference/operations/task-commentsadd_reaction/) | Adds your reaction; doing it twice is harmless |
| [`task-comments.remove_reaction`](https://docs.taskadence.com/reference/operations/task-commentsremove_reaction/) | Takes your reaction back; removing one you did not make is harmless |
| [`task-comments.list_reactions`](https://docs.taskadence.com/reference/operations/task-commentslist_reactions/) | Everyone who reacted with that emoji, oldest first |

Both writes answer the comment’s `reactions` now. A comment read carries the same list: each emoji with its `count`, `reacted_by_me` and the first few people. A comment holds at most 50 different emojis; a new one past that is a 409. Put the emoji in the path URL-encoded. A reaction sends no email. Webhooks `task.comment_reaction_added` and `task.comment_reaction_removed` report them; see [events](https://docs.taskadence.com/guides/webhooks/events/).

A member whose sign-in is not linked to their profile yet cannot react, or be subscribed to a task: the call is a 409 [`member-not-linked`](https://docs.taskadence.com/guides/errors/) naming them. They need to sign in again. Their member row shows `linked: false` until then.

Over MCP, `react_to_comment` adds or removes your own reaction; see the [tools](https://docs.taskadence.com/mcp/tools/#react-to-comment).

---
Source: https://docs.taskadence.com/guides/comments/
