Skip to content

Comments

Comments on tasks, projects, deals, contacts and companies. Every request needs an API key; the examples read it from $MAVATU_API_KEY. How lists, dates, money and errors work is in the API guide.

The comment object

A comment on a task, project, deal, contact or company. Comments for the team only are never shown to people from outside it.

objectstring

Always comment.

idstring
item_idstring

What it's on: a task, project, deal, contact…

author{id, name}or null
bodystring

Markdown. Mentions are @[Name](mem_…).

team_onlyboolean

Only the team sees it, not people from outside it who can see the item.

viastringor null

The app it was written through (an AI app, or API), if any.

created_attime
edited_attimeor null
The comment object
{
"object": "comment",
"id": "cmt_01jc8xe6szaeavsntcpm5q1nxw",
"item_id": "tsk_01jc5gqapenecfseczp11hygcp",
"author": {
"id": "mem_01jcm9s346q3d25vt4f5v37e3s",
"name": "Imogen Hale"
},
"body": "Lovely. @[Wren Abbott](mem_01jc3e28jt97kb6cq643dzvmxx), can we lead with the second one?",
"team_only": true,
"via": "API",
"created_at": "2026-11-06T10:02:19Z",
"edited_at": null
}

List comments

GET/comments

The comments on one record (a task, project, deal, contact, company…), newest first.

Filters and paging

item_idstringrequired

The record's ID: tsk_…, prj_…, deal_…, ctc_…, cmp_…

limitinteger

How many to return, 1 to 100. Default 25.

cursorstring

next_cursor from the previous page.

Returns

A list of comments.

GET /comments
curl "https://app.mavatu.com/api/v1/comments?item_id=tsk_01jc5gqapenecfseczp11hygcp" \
-H "Authorization: Bearer $MAVATU_API_KEY"

Add a comment

POST/comments

Comment on a record, in Markdown. Its followers are notified; mention someone with @[Their Name](mem_…) and they're notified and start following. On a record people from outside the team can see, the comment is for the team unless team_only is false.

Needs a key that can read and change. Send an Idempotency-Key to try it again safely.

Body

idstring

Your own ID for it (cmt_…), or leave it out. Sending the same ID again returns the first comment.

item_idstringrequired

The record to comment on.

bodystringrequired

Markdown. Mention someone with @[Their Name](mem_…).

team_onlyboolean

Only for the team, not for people from outside it who can see the record. Default: true when anyone from outside can see it. People from outside the team always write for everyone.

Returns

The comment, with 201 Created.

POST /comments
curl -X POST https://app.mavatu.com/api/v1/comments \
-H "Authorization: Bearer $MAVATU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"item_id": "tsk_01jc5gqapenecfseczp11hygcp",
"body": "Lovely. @[Wren Abbott](mem_01jc3e28jt97kb6cq643dzvmxx), can we lead with the second one?",
"team_only": true
}'

Edit a comment

PATCH/comments/{id}

Change the text of one of the key's person's own comments.

Needs a key that can read and change. Send an Idempotency-Key to try it again safely.

Path

idstringrequired

The comment's ID.

Body

bodystringrequired

The comment's new text, in Markdown.

Returns

The comment.

PATCH /comments/{id}
curl -X PATCH https://app.mavatu.com/api/v1/comments/cmt_01jc8xe6szaeavsntcpm5q1nxw \
-H "Authorization: Bearer $MAVATU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"body": "Lovely. @[Wren Abbott](mem_01jc3e28jt97kb6cq643dzvmxx), can we lead with the second one? Priya liked it best too."
}'