[{"data":1,"prerenderedAt":10},["ShallowReactive",2],{"docs-automation\u002Fbizproc-tasks":3,"docs-tabs-automation\u002Fbizproc-tasks":6},{"content":4,"lastmod":5},"# Business-process tasks\n\nList approval tasks, complete your task or delegate it to a substitute. Completing a task performs a real approval. Show the person the selected task and decision before acting.\n\nBitrix24 API: `bizproc.task.list`, `bizproc.task.complete`, `bizproc.task.delegate`\nScope: `bizproc`\n\n## Operations\n\n- [List tasks](.\u002Fbizproc-tasks\u002Flist.md) — `GET \u002Fv1\u002Fbizproc-tasks`\n- [Complete a task](.\u002Fbizproc-tasks\u002Fcomplete.md) — `POST \u002Fv1\u002Fbizproc-tasks\u002F:id\u002Fcomplete`\n- [Delegate tasks](.\u002Fbizproc-tasks\u002Fdelegate.md) — `POST \u002Fv1\u002Fbizproc-tasks\u002Fdelegate`\n\n## See also\n\n- [Workflow instances](\u002Fdocs\u002Fautomation\u002Fworkflows)\n- [API errors](\u002Fdocs\u002Ferrors)\n","2026-10-15",{"bizproc-tasks\u002Flist.md":7,"bizproc-tasks\u002Fcomplete.md":8,"bizproc-tasks\u002Fdelegate.md":9},"# List tasks\n\n`GET \u002Fv1\u002Fbizproc-tasks`\n\nReturns one Bitrix24 page of tasks. By default, a regular user sees their own tasks. An administrator without a filter may see every user's tasks: supply `filter={\"userId\":1373}` to select your own. Bitrix24 checks manager and administrator rights.\n\nBitrix24 API: `bizproc.task.list`\nScope: `bizproc`\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|---|---|---|---|\n| `select` (query) | string | no | Comma-separated fields: camelCase or Bitrix24 names. Defaults to ID, WORKFLOW_ID, DOCUMENT_NAME, NAME |\n| `filter` (query) | string | no | JSON object. Prefixes =, !, !=, \u003C, \u003C=, >, >=. Values are scalars or non-empty arrays of scalars. Fields are those from [Response fields](#response-fields), except `documentUrl` |\n| `order` (query) | string | no | JSON object: a field name and ASC or DESC. Defaults to ID DESC |\n| `start` (query) | integer | no | Non-negative Bitrix24 page offset, default 0. The next offset is in `meta.next` |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X GET \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbizproc-tasks\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\"\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X GET \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbizproc-tasks\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\"\n```\n\n### JavaScript — personal key\n\n```javascript\nconst response = await fetch(\"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbizproc-tasks\", {\n  method: \"GET\",\n  headers: { \"X-Api-Key\": \"YOUR_API_KEY\" }\n});\nconsole.log(await response.json());\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst response = await fetch(\"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbizproc-tasks\", {\n  method: \"GET\",\n  headers: { \"X-Api-Key\": \"YOUR_APP_KEY\", \"Authorization\": \"Bearer USER_SESSION_TOKEN\" }\n});\nconsole.log(await response.json());\n```\n\n## Response fields\n\n| Field | Type | Description |\n|---|---|---|\n| `success` | boolean | `true` |\n| `data` | object[] | Tasks. Field names in camelCase, Bitrix24 value types preserved |\n| `meta.start` | integer | Requested page offset |\n| `meta.total` | integer | Count from the Bitrix24 response. Omitted if not returned |\n| `meta.next` | integer | Next offset from Bitrix24. Omitted on the last page |\n\nAvailable fields: `id`, `activity`, `activityName`, `workflowId`, `documentName`, `description`, `name`, `modified`, `workflowStarted`, `workflowStartedBy`, `overdueDate`, `workflowTemplateId`, `workflowTemplateName`, `workflowState`, `status`, `userId`, `userStatus`, `moduleId`, `entity`, `documentId`, `parameters`, `documentUrl`. `parameters` describes the task form. Field-code values are preserved. Secret-bearing URLs are replaced with `[REDACTED]`.\n\n## Response example\n\nEmpty list on the test account.\n\n```json\n{\"success\":true,\"data\":[],\"meta\":{\"start\":0,\"total\":0}}\n```\n\n## Error response example\n\n400 — an unknown field is passed in `select`:\n\n```json\n{\"success\":false,\"error\":{\"code\":\"INVALID_PARAMS\",\"message\":\"Unknown select field\"}}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|---|---|---|\n| 400 | `INVALID_PARAMS` | Unknown query parameter or field, a parameter passed twice, `filter` or `order` is not a JSON object, an invalid prefix or value |\n| 401 | `TOKEN_MISSING` | No Bitrix24 credentials |\n| 403 | `SCOPE_DENIED` | Missing `bizproc` scope |\n| 403 | `BITRIX_ACCESS_DENIED` | Bitrix24 denies access |\n| 422 | `BITRIX_ERROR` | Bitrix24 business refusal. The message is preserved with secrets removed |\n| 502 | `BITRIX_RESPONSE_INVALID` | Unexpected response shape or action result |\n\nCommon refusals and limits: [API errors](\u002Fdocs\u002Ferrors).\n\n## See also\n\n- [Business-process tasks](\u002Fdocs\u002Fautomation\u002Fbizproc-tasks)\n- [Complete a task](\u002Fdocs\u002Fautomation\u002Fbizproc-tasks\u002Fcomplete)\n- [Delegate tasks](\u002Fdocs\u002Fautomation\u002Fbizproc-tasks\u002Fdelegate)\n- [Workflows](\u002Fdocs\u002Fautomation\u002Fworkflows)\n","# Complete a task\n\n`POST \u002Fv1\u002Fbizproc-tasks\u002F:id\u002Fcomplete`\n\nThis is a real approval, not a test run. `approve`, `reject`, `ok`, `cancel` are sent as 1, 2, 3, 4. Bitrix24 checks which decisions the task type allows. Re-read the list after a timeout: a retry may be refused because the task is already completed.\n\nBitrix24 API: `bizproc.task.complete`\nScope: `bizproc`\n\n## Parameters\n\n| Parameter | Type | Required | Description |\n|---|---|---|---|\n| `id` (path) | integer | yes | Positive task ID from the [task list](\u002Fdocs\u002Fautomation\u002Fbizproc-tasks\u002Flist) |\n\n## Request fields (body)\n\n| Field | Type | Required | Description |\n|---|---|---|---|\n| `status` | string | yes | Decision: `approve`, `reject`, `ok` or `cancel` |\n| `comment` | string | no | Decision comment. Required when the task form demands one |\n| `fields` | object | no | Values keyed by field code from the task's `parameters.Fields[].Id` in the [task list](\u002Fdocs\u002Fautomation\u002Fbizproc-tasks\u002Flist). A file is `[name, base64]`. Request body limit: 1 MiB |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbizproc-tasks\u002F42\u002Fcomplete\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"status\":\"approve\",\"comment\":\"VIBE-PROBE\"}'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbizproc-tasks\u002F42\u002Fcomplete\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"status\":\"approve\",\"comment\":\"VIBE-PROBE\"}'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst response = await fetch(\"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbizproc-tasks\u002F42\u002Fcomplete\", {\n  method: \"POST\",\n  headers: { \"X-Api-Key\": \"YOUR_API_KEY\", \"Content-Type\": \"application\u002Fjson\" },\n  body: JSON.stringify({\"status\":\"approve\",\"comment\":\"VIBE-PROBE\"})\n});\nconsole.log(await response.json());\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst response = await fetch(\"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbizproc-tasks\u002F42\u002Fcomplete\", {\n  method: \"POST\",\n  headers: { \"X-Api-Key\": \"YOUR_APP_KEY\", \"Authorization\": \"Bearer USER_SESSION_TOKEN\", \"Content-Type\": \"application\u002Fjson\" },\n  body: JSON.stringify({\"status\":\"approve\",\"comment\":\"VIBE-PROBE\"})\n});\nconsole.log(await response.json());\n```\n\n## Response fields\n\n| Field | Type | Description |\n|---|---|---|\n| `success` | boolean | `true` |\n| `data` | boolean | `true`, only if Bitrix24 returned `true` |\n\n## Response example\n\n```json\n{\"success\":true,\"data\":true}\n```\n\n## Error response example\n\n404 — no task with this `id` among the current user's tasks:\n\n```json\n{\"success\":false,\"error\":{\"code\":\"ENTITY_NOT_FOUND\",\"message\":\"Task not found or inaccessible\"}}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|---|---|---|\n| 400 | `INVALID_PARAMS` | `id` is not a positive integer, `status` is not in the list, `comment` is not a string, `fields` is not an object, or the body contains other fields |\n| 401 | `TOKEN_MISSING` | No Bitrix24 credentials |\n| 403 | `SCOPE_DENIED` | Missing `bizproc` scope |\n| 403 | `BITRIX_ACCESS_DENIED` | Bitrix24 denies access |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | Key blocks writes |\n| 404 | `ENTITY_NOT_FOUND` | Task not found for the current user |\n| 422 | `BITRIX_ERROR` | Bitrix24 business refusal. The message is preserved with secrets removed |\n| 502 | `BITRIX_RESPONSE_INVALID` | Unexpected response shape or action result |\n\nCommon refusals and limits: [API errors](\u002Fdocs\u002Ferrors).\n\n## See also\n\n- [Business-process tasks](\u002Fdocs\u002Fautomation\u002Fbizproc-tasks)\n- [List tasks](\u002Fdocs\u002Fautomation\u002Fbizproc-tasks\u002Flist)\n- [Workflows](\u002Fdocs\u002Fautomation\u002Fworkflows)\n","# Delegate tasks\n\n`POST \u002Fv1\u002Fbizproc-tasks\u002Fdelegate`\n\nBitrix24 checks whether you are allowed to delegate tasks. The method may delegate some tasks and then return an error for the rest. Re-read the task list before retrying; a refusal does not guarantee rollback of every change.\n\nBitrix24 API: `bizproc.task.delegate`\nScope: `bizproc`\n\n## Request fields (body)\n\n| Field | Type | Required | Description |\n|---|---|---|---|\n| `taskIds` | integer[] | yes | Non-empty array of positive IDs from the [task list](\u002Fdocs\u002Fautomation\u002Fbizproc-tasks\u002Flist) |\n| `fromUserId` | integer | yes | Current assignee. Positive ID from the [employee list](\u002Fdocs\u002Fentities\u002Fusers\u002Flist) |\n| `toUserId` | integer | yes | New assignee. Positive ID from the [employee list](\u002Fdocs\u002Fentities\u002Fusers\u002Flist) |\n\n## Examples\n\n### curl — personal key\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbizproc-tasks\u002Fdelegate\" \\\n  -H \"X-Api-Key: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"taskIds\":[42],\"fromUserId\":1,\"toUserId\":2}'\n```\n\n### curl — OAuth application\n\n```bash\ncurl -X POST \"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbizproc-tasks\u002Fdelegate\" \\\n  -H \"X-Api-Key: YOUR_APP_KEY\" \\\n  -H \"Authorization: Bearer USER_SESSION_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"taskIds\":[42],\"fromUserId\":1,\"toUserId\":2}'\n```\n\n### JavaScript — personal key\n\n```javascript\nconst response = await fetch(\"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbizproc-tasks\u002Fdelegate\", {\n  method: \"POST\",\n  headers: { \"X-Api-Key\": \"YOUR_API_KEY\", \"Content-Type\": \"application\u002Fjson\" },\n  body: JSON.stringify({\"taskIds\":[42],\"fromUserId\":1,\"toUserId\":2})\n});\nconsole.log(await response.json());\n```\n\n### JavaScript — OAuth application\n\n```javascript\nconst response = await fetch(\"https:\u002F\u002Fvibecode.bitrix24.com\u002Fv1\u002Fbizproc-tasks\u002Fdelegate\", {\n  method: \"POST\",\n  headers: { \"X-Api-Key\": \"YOUR_APP_KEY\", \"Authorization\": \"Bearer USER_SESSION_TOKEN\", \"Content-Type\": \"application\u002Fjson\" },\n  body: JSON.stringify({\"taskIds\":[42],\"fromUserId\":1,\"toUserId\":2})\n});\nconsole.log(await response.json());\n```\n\n## Response fields\n\n| Field | Type | Description |\n|---|---|---|\n| `success` | boolean | `true` |\n| `data` | boolean | `true`, only if Bitrix24 returned `true` |\n\n## Response example\n\n```json\n{\"success\":true,\"data\":true}\n```\n\n## Error response example\n\n400 — `taskIds` is empty or contains values that are not positive integers:\n\n```json\n{\"success\":false,\"error\":{\"code\":\"INVALID_PARAMS\",\"message\":\"taskIds must be a non-empty array of positive safe integers\"}}\n```\n\n## Errors\n\n| HTTP | Code | Description |\n|---|---|---|\n| 400 | `INVALID_PARAMS` | `taskIds`, `fromUserId` or `toUserId` is missing, a value is not a positive integer, or the body contains other fields |\n| 401 | `TOKEN_MISSING` | No Bitrix24 credentials |\n| 403 | `SCOPE_DENIED` | Missing `bizproc` scope |\n| 403 | `BITRIX_ACCESS_DENIED` | Bitrix24 denies access |\n| 403 | `WRITE_BLOCKED_READONLY_KEY` | Key blocks writes |\n| 404 | `ENTITY_NOT_FOUND` | Task not found |\n| 422 | `BITRIX_ERROR` | Bitrix24 business refusal, for example no permission to delegate. The Bitrix24 code is in the `b24Code` field. The message is preserved with secrets removed |\n| 502 | `BITRIX_RESPONSE_INVALID` | Unexpected response shape or action result |\n\nCommon refusals and limits: [API errors](\u002Fdocs\u002Ferrors).\n\n## See also\n\n- [Business-process tasks](\u002Fdocs\u002Fautomation\u002Fbizproc-tasks)\n- [List tasks](\u002Fdocs\u002Fautomation\u002Fbizproc-tasks\u002Flist)\n- [List employees](\u002Fdocs\u002Fentities\u002Fusers\u002Flist)\n- [Workflows](\u002Fdocs\u002Fautomation\u002Fworkflows)\n",1795415347387]