La documentación para desarrolladores está disponible en inglés.
Boards and tasks
Boards, board categories, statuses, labels, milestones, views, tasks, assignees, watchers, checklists, task milestones, the archive and automations.
A bot works with task boards like a person, within the permissions of its roles and the overrides on the board. It creates and runs tasks, assigns people, comments, keeps checklists and milestones, and reads the journal and automation rules. A bot can be a task's assignee, and it can be let into a private board personally.
| Action | Permission |
|---|---|
| see a board and its tasks | VIEW_BOARD |
| create tasks; edit its own and those it is assigned to | CREATE_TASKS |
| edit, move and archive any task | EDIT_TASKS |
report a release from CI (POST …/releases) | EDIT_TASKS |
| statuses, labels, milestones, settings, board features, the board archive | MANAGE_BOARD |
| create a board, board categories | CREATE_BOARDS |
| the board journal | MANAGE_BOARD, EDIT_TASKS or VIEW_JOURNALS |
| the rule run log | MANAGE_BOARD |
Routes
| Method | Path | What it does |
|---|---|---|
GET | /api/workspaces/{id}/boards | Boards the bot sees (?archived=1 — archived ones) → {boards} |
POST | /api/workspaces/{id}/boards | Create a board → 201 {board} (CREATE_BOARDS) |
GET | /api/boards/{id} | A board with statuses, labels, milestones and views → {board} |
PATCH | /api/boards/{id} | Board settings, features, estimate scale (MANAGE_BOARD) |
DELETE | /api/boards/{id} | Move the board to the archive (MANAGE_BOARD) |
POST | /api/boards/{id}/restore | Restore a board from the archive |
PUT | /api/boards/{id}/position | The board's place in the list |
GET | /api/boards/{id}/permissions | The board's permission overrides (read-only) |
GET | /api/workspaces/{id}/board-categories | Board categories → {categories} |
POST | /api/workspaces/{id}/board-categories | Create a board category (CREATE_BOARDS) |
PATCH | /api/board-categories/{id} | Change a board category |
DELETE | /api/board-categories/{id} | Delete a board category |
PUT | /api/workspaces/{id}/boards/order | Order boards and categories in one operation |
POST | /api/boards/{id}/statuses | Add a status (MANAGE_BOARD, ≤ 20) |
PATCH | /api/boards/{id}/statuses/{sid} | Change a status |
DELETE | /api/boards/{id}/statuses/{sid} | Delete a status (?move_to=<sid> — where its tasks go) |
POST | /api/boards/{id}/labels | Add a label (≤ 50) |
PATCH | /api/boards/{id}/labels/{sid} | Change a label |
DELETE | /api/boards/{id}/labels/{sid} | Delete a label |
POST | /api/boards/{id}/milestones | Add a board milestone (MANAGE_BOARD, ≤ 50) |
PATCH | /api/boards/{id}/milestones/{sid} | Change a board milestone |
DELETE | /api/boards/{id}/milestones/{sid} | Delete a board milestone |
GET | /api/boards/{id}/projects | The board's projects with description and progress → {projects} |
POST | /api/boards/{id}/projects | Add a project {name, description?, status?, leadId?, startOn?, targetOn?} (EDIT_TASKS, ≤ 500) |
PATCH | /api/boards/{id}/projects/{sid} | Change a project |
DELETE | /api/boards/{id}/projects/{sid} | Delete a project (its tasks stay, without a project) |
POST | /api/tasks/{id}/convert-to-project | A task with subtasks → a project of its board (MANAGE_BOARD); the subtasks move into the project, the task is archived → {project, moved, board} |
GET | /api/boards/{id}/views | Shared views and the bot's own → {views} |
POST | /api/boards/{id}/views | Create a view |
PATCH | /api/boards/{id}/views/{sid} | Change a view |
DELETE | /api/boards/{id}/views/{sid} | Delete a view |
POST | /api/boards/{id}/files | Upload a file for a task description or comment → {file} |
GET | /api/boards/{id}/activity | The board journal, oldest first; &format=csv exports it |
GET | /api/boards/{id}/tasks | Board tasks: ?filter=&archived=1&updated_after=&cursor=&limit= → {tasks, nextCursor} |
POST | /api/boards/{id}/tasks | Create a task → 201 TaskResponse (CREATE_TASKS) |
GET | /api/tasks/{id} | A task with subtasks, relations, parent and comment room |
PATCH | /api/tasks/{id} | Change task fields |
POST | /api/tasks/{id}/archive | Archive a task |
POST | /api/tasks/{id}/restore | Restore a task from the archive |
PUT | /api/tasks/{id}/assignees | The full assignee list {assignees: [{userId, isLead, note}]} |
PUT | /api/tasks/{id}/approvers | Approvers and the quorum (a bot is never an approver itself) |
PUT | /api/tasks/{id}/relations | Add a relation {relatedId, kind} |
DELETE | /api/tasks/{id}/relations | Remove a relation ?related_id=&kind= |
PUT | /api/tasks/{id}/subscription | The bot's subscription to the task {muted} |
PUT | /api/tasks/{id}/watchers | Add a watcher {userId} (≤ 50) |
DELETE | /api/tasks/{id}/watchers | Remove a watcher ?user_id= |
PUT | /api/tasks/{id}/read | Mark the task read |
GET | /api/tasks/{id}/activity | Comments and the task journal: ?before=&limit=&only=journal|comments |
GET | /api/t/{key} | A task by key FNG-12 (with its board and room) |
GET | /api/me/tasks | The bot's tasks: ?workspace_id=&scope=assigned|lead|created|subscribed&open=1&cursor= |
GET | /api/workspaces/{id}/tasks/search | Search tasks by key and words: ?q=&limit= (≤ 50) → {tasks} |
POST | /api/tasks/{id}/checklists | Add a checklist {title, position?} |
PATCH | /api/checklists/{id} | Change a checklist |
DELETE | /api/checklists/{id} | Delete a checklist |
POST | /api/checklists/{id}/items | Add an item {text, position?} |
PATCH | /api/checklist-items/{id} | Change an item: text, done, position, checklistId |
DELETE | /api/checklist-items/{id} | Delete an item |
POST | /api/checklist-items/{id}/convert | Turn an item into a subtask |
POST | /api/tasks/{id}/milestones | Add a task milestone {name, dueOn?} → {milestone, task} |
PATCH | /api/task-milestones/{id} | Change a task milestone {name?, dueOn?, position?, completed?} |
DELETE | /api/task-milestones/{id} | Delete a task milestone |
GET | /api/boards/{id}/rules | The board's automation rules (VIEW_BOARD) |
GET | /api/rules/{id}/runs | A rule's run log (MANAGE_BOARD) |
PUT | /api/boards/{id}/permissions | The board's permission overrides as a whole (MANAGE_BOARD; only bits you hold) |
POST | /api/boards/{id}/rules | Create an automation rule (MANAGE_BOARD, Team plan and above) |
PATCH | /api/rules/{id} | Change, enable or disable a rule (MANAGE_BOARD) |
DELETE | /api/rules/{id} | Delete a rule (MANAGE_BOARD) |
POST | /api/rules/{id}/test | Dry-run a rule on a task {taskId} → {matches, actions} (MANAGE_BOARD) |
GET | /api/boards/{id}/git | The board's Git link, without the secret (MANAGE_BOARD + MANAGE_INTEGRATIONS) |
PUT | /api/boards/{id}/git | Connect a repository {provider, secret?} → the secret once |
DELETE | /api/boards/{id}/git | Disconnect the repository |
PATCH | /api/boards/{id}/git | The GitLab backlink {backlink?, apiToken?, gitlabUrl?} (the token is never returned) |
POST | /api/boards/{id}/releases | A release from CI {name, sha, commits[], url, environment, taskKeys?} (EDIT_TASKS), see Releases from CI |
GET | /api/boards/{id}/releases | The board's releases, newest first (?environment=prod&limit=) |
GET | /api/boards/{id}/webhook | The board webhook (MANAGE_BOARD), see Webhooks |
PUT | /api/boards/{id}/webhook | Create or replace the board webhook (+ MANAGE_INTEGRATIONS) |
DELETE | /api/boards/{id}/webhook | Delete the board webhook |
POST | /api/boards/{id}/webhook/ping | Test the board webhook |
GET | /api/tasks/{id}/mention-access | — |
Not available to bots
These routes answer a bot with 403 BOT_NOT_ALLOWED, whatever permissions it has:
- the final delete
DELETE /api/boards/{id}?purge=1and taking overPOST /api/boards/{id}/take-over; - voting on an approval
POST /api/tasks/{id}/approval— a bot never approves tasks (only on behalf of its owner).
Everything else goes by permissions: a bot sets up automations, Git, the webhook and board access like a person with MANAGE_BOARD (plus the workspace's MANAGE_INTEGRATIONS for Git and the webhook). Without the permission it is the ordinary 403 naming it. The server shows the Git and webhook secret once, to whoever set it — keep it like a password.
Create a task
CreateTaskRequest: title (1..200), description (≤ 20,000, markdown-lite), statusId (empty = the default status), priority (TASK_PRIORITY_NONE…TASK_PRIORITY_URGENT), assignees, labelIds, startOn / dueOn (YYYY-MM-DD), estimate, parentId, milestoneId, attachmentIds, approverIds, approvalRequired, fromMessageId (create from a message the bot can see).
curl -s -X POST $CALAB/api/boards/$BOARD/tasks \
-H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' \
-d "{\"title\": \"Renew certificates\", \"priority\": \"TASK_PRIORITY_HIGH\", \"dueOn\": \"2026-10-20\",
\"assignees\": [{\"userId\": \"$USER\", \"isLead\": true}]}"import { TaskPriority } from '@calaba/protocol';
const task = await bot.tasks.create(boardId, {
title: 'Renew certificates',
priority: TaskPriority.HIGH,
dueOn: '2026-10-20',
assignees: [{ userId, isLead: true }],
});
await bot.tasks.comment(task, 'On it. I will remind you a day before the due date.');r = requests.post(f"{CALAB}/api/boards/{board_id}/tasks", headers=H, json={
"title": "Renew certificates", "priority": "TASK_PRIORITY_HIGH", "dueOn": "2026-10-20",
"assignees": [{"userId": user_id, "isLead": True}],
})
task = r.json()["task"]Response 201 is a TaskResponse {task, subtasks, related, parent, room}:
{
"task": {
"id": "0192b7e0-0000-7000-8000-0000000000dd",
"boardId": "0192a000-0000-7000-8000-0000000000bb",
"number": 42,
"key": "OPS-42",
"title": "Renew certificates",
"description": "",
"statusId": "0192a000-0000-7000-8000-0000000000c1",
"priority": "TASK_PRIORITY_HIGH",
"assignees": [{"userId": "0191c2d3-0000-7000-8000-000000000042", "isLead": true, "note": "", "assignedBy": "0192a1b2-3c4d-7e5f-8a9b-0c1d2e3f4a5b", "assignedAt": "2026-10-14T10:00:00Z"}],
"createdBy": "0192a1b2-3c4d-7e5f-8a9b-0c1d2e3f4a5b",
"dueOn": "2026-10-20",
"roomId": "0192b7e0-0000-7000-8000-0000000000ee",
"checklistTotal": 0,
"checklistDone": 0,
"milestones": [],
"taskMilestoneId": "",
"watcherIds": [],
"createdAt": "2026-10-14T10:00:00Z"
},
"subtasks": [],
"related": []
}A task comment is an ordinary message in the task's hidden room task.roomId: the same message routes and reactions; files go through POST /api/boards/{id}/files. The SDK's bot.tasks.comment(task, text) does this for you.
Update and find
await bot.tasks.update(task.id, { statusId: doneStatusId });
await bot.tasks.setAssignees(task.id, [{ userId, isLead: true, note: 'owns the renewal' }]);
const found = await bot.tasks.search(wsId, 'OPS-42');
const { task: t, subtasks } = await bot.tasks.get(task.id);
const all = await bot.tasks.list(boardId); // every pagecurl -s -X PATCH $CALAB/api/tasks/$TASK -H "Authorization: Bearer $TOKEN" \
-H 'Content-Type: application/json' -d "{\"statusId\": \"$DONE\"}"
curl -s "$CALAB/api/workspaces/$WS/tasks/search?q=OPS-42" -H "Authorization: Bearer $TOKEN"
curl -s $CALAB/api/t/OPS-42 -H "Authorization: Bearer $TOKEN"GET /api/boards/{id}/tasks returns up to 500 tasks per page (by status, then position); an empty nextCursor means the last page. filter is a JSON TaskFilter {conditions, any} (≤ 30 conditions). Archived tasks come only with archived=1 or an “archived” condition.
Assignees, approvers, watchers
Any human member who is not a guest can be an assignee, approver or watcher — even without access to the board, on a private board too (they then see the board only through their tasks: Board.taskScoped). A bot qualifies only if it sees the board, and never as an approver; otherwise 422. A bot itself never sees a board through its tasks — it needs VIEW_BOARD. Up to 50 watchers (409).
Checklists
Checklists are edited like task fields: EDIT_TASKS, or CREATE_TASKS for the bot's own tasks and those it is assigned to. They need the Team plan (409 PLAN_LIMIT). Limits: ≤ 10 checklists per task (CHECKLIST_LIMIT), ≤ 100 items per checklist (CHECKLIST_ITEM_LIMIT), ≤ 50 board categories per workspace (BOARD_CATEGORY_LIMIT); all are 409 CONFLICT with used/limit.
const { checklist } = await bot.tasks.checklists.create(task.id, 'Before release');
await bot.tasks.checklists.addItem(checklist.id, 'Update the gateway certificate');
await bot.tasks.checklists.updateItem(itemId, { done: true });
const { task: subtask } = await bot.tasks.checklists.convertItem(itemId); // item → subtaskTask milestones
Milestones inside a task are stages with their own dates: POST /api/tasks/{id}/milestones {name, dueOn?}. The answer is {milestone, task}; milestones and progress (milestones, milestoneProgress, taskMilestoneId) are in every task and in the TASK_UPDATE event. A subtask is linked to its parent's milestone with PATCH /api/tasks/{id} {taskMilestoneId}.
- ≤ 20 milestones per task (
409 TASK_MILESTONE_LIMIT); subtasks have none (422); a subtask links only its parent's milestone (422). - While subtasks are linked, the server keeps the milestone's completion: a manual
completedis409 TASK_MILESTONE_AUTO. - The “Milestones” feature is off on the board —
409 FEATURE_DISABLED.
const { milestone } = await bot.tasks.milestones.create(task.id, 'Testing', '2026-10-18');
await bot.tasks.milestones.update(milestone.id, { completed: true });Board features and categories
PATCH /api/boards/{id} {setDisabledFeatures, disabledFeatures, estimateScale} (MANAGE_BOARD) switches board features on and off. With a feature off, a request that changes its field to a non-empty value gets 409 CONFLICT, reason: "FEATURE_DISABLED", with field set to the field name (estimate, dueOn, approverIds…). Clearing the field and repeating the current value pass.
import { BoardFeature } from '@calaba/bot-sdk';
await bot.boards.setFeatures(boardId, { disabledFeatures: [BoardFeature.MILESTONES] });
const cat = await bot.boards.categories.create(wsId, 'Operations');
await bot.boards.setOrder(wsId, { boards: [{ boardId, categoryId: cat.id, position: 0 }] });Automations
A bot reads a board's rules (GET /api/boards/{id}/rules) and their run log (GET /api/rules/{id}/runs) and, with MANAGE_BOARD, creates, changes, dry-runs and deletes them like a person. A rule acts on behalf of the board, not of its author: delete it when the bot should no longer run it. Task changes made by a bot run the board's rules just like people's changes. Changes made by rules appear in the journal with an empty actorId and a ruleId.
Releases from CI
After a deploy, CI reports the release to the board: POST /api/boards/{id}/releases with the token of a bot that has EDIT_TASKS on the board. Body: name (a pipeline number or a short SHA, ≤ 64), sha (the full deployed SHA), commits (full SHAs, ≤ 5000), url (the pipeline), environment (prod by default; [a-z0-9._-], ≤ 32), taskKeys (keys of this board's tasks, ≤ 500). Body ≤ 1 MB, 30 calls per minute per board, at most 20 environments per board (409 for the 21st).
The release takes the board's live tasks whose commit or merged MR (its merge, squash or last commit) is in commits or equals sha, plus the taskKeys. Calab keeps no Git history: it learns «an ancestor of sha» only from the list CI sends — git log <previous release>..<sha>. A task enters a release of one environment once; repeating the call with the same environment and sha updates the name and link but adds no task twice. Response: {release, created, addedKeys, unknownKeys, truncated}; on truncated (more than 500 tasks) call again. Every task that enters gets a release journal entry, the Task.releases field, and runs the rules with the «Task shipped in a release» trigger (e.g. «shipped in prod → Deployed» with the condition «status = Ready to Deploy»; templates get {release}).
# .gitlab-ci.yml — after the production deploy job (where `linear-release sync` used to be)
calab-release:
stage: deploy
needs: [deploy-vk-prod-all]
variables:
GIT_DEPTH: "0" # the range needs history
script:
- |
API="$CALAB_URL/api/boards/$CALAB_BOARD/releases"
AUTH="Authorization: Bearer $CALAB_TOKEN" # a masked CI variable; curl -s never prints it
PREV=$(curl -sf -H "$AUTH" "$API?environment=prod&limit=1" | jq -r '.releases[0].sha // empty')
git cat-file -e "$PREV^{commit}" 2>/dev/null || PREV="" # the previous release is not in this history
git log --format=%H -n 5000 "${PREV:+$PREV..}$CI_COMMIT_SHA" | jq -R . | jq -s \
'{name: env.CI_PIPELINE_IID, sha: env.CI_COMMIT_SHA, url: env.CI_PIPELINE_URL, environment: "prod", commits: .}' > release.json
for i in $(seq 10); do # more than 500 tasks: «truncated», call again
R=$(curl -sf -X POST -H "$AUTH" -H "Content-Type: application/json" --data @release.json "$API")
[ "$(echo "$R" | jq -r .truncated)" = true ] || break
done