Tasks reference
Reference for the Tasks endpoints. All paths start with https://<your-instance>/api/v1. Every request carries Authorization: Bearer hek_…. Formats, paging, deletion lists and error codes are on Conventions.
Reading needs read permission on the Tasks module, every writing request needs write permission (otherwise 403 with no_write_permission).
What for
- An ERP or shop creates a task for every problem with an order and links it to the contact.
- A form on your website lands as a task on a board.
- A report shows open and overdue tasks per person.
Notifications
As in the app: people assigned to a task or subtask through the API get a notification, and the reminders before the due date run as for any task. The key’s own user never watches a task.
People
GET /api/v1/tasks/people returns the people tasks can be assigned to: active users who can log in, with id and name. Nothing else (no email, no role). Kiosk accounts and API keys are not in the list. Assignees and watchers must come from this list.
Boards and columns
| Endpoint | Purpose |
|---|---|
GET /api/v1/tasks/boards and /{board_id} | Boards with name, icon, colour, tags and their columns in order. Parameter: tag. |
POST /api/v1/tasks/boards | Create a board (name, optionally icon, color, tags). It is always visible to Everyone. |
PATCH /api/v1/tasks/boards/{board_id} | Change name, icon, colour, tags. The visibility cannot be changed (422 with visibility_not_changeable). |
POST /api/v1/tasks/boards/{board_id}/columns | Add a column at the end |
PUT /api/v1/tasks/boards/{board_id}/columns/order | Reorder the columns (items: id, sort_order) |
PATCH /api/v1/tasks/columns/{column_id} | Rename a column |
DELETE /api/v1/tasks/columns/{column_id}?move_to=… | Delete a column. Its tasks move to the column move_to of the same board. |
GET /api/v1/tasks/boards/deleted?since=… | Boards deleted or no longer visible to everyone |
Deleting a whole board (with every task on it) is only possible in the app.
Tasks
| Endpoint | Purpose |
|---|---|
GET /api/v1/tasks/items | Tasks. Parameters: board_id, column_id, status, assignee_id, due_before, due_after, completed, label, limit, cursor, updated_since. |
GET /api/v1/tasks/items/{task_id} | One task with assignees, watchers, subtasks and recurrence |
POST /api/v1/tasks/items | Create a task (board_id, column_id, title, optionally description, priority, due_date, labels, assignee_ids) |
PATCH /api/v1/tasks/items/{task_id} | Change it; column_id moves the task within its board |
DELETE /api/v1/tasks/items/{task_id} | Delete it |
PUT …/{task_id}/assignees, PUT …/{task_id}/watchers | Set assignees or watchers (user_ids) |
PUT …/{task_id}/status | Status: offen (Open), gestartet (Started), erledigt (Done), gestoppt (Stopped) |
POST …/{task_id}/complete, POST …/{task_id}/reopen | Complete or reopen |
PATCH …/{task_id}/recurrence | Set a recurrence (recurrence_type daily, weekly, monthly, custom_interval with interval, weekdays or day of month) or remove it with recurrence_type: null |
PUT /api/v1/tasks/items/order | Set order and columns of several tasks of one board |
GET /api/v1/tasks/items/deleted?since=… | Tasks deleted or no longer reachable |
curl -X POST "https://<your-instance>/api/v1/tasks/items" \ -H "Authorization: Bearer hek_…" \ -H "Content-Type: application/json" \ -d '{"board_id": "…", "column_id": "…", "title": "Order 4711: parcel missing", "priority": "high", "due_date": "2026-11-12", "assignee_ids": ["…"]}'completed=true returns done and stopped tasks. A new subtask, comment, assignment or link counts as a change to the task (updated_since).
Subtasks, comments, history
| Endpoint | Purpose |
|---|---|
POST /api/v1/tasks/items/{task_id}/subtasks | Add a subtask (title, optionally assignee_id, due_date) |
PATCH, DELETE /api/v1/tasks/subtasks/{subtask_id} | Change (also done) or delete it |
PUT /api/v1/tasks/items/{task_id}/subtasks/order | Order the subtasks |
POST /api/v1/tasks/subtasks/{subtask_id}/promote | Turn a subtask into a task of its own |
GET, POST /api/v1/tasks/items/{task_id}/comments | Read and write comments. The author is the key (“API: …”). |
GET /api/v1/tasks/items/{task_id}/activity | The task’s history, newest first |
Links
| Endpoint | Purpose |
|---|---|
GET /api/v1/tasks/link-types | Which records of other modules can be linked (for example CRM contact, batch, invoice) |
GET /api/v1/tasks/items/{task_id}/links | Links of a task and its subtasks |
POST /api/v1/tasks/links | Link (task_id or subtask_id, module_key, entity_type, entity_id) |
DELETE /api/v1/tasks/links/{link_id} | Remove a link |
GET /api/v1/tasks/links/backlinks?module_key=…&entity_type=…&entity_id=… | Tasks linked to a record |
Links are possible only to modules the key may read. For other modules a link shows only the ids, no name.
Error codes in this module
| Status | Code | Meaning |
|---|---|---|
404 | not_found | Not found, on a Team only board, belongs to another business, a person outside the people list, or a link target that does not exist or whose module the key may not read. |
409 | column_not_empty | The column has tasks: give move_to. |
409 | last_column | A board keeps at least one column. |
409 | recurrence_not_allowed | The task is itself an occurrence of a recurring task. |
422 | visibility_not_changeable | A board’s visibility cannot be changed through the API. |
422 | validation_error | Invalid request, for example a column of another board or an unknown status. |