Menu

Referência da API · Tarefas

Packs

task_management · packs · 12 operações

GET/v1/tasks/packs

List task packs

task_management.packs.list

LeituraIdempotenteDesde 2026-11-01

Lists task packs (reusable lists of tasks with deadlines relative to an anchor date) in their manual order, paginated by cursor: the organization's own (source org, default) or the published templates of the MB Suite library (source system), which can be applied directly or cloned into the organization. A pack carries name, description, color, labels and item_count; its tasks are in task_management.packs.items.list. Every pack of the organization comes, ordered by order ascending: a pack saved without a position (older packs) counts as 0 and comes back with order 0, and ties go by id. That holds up to 200 packs; an organization with more is listed by its stored position, and a pack without one is left out. Cost: the organization's packs are read whole (one read per pack, up to 200, plus one); the library, one read per pack of the page.

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

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

Parâmetros

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.

sourceenumqueryopcional

org: the organization's own packs; system: MB Suite's library.

Valores: org, system · Padrão: "org"

Resposta

dataarray<object>
has_moreboolean
next_cursorstring

Erros

Exemplo

curl "https://api.mb-suite.com/v1/tasks/packs" \
  -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/packs" \
  -H "Authorization: Bearer $MB_TEST_KEY"
GET/v1/tasks/packs/{pack_id}

Get one task pack

task_management.packs.get

LeituraIdempotenteDesde 2026-11-01

Returns one task pack: the organization's, or a published one of the MB Suite library (is_system_pack). Without source it looks in the organization first and then in the library. Its tasks are in task_management.packs.items.list.

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

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

Parâmetros

pack_idstringrotaobrigatório

The pack's id (from task_management.packs.list).

sourceenumqueryopcional

org: the organization's own packs; system: MB Suite's library.

Valores: org, system

Resposta

idstring
namestring
descriptionstring | null
colorstring | null
ordernumber
label_idsarray<string>
item_countnumber
created_by_idstring | null
created_atnumber
updated_atnumber
is_system_packboolean

Erros

Exemplo

curl "https://api.mb-suite.com/v1/tasks/packs/{pack_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 "https://api.mb-suite.com/v1/tasks/packs/{pack_id}" \
  -H "Authorization: Bearer $MB_TEST_KEY"
GET/v1/tasks/packs/{pack_id}/items

List the tasks of a pack

task_management.packs.items.list

LeituraIdempotenteDesde 2026-11-01

Lists the items of a task pack in order: title, description, days_offset (days from the anchor date when applied; negative, zero or positive), priority, subtasks and recurrence. Works for the organization's packs and the published library packs.

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

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

Parâmetros

pack_idstringrotaobrigatório

The pack's id (from task_management.packs.list).

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.

sourceenumqueryopcional

org: the organization's own packs; system: MB Suite's library.

Valores: org, system

Resposta

dataarray<object>
has_moreboolean
next_cursorstring

Erros

Exemplo

curl "https://api.mb-suite.com/v1/tasks/packs/{pack_id}/items" \
  -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/packs/{pack_id}/items" \
  -H "Authorization: Bearer $MB_TEST_KEY"
POST/v1/tasks/packs

Create a task pack

task_management.packs.create

EscritaDesde 2026-11-01

Creates an empty task pack at the end of the organization's list, owned by the caller: name, optional description, color (hex, default #3b82f6) and pack labels (unknown label ids are ignored). Add its tasks with task_management.packs.items.add. Returns the pack.

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

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

Parâmetros

namestringcorpoobrigatório

The pack's name (up to 120 characters).

descriptionstringcorpoopcional

What the pack is for.

colorstringcorpoopcional

A hex color like #3b82f6.

label_idsarray<string>corpoopcional

Pack label ids (the app's pack labels); ids that do not exist are ignored.

Resposta

pack_idstring
packobject

Erros

Exemplo

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

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/packs" \
  -H "Authorization: Bearer $MB_TEST_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "name": "NAME"
}'
PATCH/v1/tasks/packs/{pack_id}

Update a task pack

task_management.packs.update

EscritaDesde 2026-11-01

Changes one of the organization's task packs. Send the fields to change inside updates: name, description, color (hex like #3b82f6) or label_ids (pack labels; unknown ids are ignored); only what you send changes. Any other key inside updates is rejected (400 invalid_input). To edit the tasks of the pack use task_management.packs.items.update. Returns the pack.

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

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

Parâmetros

pack_idstringrotaobrigatório

