Чтение таска
Endpoint
GET /bot/tasks/{task_id}
Возвращает задачу, если bot-пользователь имеет доступ к форме этой задачи.
Что возвращается
Основные поля:
task_idform_idtitleauthor_idresponsible_idresponsible_idscreated_atlast_activityis_finishedstatusdue_date_atstep_iditems
Как возвращаются items
items - это массив верхнеуровневых task items.
Для каждого item возвращаются:
item_idform_field_idform_field_typenamevaluefloat_valuedate_valuelinked_task_id
Как возвращаются таблицы
Если item является таблицей, у него дополнительно есть rows.
Каждая строка содержит:
row_idpositionitems
Внутри rows[].items используются те же поля item-ответа:
item_idform_field_idform_field_typenamevaluefloat_valuedate_valuelinked_task_id
Что не включается автоматически
- comments не включаются
- files не включаются
Текущий GET /bot/tasks/{task_id} сериализует только саму задачу и task_items с table rows.
Пример read task
http
GET /bot/tasks/5001
Authorization: Bearer <token>json
{
"success": true,
"error_message": null,
"data": {
"task_id": 5001,
"form_id": 12,
"title": "Lead #5001 Lead from website",
"author_id": 77,
"responsible_id": 45,
"responsible_ids": [45],
"created_at": "2026-03-29T10:00:00+00:00",
"last_activity": "2026-03-29T10:00:00+00:00",
"is_finished": false,
"status": "new",
"due_date_at": null,
"step_id": 3,
"items": [
{
"item_id": 7001,
"form_field_id": 101,
"form_field_type": "TextField",
"name": "Title",
"value": "Lead from website",
"float_value": null,
"date_value": null,
"linked_task_id": null
},
{
"item_id": 7002,
"form_field_id": 104,
"form_field_type": "TableField",
"name": "Products",
"value": "",
"float_value": null,
"date_value": null,
"linked_task_id": null,
"rows": [
{
"row_id": 8101,
"position": 1,
"items": [
{
"item_id": 7003,
"form_field_id": 201,
"form_field_type": "TextField",
"name": "Product name",
"value": "Product A",
"float_value": null,
"date_value": null,
"linked_task_id": null
}
]
}
]
}
]
}
}Типовые ошибки
404 Task not found403 Form access not found429 Rate limit exceeded. Retry after {seconds} seconds