Menu

Referência da API · Tarefas

Comentários

task_management · comments · 4 operações

GET/v1/tasks/{task_id}/comments

List the comments of a task

task_management.comments.list

LeituraIdempotenteDesde 2026-11-01

Lists the comments of a task, oldest first, paginated by cursor: content (sanitized HTML, or plain text in old comments), content_text (plain text), mentions, author and dates (edited_at when the author edited it). Not found if the task does not exist or the caller cannot see it.

Escopo
task_management:read
Permissão
Ver o módulo
Tool do MCP
task_management_comments_listNa superfície completa; na compacta, mb_execute_operation com id: "task_management.comments.list".

Custo declarado: até 204 leituras e 0 escritas por chamada (contam na cota diária).

Parâmetros

task_idstringrotaobrigatório

The task's id (from task_management.tasks.list, or the task_id that tasks.create returns).

limitintegerqueryopcional

Rows per page (1 to 200; default 50).

Padrão: 50

cursorstringqueryopcional

The next_cursor of the previous page, to continue the list; omit it for the first page.

Resposta

dataarray<object>
has_moreboolean
next_cursorstring

Erros

Exemplo

curl "https://api.mb-suite.com/v1/tasks/{task_id}/comments" \
  -H "Authorization: Bearer $MB_API_KEY"

Testar com a sua API key de teste

Com uma API key de teste o pedido vai sempre para a sua organização de prática: dados de exemplo que você pode reiniciar.

curl "https://api.mb-suite.com/v1/tasks/{task_id}/comments" \
  -H "Authorization: Bearer $MB_TEST_KEY"
POST/v1/tasks/{task_id}/comments

Comment on a task

task_management.comments.add

EscritaDesde 2026-11-01

Adds a comment to a task as the caller. content is HTML (sanitized: formatting, links and mention chips survive, scripts do not) or plain text, up to 10,000 characters. mentions are user ids of people with access to the organization: each one gets an in-app notification linking to the task (other ids are ignored). Returns the new comment.

Escopo
task_management:write
Permissão
Editar no módulo
Tool do MCP
task_management_comments_addNa superfície completa; na compacta, mb_execute_operation com id: "task_management.comments.add".
Eventos que pode emitir
task_management.comment.added

Custo declarado: até 6 leituras e 2 escritas por chamada (contam na cota diária).

Parâmetros

task_idstringrotaobrigatório

The task's id (from task_management.tasks.list, or the task_id that tasks.create returns).

contentstringcorpoobrigatório

HTML (sanitized) or plain text, up to 10,000 characters.

mentionsarray<string>corpoopcional

People mentioned (uids of members, members.members.list): each gets a notice in the app.

Resposta

comment_idstring
commentobject

Erros

Exemplo

curl -X POST "https://api.mb-suite.com/v1/tasks/{task_id}/comments" \
  -H "Authorization: Bearer $MB_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "content": "CONTENT"
}'

Testar com a sua API key de teste

Com uma API key de teste o pedido vai sempre para a sua organização de prática: dados de exemplo que você pode reiniciar.

curl -X POST "https://api.mb-suite.com/v1/tasks/{task_id}/comments" \
  -H "Authorization: Bearer $MB_TEST_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "content": "CONTENT"
}'
PATCH/v1/tasks/{task_id}/comments/{comment_id}

Edit a comment

task_management.comments.edit

EscritaDesde 2026-11-01

Replaces the content (and mentions) of a comment; it is marked as edited. Only its author can edit it (403 comment_author_only otherwise). Only newly added mentions are notified. Returns the edited comment.

Escopo
task_management:write
Permissão
Editar no módulo
Tool do MCP
task_management_comments_editNa superfície completa; na compacta, mb_execute_operation com id: "task_management.comments.edit".

Custo declarado: até 6 leituras e 1 escritas por chamada (contam na cota diária).

Parâmetros

task_idstringrotaobrigatório

The task's id (from task_management.tasks.list, or the task_id that tasks.create returns).

comment_idstringrotaobrigatório

The comment's id (from task_management.comments.list).

contentstringcorpoobrigatório

HTML (sanitized) or plain text, up to 10,000 characters.

mentionsarray<string>corpoopcional

People mentioned (uids of members, members.members.list): each gets a notice in the app.

Resposta

commentobject

Erros

Exemplo

curl -X PATCH "https://api.mb-suite.com/v1/tasks/{task_id}/comments/{comment_id}" \
  -H "Authorization: Bearer $MB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "content": "CONTENT"
}'

Testar com a sua API key de teste

Com uma API key de teste o pedido vai sempre para a sua organização de prática: dados de exemplo que você pode reiniciar.

curl -X PATCH "https://api.mb-suite.com/v1/tasks/{task_id}/comments/{comment_id}" \
  -H "Authorization: Bearer $MB_TEST_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "content": "CONTENT"
}'
DELETE/v1/tasks/{task_id}/comments/{comment_id}

Delete a comment

task_management.comments.delete

IrreversívelDesde 2026-11-01

Deletes a comment of a task. Its author can always delete it; an owner or admin can delete anyone's (403 comment_delete_denied otherwise). It stays 30 days in the trash. Outside the app it needs a dry run and a confirm_token, except a REST DELETE with a key allowed to delete.

Com uma API key, este DELETE roda direto: o registro fica 30 dias na lixeira e a resposta traz o seu trash_item_id. Com um token OAuth, e pelo MCP, pede dry_run → confirm_token.

Escopo
task_management:write e «Permitir exclusões» (task_management:delete no OAuth)
Permissão
Editar no módulo
Tool do MCP
task_management_comments_deleteNa superfície completa; na compacta, mb_execute_operation com id: "task_management.comments.delete".

Custo declarado: até 4 leituras e 2 escritas por chamada (contam na cota diária).

Parâmetros

task_idstringrotaobrigatório

The task's id (from task_management.tasks.list, or the task_id that tasks.create returns).

comment_idstringrotaobrigatório

The comment's id (from task_management.comments.list).

Resposta

oktrue
trash_item_idstring

The trash item this deletion left: the item_id of platform.trash.restore (POST /trash/{item_id}/restore). Missing if nothing went to the trash.

trash_item_idsarray<string>

Only when the deletion left more than one copy: all of them, the first being trash_item_id.

trash_expires_atnumber

When the copy leaves the trash for good (epoch ms): 30 days after the deletion.

Erros

Exemplo

curl -X DELETE "https://api.mb-suite.com/v1/tasks/{task_id}/comments/{comment_id}" \
  -H "Authorization: Bearer $MB_API_KEY"

Testar com a sua API key de teste

Com uma API key de teste o pedido vai sempre para a sua organização de prática: dados de exemplo que você pode reiniciar.

curl -X DELETE "https://api.mb-suite.com/v1/tasks/{task_id}/comments/{comment_id}" \
  -H "Authorization: Bearer $MB_TEST_KEY"