Skip to content
DocsComments

API reference

Comments

Comments on tasks. Endpoints, parameters, examples and errors.

View as Markdown

Comments on tasks. Everyone in the project can comment, viewers included. Comments are kept as written: they cannot be edited or deleted.

List a task’s comments

#

Lists the comments on a task, newest first (or oldest first), a page at a time.

HTTP
GET /api/v1/tasks/{taskId}/comments
  • Scopes: tasks:read
  • Who: Viewer or above in the project
  • Project-limited credentials: allowed inside the credential’s projects; anything else is not_found
  • Retries: a read; safe to repeat
  • Rate limit: the read bucket

Lists every comment on a task, newest first unless order is oldest, in pages of up to 100. A comment shows who wrote it, when, and through which app (via). get_task with include=comments returns the newest 20 with a cursor that continues here (order newest).

Parameters

#
NameInTypeRequiredDescription
taskIdpathid (task_…)YesTask id: task_ followed by 32 lowercase hex digits, for example task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
orderquery"newest" or "oldest"Nonewest first (the default) or oldest first.
limitqueryinteger, 1–100NoHow many to return, 1–100, for example 50. Defaults to 50 (25 over MCP).
cursorquerystringNoThe nextCursor from the previous page, to read the next one. Leave it out for the first page; start again without it when you change filters. Up to 2,048 characters.

Response

#

200 with a list of Comment objects; while hasMore is true, pass nextCursor back as cursor (with the same filters) for the next page.

FieldTypeDescription
object"list"
hasMorebooleanTrue when there is a next page.
nextCursorstring or nullPass it as cursor to read the next page; null on the last page.
dataarray of Comment

Headers it sends: Link.

Errors

#
StatusCodeMeaning
400invalid_idThe id is for a different kind of resource
400invalid_cursorThe cursor is not valid
403insufficient_scopeThe credential lacks the required access
404not_foundNot found

And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.

Example

#
curl https://taskloader.com/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/comments \
  -H "Authorization: Bearer $TASKLOADER_API_KEY"
HTTP
HTTP/1.1 200 OK
Content-Type: application/json

{
  "object": "list",
  "data": [
    {
      "object": "comment",
      "id": "cmt_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "taskId": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
      "task": {
        "id": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
        "key": "TL-012",
        "ref": "northwind/website-launch/TL-012",
        "title": "Write the launch announcement"
      },
      "body": "The draft is in the shared folder. Can someone check the dates?",
      "author": {
        "userId": "usr_kq3Xb1W9pZ0aLm7c",
        "name": "Maya Chen"
      },
      "via": {
        "channel": "web",
        "label": null
      },
      "createdAt": "2026-11-18T10:00:00.123Z"
    }
  ],
  "hasMore": false,
  "nextCursor": null
}

Comment on a task

#

Adds a comment to a task’s history and returns it.

HTTP
POST /api/v1/tasks/{taskId}/comments
  • Scopes: comments:write
  • Who: Viewer or above in the project
  • Project-limited credentials: allowed inside the credential’s projects; anything else is not_found
  • Retries: send Idempotency-Key to make retries safe
  • Rate limit: the write bucket
  • MCP tool: add_comment

Adds a comment, 1 to 5,000 characters of plain text with line breaks, to a task. Viewers can comment too. It appears in the task’s history in the app, attributed to you and the app or key you used. Send an Idempotency-Key so a retry never posts it twice.

Parameters

#
NameInTypeRequiredDescription
taskIdpathid (task_…)YesTask id: task_ followed by 32 lowercase hex digits, for example task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
Idempotency-KeyheaderstringNoMakes a retry safe: the same key with the same request within 24 hours returns the first answer (with Idempotent-Replayed: true) instead of acting twice. 1 to 255 printable ASCII characters; a UUID works well. Keys belong to the credential that sent them.

Request body

#

A JSON object. Fields not listed are refused.

FieldTypeRequiredDescription
bodystringYesThe comment: plain text with line breaks, 1–5,000 characters.

Response

#

201 with the new Comment object.

FieldTypeDescription
object"comment"
idid (cmt_…)Comment id: cmt_ followed by 32 lowercase hex digits, for example cmt_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
taskIdid (task_…)Task id: task_ followed by 32 lowercase hex digits, for example task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718.
taskobject or nullThe task it is on, with its ref to cite. null when your credential may comment but not see tasks (it lacks tasks:read): then only taskId names it.
bodystringWhat the person wrote, as plain text with line breaks.
authorobjectWho wrote it.
viaVia
createdAtstring (date-time)RFC 3339 UTC with milliseconds, for example 2026-11-18T10:00:00.123Z.

Headers it sends: Idempotent-Replayed.

Errors

#
StatusCodeMeaning
400invalid_idThe id is for a different kind of resource
400invalid_idempotency_keyThe Idempotency-Key header is not valid
403insufficient_scopeThe credential lacks the required access
404not_foundNot found
409idempotency_key_in_progressThe original request is still running
413payload_too_largeThe request body is too large
415unsupported_media_typeUnsupported media type
422idempotency_key_reusedThe Idempotency-Key was used for another request

And the errors every operation can return: invalid_request, validation_failed, token_in_url, unauthenticated, invalid_token, rate_limited, internal_error, service_unavailable.

Example

#
curl https://taskloader.com/api/v1/tasks/task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718/comments \
  -H "Authorization: Bearer $TASKLOADER_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "body": "The draft is in the shared folder. Can someone check the dates?"
}'
HTTP
HTTP/1.1 201 Created
Content-Type: application/json

{
  "object": "comment",
  "id": "cmt_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "taskId": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
  "task": {
    "id": "task_0b6f1d2a8c9e4f00a1b2c3d4e5f60718",
    "key": "TL-012",
    "ref": "northwind/website-launch/TL-012",
    "title": "Write the launch announcement"
  },
  "body": "The draft is in the shared folder. Can someone check the dates?",
  "author": {
    "userId": "usr_kq3Xb1W9pZ0aLm7c",
    "name": "Maya Chen"
  },
  "via": {
    "channel": "web",
    "label": null
  },
  "createdAt": "2026-11-18T10:00:00.123Z"
}