# Get Task Comments

`GET /api/tasks/{id}/comments`

Returns the comment thread of a task, oldest first. Requires the Tasks "get" permission.

- **Group:** Tasks
- **Since:** v3.0.3
- **Authentication:** `authtoken` header, created under Setup > API > API Management
- **HTML version:** /apiguide/tasks/get-task-comments/

## Headers

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `authtoken` | String | **required** | Authentication token, generated from admin area |

## Parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | Number | **required** | Task unique ID (URL segment). |

## Example request

```bash
curl -X GET "https://yoursite.com/api/tasks/123/comments" \
  -H "authtoken: YOUR_API_TOKEN"
```

## Success response

### Success-Response:

```json
HTTP/1.1 200 OK
[
  {
    "id": "42",
    "content": "Client approved the quote.",
    "taskid": "18",
    "staffid": "3",
    "contact_id": "0",
    "dateadded": "2026-07-31 10:14:52",
    "file_id": "0"
  }
]
```

## Error responses

### Task-Not-Found:

```json
HTTP/1.1 404 Not Found
{ "status": false, "message": "Task not found" }
```

---

Perfex CRM REST API by Themesic Interactive. Full reference: /apiguide/