The id of one of the organization's packs (task_management.packs.list).

updatesobjectcorpoobrigatório

The fields to change (at least one).

Resposta

packobject

Erros

Exemplo

curl -X PATCH "https://api.mb-suite.com/v1/tasks/packs/{pack_id}" \
  -H "Authorization: Bearer $MB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "updates": {}
}'

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/packs/{pack_id}" \
  -H "Authorization: Bearer $MB_TEST_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "updates": {}
}'
DELETE/v1/tasks/packs/{pack_id}

Delete a task pack

task_management.packs.delete

IrreversívelDesde 2026-11-01

Deletes one of the organization's task packs with all its items. It goes to the 30-day trash and comes back whole (items included). Tasks already created from the pack are not touched. 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_packs_deleteNa superfície completa; na compacta, mb_execute_operation com id: "task_management.packs.delete".

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

Parâmetros

pack_idstringrotaobrigatório

The id of one of the organization's packs (task_management.packs.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/packs/{pack_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/packs/{pack_id}" \
  -H "Authorization: Bearer $MB_TEST_KEY"
POST/v1/tasks/packs/{pack_id}/duplicate

Duplicate a task pack

task_management.packs.duplicate

EscritaDesde 2026-11-01

Copies one of the organization's task packs with all its items into a new pack named '<name> (Copy)' (the suffix in the caller's language: '(Copia)', '(Copy)' or '(Cópia)'), owned by the caller. Returns pack_id and the new pack.

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

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

Parâmetros

pack_idstringrotaobrigatório

The id of one of the organization's packs (task_management.packs.list).

Resposta

pack_idstring
packobject

Erros

Exemplo

curl -X POST "https://api.mb-suite.com/v1/tasks/packs/{pack_id}/duplicate" \
  -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 POST "https://api.mb-suite.com/v1/tasks/packs/{pack_id}/duplicate" \
  -H "Authorization: Bearer $MB_TEST_KEY"
POST/v1/tasks/packs/system/{system_pack_id}/clone

Copy a library pack into the organization

task_management.packs.clone_system

EscritaDesde 2026-11-01

Copies a published task pack of the MB Suite library (an id from task_management.packs.list with source system) into the organization, items included, so it can be edited. Drafts of the library cannot be copied. Returns pack_id and the new pack.

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

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

Parâmetros

system_pack_idstringrotaobrigatório

A pack of MB Suite's library (task_management.packs.list with source system).

Resposta

pack_idstring
packobject

Erros

Exemplo

curl -X POST "https://api.mb-suite.com/v1/tasks/packs/system/{system_pack_id}/clone" \
  -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 POST "https://api.mb-suite.com/v1/tasks/packs/system/{system_pack_id}/clone" \
  -H "Authorization: Bearer $MB_TEST_KEY"
POST/v1/tasks/packs/{pack_id}/apply

Create the tasks of a pack

task_management.packs.apply

EscritaEm massa · até 200Desde 2026-11-01

Creates one task per item of a pack (the organization's or a published library pack), due on anchor_date + the item's days_offset days, with the item's subtasks, priority and recurrence. target says where they go: the workspace (default), one of its Accounts (kind account + account_id) or private. Every task is assigned to default_assignee_id (default: the caller; null leaves them unassigned); items can override their assignee or due date, or be skipped (include: false). Subtasks are created unassigned, like in the app. Up to 200 items and 1,000 tasks with subtasks. Outside the app it requires a dry run (which lists the tasks and dates) and a confirm_token. Returns tasks_created (the top-level tasks, whose ids come in task_ids), subtasks_created and has_stale_end_date (a recurrence end date already past was dropped).

Pede confirmação: primeiro dry_run: true (prévia e confirm_token, válido por 10 minutos e por uma única execução), depois o mesmo corpo com confirm_token. Em algumas poucas, só com certos dados: a descrição diz quando. Por que e como: Prévia e confirmação.

Escopo
task_management:write
Permissão
Editar no módulo
Tool do MCP
task_management_packs_applyNa superfície completa; na compacta, mb_execute_operation com id: "task_management.packs.apply".
Eventos que pode emitir
task_management.task.created

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

Parâmetros

pack_idstringrotaobrigatório

The pack's id (from task_management.packs.list).

anchor_dateintegercorpoobrigatório

The anchor date, epoch ms: each task is due anchor_date + its days_offset.

sourceenumcorpoopcional

org or system; without it, the organization's packs first and then MB Suite's library.

Valores: org, system

targetobjectcorpoopcional

Where the tasks are created (default: the workspace).

Padrão: {"kind":"workspace"}

label_idsarray<string>corpoopcional

Task label ids (from task_management.labels.list); ids that do not exist are ignored.

default_assignee_idstring | nullcorpoopcional
itemsarray<object>corpoopcional

Settings per item; the items left out are created with their defaults.

Resposta

tasks_creatednumber

Top-level tasks created (their ids come in task_ids).

subtasks_creatednumber

Subtasks created under them.

task_idsarray<string>
has_stale_end_dateboolean

true when an item's recurrence end date was already past: those series repeat with no end.

Erros

Exemplo

curl -X POST "https://api.mb-suite.com/v1/tasks/packs/{pack_id}/apply" \
  -H "Authorization: Bearer $MB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "anchor_date": 0,
  "dry_run": true
}'

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/packs/{pack_id}/apply" \
  -H "Authorization: Bearer $MB_TEST_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "anchor_date": 0,
  "dry_run": true
}'
POST/v1/tasks/packs/{pack_id}/items

