Get Task Comments

GET/api/tasks/{id}/comments

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

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area

Parameters

FieldTypeDescription
id Number Task unique ID (URL segment).
curl -X GET "https://yoursite.com/api/tasks/123/comments" \
  -H "authtoken: YOUR_API_TOKEN"

Success-Response:

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"
  }
]

Task-Not-Found:

HTTP/1.1 404 Not Found
{ "status": false, "message": "Task not found" }
MethodGET
Path/api/tasks/{id}/comments
GroupTasks
Sincev3.0.3
Defined inmodules/api/controllers/Tasks.php