Add a comment to a task
curl --request POST \ --url https://example.com/api/v1/tasks/example/comments \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "authorMemberId": "example", "content": "example", "createdAt": "2026-04-15T12:00:00Z", "isInternal": true, "parentId": "example" }'Creates a comment authored by the calling member. content accepts Markdown, is stored as sanitized HTML and is returned as Markdown plus contentHtml. Requires the tasks.view permission. isInternal defaults to true. Historical authorMemberId and createdAt require tasks.import; the author must belong to this workspace, and every use is audited against the calling member in the same transaction as comment creation. Providing either historical field suppresses comment and mention notifications. Pass parentId to reply to a top-level comment of the same task: a parent that is missing, deleted or on another task is a 404; a parent that is itself a reply is a 422.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Request Body
Section titled “Request Body”object
Original author member in this workspace; requires tasks.import, is audited and suppresses comment and mention notifications.
Comment body as Markdown. GitHub-Flavored Markdown, converted to sanitized HTML for storage. Survives the round trip: headings (the web editor edits h1-h2 and demotes deeper levels to paragraphs), bold, italic, strikethrough, underline as , inline code, fenced code blocks with a language, links, bullet, numbered and nested lists, task lists, blockquotes, horizontal rules, hard line breaks, tables with header rows (merged cells and complex tables use sanitized inline HTML), images served from /api/v1/files/, member mentions written as @Name, and a Loom, Cap (cap.so or the organization’s own Cap server), Figma, YouTube, Google Docs or GitHub pull-request link standing alone in its paragraph, which becomes an embed. Inline HTML passes through the same sanitizer as the editor. Lost: external image URLs (dropped by the sanitizer), link titles, text alignment.
Original creation instant; requires tasks.import, is audited and suppresses comment and mention notifications.
Id of a top-level comment on the same task to reply to. Threads are one level deep: replying to a reply is rejected.
Responses
Section titled “Responses”The created comment.
object
A comment on a task, with author name resolved.
object
WorkspaceMember id of the author.
Author full name (first + last).
Comment body as Markdown. Markdown rendering of the stored rich text: mentions appear as @Name links and embeds as plain links to their source URL. The stored HTML is returned alongside in the matching *Html field.
The stored sanitized HTML behind content.
Parent comment id for replies.
Example generated
{ "data": { "authorId": "example", "authorName": "example", "content": "example", "contentHtml": "example", "createdAt": "2026-04-15T12:00:00Z", "id": "example", "isInternal": true, "parentId": "example", "updatedAt": "2026-04-15T12:00:00Z" }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Invalid input.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC