# Returns all comments of the task with the specified id.

GET https://api.awork.com/api/v1/tasks/{taskId}/comments

Returns all comments of the task with the specified id. The user needs read permissions on the task.

<Check title="Required Permissions" icon="key">Any authenticated user.</Check>

## Request example

```sh
curl -X GET --globoff 'https://api.awork.com/api/v1/tasks/{taskId}/comments' \
  -H 'Authorization: Bearer <token>'
```

- path parameter `taskId`: string (required). The id of the task.

- query parameter `page`: integer. Page number for pagination

- query parameter `pageSize`: integer. Number of items per page

- query parameter `orderby`: string. The properties to order by

- query parameter `filterby`: string. The filter expression to filter by

## Response 200

OK

application/json

```json
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "entityId": "123e4567-e89b-12d3-a456-426614174000",
    "entityType": "tasks",
    "entity": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "string"
    },
    "project": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "string"
    },
    "task": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "string"
    },
    "document": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "string"
    },
    "createdOn": "2026-01-15T09:30:00Z",
    "createdBy": "123e4567-e89b-12d3-a456-426614174000",
    "user": {
      "id": "80a2b26b-9fb3-42b5-b6dc-126c437cad5d",
      "firstName": "Carla",
      "lastName": "Creative",
      "hasImage": true,
      "isExternal": true
    },
    "agentId": "123e4567-e89b-12d3-a456-426614174000",
    "agentNameSnapshot": "string",
    "updatedOn": "2026-01-15T09:30:00Z",
    "updatedBy": "123e4567-e89b-12d3-a456-426614174000",
    "mentions": {
      "isMentioningPersonalAgent": true,
      "users": [
        {
          "id": "80a2b26b-9fb3-42b5-b6dc-126c437cad5d",
          "firstName": "Carla",
          "lastName": "Creative",
          "hasImage": true,
          "isExternal": true
        }
      ],
      "agentIds": [
        "123e4567-e89b-12d3-a456-426614174000"
      ],
      "everyUserHadPermissions": true
    },
    "reactions": [
      {
        "userId": "123e4567-e89b-12d3-a456-426614174000",
        "emoji": "👍"
      }
    ],
    "formattedMessage": "Hey team, the customer loved the latest designs!",
    "plainFormattedMessage": "Hey team, the customer loved the latest designs!",
    "resourceVersion": 637825154598057900,
    "message": "Hey team, the customer loved the latest designs!",
    "userId": "123e4567-e89b-12d3-a456-426614174000",
    "previews": [
      "https://www.awork.com/en/blog/automatic-project-management/"
    ],
    "isHiddenForConnectUsers": true,
    "isResolved": true,
    "inReplyToCommentId": "123e4567-e89b-12d3-a456-426614174000"
  }
]
```

## Response 400

Bad Request

application/json

```json
{
  "code": "not-found",
  "description": "There is no matching path for this URL.",
  "link": "https://developers.awork.com",
  "details": [
    "No project with the id '123' exists."
  ],
  "validationErrors": [
    {
      "property": "FirstName",
      "message": "FirstName is required."
    }
  ],
  "traceId": "a65ce5745df02af216715ff06661fb3a"
}
```

## Response 401

Unauthorized

application/json

```json
{
  "code": "not-found",
  "description": "There is no matching path for this URL.",
  "link": "https://developers.awork.com",
  "details": [
    "No project with the id '123' exists."
  ],
  "validationErrors": [
    {
      "property": "FirstName",
      "message": "FirstName is required."
    }
  ],
  "traceId": "a65ce5745df02af216715ff06661fb3a"
}
```