Add a task to a pack

task_management.packs.items.add

EscritaDesde 2026-11-01

Adds an item to one of the organization's task packs: title, description, days_offset (days from the anchor date when the pack is applied), priority, subtasks (titles) and recurrence; at the end of the pack unless order is given. Returns the item.

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

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

Parâmetros

pack_idstringrotaobrigatório

The id of one of the organization's packs (task_management.packs.list); library packs are read only.

titlestringcorpoobrigatório

The title of the task it creates.

days_offsetintegercorpoobrigatório

Days from the anchor date when the pack is applied (negative, zero or positive): the task is due anchor_date + days_offset.

descriptionstringcorpoopcional

The description of the task it creates.

priority_idstring | nullcorpoopcional
subtasksarray<object>corpoopcional

Subtasks the task is created with (up to 50).

recurrenceobjectcorpoopcional

Repeats the task: when it is completed, the next instance is created with the next due date.

orderintegercorpoopcional

Position in the pack; without it, at the end.

Resposta

item_idstring
itemobject

Erros

Exemplo

curl -X POST "https://api.mb-suite.com/v1/tasks/packs/{pack_id}/items" \
  -H "Authorization: Bearer $MB_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "title": "TITLE",
  "days_offset": 0
}'

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/packs/{pack_id}/items" \
  -H "Authorization: Bearer $MB_TEST_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "title": "TITLE",
  "days_offset": 0
}'
PATCH/v1/tasks/packs/{pack_id}/items/{item_id}

Edit a task of a pack

task_management.packs.items.update

EscritaDesde 2026-11-01

Changes an item of one of the organization's task packs. Send the fields to change inside updates: title, description (the description of the task it creates, up to 5,000 characters; an empty text clears it), days_offset, priority_id (null clears it), subtasks (the whole list of titles), recurrence (null removes it) or order; only what you send changes. Any other key inside updates is rejected (400 invalid_input); a field sent next to updates instead of inside it is ignored, and without updates the call is 400 invalid_input. Returns the item with its fields.

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

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

Parâmetros

pack_idstringrotaobrigatório

The id of one of the organization's packs (task_management.packs.list); library packs are read only.

item_idstringrotaobrigatório

The item's id (from task_management.packs.items.list).

updatesobjectcorpoobrigatório

The fields to change (at least one).

Resposta

itemobject

Erros

Exemplo

curl -X PATCH "https://api.mb-suite.com/v1/tasks/packs/{pack_id}/items/{item_id}" \
  -H "Authorization: Bearer $MB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "updates": {}
}'

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/packs/{pack_id}/items/{item_id}" \
  -H "Authorization: Bearer $MB_TEST_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "updates": {}
}'
DELETE/v1/tasks/packs/{pack_id}/items/{item_id}

Remove a task from a pack

task_management.packs.items.delete

IrreversívelDesde 2026-11-01

Removes an item from one of the organization's task packs (tasks already created from it are not touched). 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_packs_items_deleteNa superfície completa; na compacta, mb_execute_operation com id: "task_management.packs.items.delete".

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

Parâmetros

pack_idstringrotaobrigatório

The id of one of the organization's packs (task_management.packs.list); library packs are read only.

item_idstringrotaobrigatório

The item's id (from task_management.packs.items.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/packs/{pack_id}/items/{item_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/packs/{pack_id}/items/{item_id}" \
  -H "Authorization: Bearer $MB_TEST_KEY"