Menú

Referencia de la API · Tareas

Etiquetas

task_management · labels · 4 operaciones

GET/v1/tasks/labels

List task labels

task_management.labels.list

LecturaIdempotenteDesde 2026-11-01

Lists the organization's task labels (id, name, color, order) in their manual order, to filter tasks (label_id) or set label_ids. Create, edit and delete them with task_management.labels.create, update and delete.

Alcance
task_management:read
Permiso
Ver el módulo
Tool del MCP
task_management_labels_listEn la superficie completa; en la compacta, mb_execute_operation con id: "task_management.labels.list".

Costo declarado: hasta 202 lecturas y 0 escrituras por llamada (cuentan en el cupo diario).

Parámetros

limitintegerqueryopcional

Labels per page (1 to 200; default 200: labels are small and one page usually has them all).

Por defecto: 200

cursorstringqueryopcional

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

Respuesta

dataarray<object>
has_moreboolean
next_cursorstring

Errores

Ejemplo

curl "https://api.mb-suite.com/v1/tasks/labels" \
  -H "Authorization: Bearer $MB_API_KEY"

Probar con tu API key de prueba

Con una API key de prueba el pedido va siempre a tu organización de práctica: datos de ejemplo que puedes reiniciar.

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

Create a task label

task_management.labels.create

EscrituraDesde 2026-11-01

Creates a task label (name and an optional #rrggbb color; without it, the next color of the app's palette), at the end of the manual order. Up to 200 labels per organization (409 limit_reached). Returns label_id and the label: use it in label_ids of task_management.tasks.create or update.

Alcance
task_management:write
Permiso
Editar en el módulo
Tool del MCP
task_management_labels_createEn la superficie completa; en la compacta, mb_execute_operation con id: "task_management.labels.create".

Costo declarado: hasta 1 lecturas y 1 escrituras por llamada (cuentan en el cupo diario).

Parámetros

namestringcuerporequerido

The label's name.

colorstringcuerpoopcional

A hex color, #rrggbb (default: the next one of the app's palette).

Respuesta

label_idstring
labelobject

Errores

Ejemplo

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

Probar con tu API key de prueba

Con una API key de prueba el pedido va siempre a tu organización de práctica: datos de ejemplo que puedes reiniciar.

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

Edit a task label

task_management.labels.update

EscrituraIdempotenteDesde 2026-11-01

Renames a task label, changes its color (#rrggbb) or its place in the manual order. Only what is sent changes; the same values change nothing (changed: false). The tasks that carry it keep it. Returns the label.

Alcance
task_management:write
Permiso
Editar en el módulo
Tool del MCP
task_management_labels_updateEn la superficie completa; en la compacta, mb_execute_operation con id: "task_management.labels.update".

Costo declarado: hasta 1 lecturas y 1 escrituras por llamada (cuentan en el cupo diario).

Parámetros

label_idstringrutarequerido

The label's id (from task_management.labels.list).

updatesobjectcuerporequerido

The fields to change.

Respuesta

labelobject
changedboolean

Errores

Ejemplo

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

Probar con tu API key de prueba

Con una API key de prueba el pedido va siempre a tu organización de práctica: datos de ejemplo que puedes reiniciar.

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

Delete a task label

task_management.labels.delete

IrreversibleDesde 2026-11-01

Deletes a task label and removes it from every task that carries it (the tasks are not otherwise changed; up to 5,000, more is 409 too_many_labeled_tasks). The label goes to the 30-day trash with the tasks it was on: platform.trash.restore brings it back. Outside the app it requires a dry run (which says how many tasks carry it) and a confirm_token, except a REST DELETE with a key allowed to delete. Returns tasks_unlabeled.

Con una API key, este DELETE se ejecuta directo: el registro queda 30 días en la papelera y la respuesta trae su trash_item_id. Con un token OAuth, y por el MCP, pide dry_run → confirm_token.

Alcance
task_management:write y «Permitir eliminar» (task_management:delete en OAuth)
Permiso
Editar en el módulo
Tool del MCP
task_management_labels_deleteEn la superficie completa; en la compacta, mb_execute_operation con id: "task_management.labels.delete".

Costo declarado: hasta 5012 lecturas y 5002 escrituras por llamada (cuentan en el cupo diario).

Parámetros

label_idstringrutarequerido

The label's id (from task_management.labels.list).

Respuesta

oktrue
tasks_unlabelednumber
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.

Errores

Ejemplo

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

Probar con tu API key de prueba

Con una API key de prueba el pedido va siempre a tu organización de práctica: datos de ejemplo que puedes reiniciar.

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