Skip to main content
POST
Comment
Posts a comment as you on a task, visible to everyone who can see it. On a canvas, anchor starts a thread on a passage and thread replies in one. A task id from tasks_list (a Slack List item or a Linear issue), or a Slack canvas: a doc_ id from documents_list or its chcv_…/<file> id. Requires the write scope of the target’s concept: tasks:write, documents:write.

Authorizations

x-api-key
string
header
required

An Avazal API key (avz_…) created in Settings → API keys.

Body

application/json
target
string
required

An id from another result: chcv_… (channel or DM), chcv_…@ (message), chcv_…/ (Slack List or canvas), chcv_…// (list item), mthr_ (email thread), mmsg_, mdrf_, mcmp_, mout_, att_, macc_, doc_, drev_, cevt_, cnt_, trg_, arun_, aart_, aask_, blnk_, a Linear issue such as ENG-123, or linear:team:, linear:view:, linear:mine.

anchor
string

Canvas only: text copied from the passage to comment on. Starts a new thread.

Minimum string length: 1
Pattern: ^\S[\s\S]*\S$|^\S$|^$
thread
string

Canvas only: a thread id from comments_list. Posts a reply.

text
string

Plain text. Use this or content.

Minimum string length: 1
content
object

Rich text blocks. Use this or text.

Response

A comment on a task or canvas. Listing a canvas without thread returns its threads, with anchor and replies and no text.

A comment on a task or canvas. Listing a canvas without thread returns its threads, with anchor and replies and no text.

id
string
required

The object's id. Every operation that takes it accepts it.

url
string | null
required

A link that opens the object where it lives.

source
enum<string>
required

Where the object lives. Avazal is the source of its own objects.

Available options:
avazal,
slack,
gmail,
google-calendar,
google-drive,
linear,
github,
contacts
thread
string | null
required

A canvas comment thread's id, to pass as thread. null on task comments.

anchor
string | null
required

The canvas text a thread is attached to.

replies
integer | null
required
Required range: x >= 0
author
object | null
required
markdown
string | null
required
sentAt
string | null
required