Get a List of Workflow Tasks bizproc.task.list
Choose a tool for developing with an AI agent:
- use Alaio Vibecode to build an app for Bitrix24 from a task description without knowing any programming language. The agent writes the code and deploys the app to a server, with no manual hosting setup
- use the MCP server to develop a REST API integration in your own project. The agent refers to the official REST documentation
Scope:
bizprocWho can execute the method: any user
The method bizproc.task.list retrieves a list of workflow tasks.
A portal administrator can request all tasks or tasks of any user. A regular user can only request their own tasks or those of their subordinates.
To request their own tasks, the USER_ID filter does not need to be specified.
In cloud Bitrix24, task information is available for one day after the workflow is completed.
Method Parameters
Required parameters are marked with *
|
Name |
Description |
|
SELECT |
An array containing a list of fields to select. You can specify only the fields that are necessary. By default, it returns the fields |
|
FILTER |
An object for filtering the list of tasks in the format
You can specify the type of filtering before the name of the filtered field:
Without a prefix, the filter compares the value for equality. The field name can be passed in any case. If
If the method is called by a non-administrator and the |
|
ORDER |
An object for sorting the list of tasks in the format
The sorting direction can take the following values:
You can specify multiple fields for sorting, for example, |
|
START |
This parameter is used for managing pagination. The page size of results is always static — 50 records. To select the second page of results, you need to pass the value The formula for calculating the
|
Code Examples
How to Use Examples in Documentation
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"select":["ID","WORKFLOW_ID","DOCUMENT_NAME","DESCRIPTION","NAME","MODIFIED","WORKFLOW_STARTED","WORKFLOW_STARTED_BY","OVERDUE_DATE","WORKFLOW_TEMPLATE_ID","WORKFLOW_TEMPLATE_NAME","WORKFLOW_STATE","STATUS","USER_ID","USER_STATUS","MODULE_ID","ENTITY","DOCUMENT_ID","ACTIVITY","ACTIVITY_NAME","DOCUMENT_URL","PARAMETERS"],"order":{"ID":"DESC"},"filter":{"USER_ID":1,"STATUS":0,"ACTIVITY":"RequestInformationOptionalActivity"}}' \
https://**put_your_bitrix24_address**/rest/**put_your_user_id_here**/**put_your_webhook_here**/bizproc.task.list
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"select":["ID","WORKFLOW_ID","DOCUMENT_NAME","DESCRIPTION","NAME","MODIFIED","WORKFLOW_STARTED","WORKFLOW_STARTED_BY","OVERDUE_DATE","WORKFLOW_TEMPLATE_ID","WORKFLOW_TEMPLATE_NAME","WORKFLOW_STATE","STATUS","USER_ID","USER_STATUS","MODULE_ID","ENTITY","DOCUMENT_ID","ACTIVITY","ACTIVITY_NAME","DOCUMENT_URL","PARAMETERS"],"order":{"ID":"DESC"},"filter":{"USER_ID":1,"STATUS":0,"ACTIVITY":"RequestInformationOptionalActivity"},"auth":"**put_access_token_here**"}' \
https://**put_your_bitrix24_address**/rest/bizproc.task.list
// callListMethod: Retrieves all data at once. Use only for small selections (< 1000 items) due to high memory load.
const parameters = {
select: [
'ID',
'WORKFLOW_ID',
'DOCUMENT_NAME',
'DESCRIPTION',
'NAME',
'MODIFIED',
'WORKFLOW_STARTED',
'WORKFLOW_STARTED_BY',
'OVERDUE_DATE',
'WORKFLOW_TEMPLATE_ID',
'WORKFLOW_TEMPLATE_NAME',
'WORKFLOW_STATE',
'STATUS',
'USER_ID',
'USER_STATUS',
'MODULE_ID',
'ENTITY',
'DOCUMENT_ID',
'ACTIVITY',
'ACTIVITY_NAME',
'DOCUMENT_URL',
'PARAMETERS'
],
order: {
ID: 'DESC'
},
filter: {
'USER_ID': 1,
'STATUS': 0,
'ACTIVITY': 'RequestInformationOptionalActivity'
}
};
try {
const response = await $b24.callListMethod('bizproc.task.list', parameters);
const items = response.getData() || [];
for (const entity of items) { console.log('Entity:', entity); }
} catch (error) {
console.error('Request failed', error);
}
// fetchListMethod: Retrieves data in parts using an iterator. Use for large volumes of data for efficient memory consumption.
const parameters = {
select: [
'ID',
'WORKFLOW_ID',
'DOCUMENT_NAME',
'DESCRIPTION',
'NAME',
'MODIFIED',
'WORKFLOW_STARTED',
'WORKFLOW_STARTED_BY',
'OVERDUE_DATE',
'WORKFLOW_TEMPLATE_ID',
'WORKFLOW_TEMPLATE_NAME',
'WORKFLOW_STATE',
'STATUS',
'USER_ID',
'USER_STATUS',
'MODULE_ID',
'ENTITY',
'DOCUMENT_ID',
'ACTIVITY',
'ACTIVITY_NAME',
'DOCUMENT_URL',
'PARAMETERS'
],
order: {
ID: 'DESC'
},
filter: {
'USER_ID': 1,
'STATUS': 0,
'ACTIVITY': 'RequestInformationOptionalActivity'
}
};
try {
const generator = $b24.fetchListMethod('bizproc.task.list', parameters, 'ID');
for await (const page of generator) {
for (const entity of page) { console.log('Entity:', entity); }
}
} catch (error) {
console.error('Request failed', error);
}
// callMethod: Manual control of pagination through the start parameter. Use for precise control over request batches. Less efficient for large data than fetchListMethod.
const parameters = {
select: [
'ID',
'WORKFLOW_ID',
'DOCUMENT_NAME',
'DESCRIPTION',
'NAME',
'MODIFIED',
'WORKFLOW_STARTED',
'WORKFLOW_STARTED_BY',
'OVERDUE_DATE',
'WORKFLOW_TEMPLATE_ID',
'WORKFLOW_TEMPLATE_NAME',
'WORKFLOW_STATE',
'STATUS',
'USER_ID',
'USER_STATUS',
'MODULE_ID',
'ENTITY',
'DOCUMENT_ID',
'ACTIVITY',
'ACTIVITY_NAME',
'DOCUMENT_URL',
'PARAMETERS'
],
order: {
ID: 'DESC'
},
filter: {
'USER_ID': 1,
'STATUS': 0,
'ACTIVITY': 'RequestInformationOptionalActivity'
}
};
try {
const response = await $b24.callMethod('bizproc.task.list', parameters, 0);
const result = response.getData().result || [];
for (const entity of result) { console.log('Entity:', entity); }
} catch (error) {
console.error('Request failed', error);
}
from b24pysdk.errors import BitrixAPIError, BitrixSDKException
try:
bitrix_response = client.bizproc.task.list(
select=[
"ID",
"WORKFLOW_ID",
"DOCUMENT_NAME",
"DESCRIPTION",
"NAME",
"MODIFIED",
"WORKFLOW_STARTED",
"WORKFLOW_STARTED_BY",
"OVERDUE_DATE",
"WORKFLOW_TEMPLATE_ID",
"WORKFLOW_TEMPLATE_NAME",
"WORKFLOW_STATE",
"STATUS",
"USER_ID",
"USER_STATUS",
"MODULE_ID",
"ENTITY",
"DOCUMENT_ID",
"ACTIVITY",
"ACTIVITY_NAME",
"DOCUMENT_URL",
"PARAMETERS",
],
order={
"ID": "DESC",
},
filter={
"USER_ID": 1,
"STATUS": 0,
"ACTIVITY": "RequestInformationOptionalActivity",
},
).response
result = bitrix_response.result
print(result)
except BitrixAPIError as error:
print(
"Bitrix API error",
f"error: {error.error}",
f"error_description: {error.error_description}",
sep="\n",
)
except BitrixSDKException as error:
print(f"Bitrix SDK error: {error.message}")
except Exception as error:
print(f"Unexpected error: {error}")
Example as_list
from b24pysdk.errors import BitrixAPIError, BitrixSDKException
try:
bitrix_response = client.bizproc.task.list(
select=[
"ID",
"WORKFLOW_ID",
"DOCUMENT_NAME",
"DESCRIPTION",
"NAME",
"MODIFIED",
"WORKFLOW_STARTED",
"WORKFLOW_STARTED_BY",
"OVERDUE_DATE",
"WORKFLOW_TEMPLATE_ID",
"WORKFLOW_TEMPLATE_NAME",
"WORKFLOW_STATE",
"STATUS",
"USER_ID",
"USER_STATUS",
"MODULE_ID",
"ENTITY",
"DOCUMENT_ID",
"ACTIVITY",
"ACTIVITY_NAME",
"DOCUMENT_URL",
"PARAMETERS",
],
order={
"ID": "DESC",
},
filter={
"USER_ID": 1,
"STATUS": 0,
"ACTIVITY": "RequestInformationOptionalActivity",
},
).as_list().response
result = bitrix_response.result
for item in result:
print(item)
except BitrixAPIError as error:
print(
"Bitrix API error",
f"error: {error.error}",
f"error_description: {error.error_description}",
sep="\n",
)
except BitrixSDKException as error:
print(f"Bitrix SDK error: {error.message}")
except Exception as error:
print(f"Unexpected error: {error}")
Example as_list_fast
from b24pysdk.errors import BitrixAPIError, BitrixSDKException
try:
bitrix_response = client.bizproc.task.list(
select=[
"ID",
"WORKFLOW_ID",
"DOCUMENT_NAME",
"DESCRIPTION",
"NAME",
"MODIFIED",
"WORKFLOW_STARTED",
"WORKFLOW_STARTED_BY",
"OVERDUE_DATE",
"WORKFLOW_TEMPLATE_ID",
"WORKFLOW_TEMPLATE_NAME",
"WORKFLOW_STATE",
"STATUS",
"USER_ID",
"USER_STATUS",
"MODULE_ID",
"ENTITY",
"DOCUMENT_ID",
"ACTIVITY",
"ACTIVITY_NAME",
"DOCUMENT_URL",
"PARAMETERS",
],
order={
"ID": "DESC",
},
filter={
"USER_ID": 1,
"STATUS": 0,
"ACTIVITY": "RequestInformationOptionalActivity",
},
).as_list_fast(descending=True).response
result = bitrix_response.result
for item in result:
print(item)
except BitrixAPIError as error:
print(
"Bitrix API error",
f"error: {error.error}",
f"error_description: {error.error_description}",
sep="\n",
)
except BitrixSDKException as error:
print(f"Bitrix SDK error: {error.message}")
except Exception as error:
print(f"Unexpected error: {error}")
try {
$response = $b24Service
->core
->call(
'bizproc.task.list',
[
'select' => [
'ID',
'WORKFLOW_ID',
'DOCUMENT_NAME',
'DESCRIPTION',
'NAME',
'MODIFIED',
'WORKFLOW_STARTED',
'WORKFLOW_STARTED_BY',
'OVERDUE_DATE',
'WORKFLOW_TEMPLATE_ID',
'WORKFLOW_TEMPLATE_NAME',
'WORKFLOW_STATE',
'STATUS',
'USER_ID',
'USER_STATUS',
'MODULE_ID',
'ENTITY',
'DOCUMENT_ID',
'ACTIVITY',
'ACTIVITY_NAME',
'DOCUMENT_URL',
'PARAMETERS'
],
'order' => [
'ID' => 'DESC'
],
'filter' => [
'USER_ID' => 1,
'STATUS' => 0,
'ACTIVITY' => 'RequestInformationOptionalActivity'
]
]
);
$result = $response
->getResponseData()
->getResult();
if ($result->error()) {
echo 'Error: ' . $result->error();
} else {
echo 'Success: ' . print_r($result->data(), true);
}
} catch (Throwable $e) {
error_log($e->getMessage());
echo 'Error: ' . $e->getMessage();
}
BX24.callMethod(
'bizproc.task.list',
{
select: [
'ID',
'WORKFLOW_ID',
'DOCUMENT_NAME',
'DESCRIPTION',
'NAME',
'MODIFIED',
'WORKFLOW_STARTED',
'WORKFLOW_STARTED_BY',
'OVERDUE_DATE',
'WORKFLOW_TEMPLATE_ID',
'WORKFLOW_TEMPLATE_NAME',
'WORKFLOW_STATE',
'STATUS',
'USER_ID',
'USER_STATUS',
'MODULE_ID',
'ENTITY',
'DOCUMENT_ID',
'ACTIVITY',
'ACTIVITY_NAME',
'DOCUMENT_URL',
'PARAMETERS'
],
order: {
ID: 'DESC'
},
filter: {
'USER_ID': 1,
'STATUS': 0,
'ACTIVITY': 'RequestInformationOptionalActivity'
}
},
function(result)
{
if(result.error())
alert("Error: " + result.error());
else
console.log(result.data());
}
);
require_once('crest.php');
$result = CRest::call(
'bizproc.task.list',
[
'select' => [
'ID',
'WORKFLOW_ID',
'DOCUMENT_NAME',
'DESCRIPTION',
'NAME',
'MODIFIED',
'WORKFLOW_STARTED',
'WORKFLOW_STARTED_BY',
'OVERDUE_DATE',
'WORKFLOW_TEMPLATE_ID',
'WORKFLOW_TEMPLATE_NAME',
'WORKFLOW_STATE',
'STATUS',
'USER_ID',
'USER_STATUS',
'MODULE_ID',
'ENTITY',
'DOCUMENT_ID',
'ACTIVITY',
'ACTIVITY_NAME',
'DOCUMENT_URL',
'PARAMETERS'
],
'order' => [
'ID' => 'DESC'
],
'filter' => [
'USER_ID' => 1,
'STATUS' => 0,
'ACTIVITY' => 'RequestInformationOptionalActivity'
]
]
);
echo '<PRE>';
print_r($result);
echo '</PRE>';
// client and ctx are already created — see the Go SDK section
res, err := client.Core().Call(ctx, "bizproc.task.list", b24.Params{
"SELECT": []string{"ID", "WORKFLOW_ID", "DOCUMENT_NAME", "DESCRIPTION", "NAME", "MODIFIED", "WORKFLOW_STARTED", "WORKFLOW_STARTED_BY", "OVERDUE_DATE", "WORKFLOW_TEMPLATE_ID", "WORKFLOW_TEMPLATE_NAME", "WORKFLOW_STATE", "STATUS", "USER_ID", "USER_STATUS", "MODULE_ID", "ENTITY", "DOCUMENT_ID", "ACTIVITY", "ACTIVITY_NAME", "DOCUMENT_URL", "PARAMETERS"},
"ORDER": b24.Params{
"ID": "DESC",
},
"FILTER": b24.Params{
"USER_ID": 1,
"STATUS": 0,
"ACTIVITY": "RequestInformationOptionalActivity",
},
}, b24.WithIdempotent())
if err != nil {
return fmt.Errorf("bizproc.task.list: %w", err)
}
// The response arrives as json.RawMessage — unmarshal it
// into a struct matching the response shape shown below on this page.
fmt.Printf("%s\n", res.Result)
Response Handling
HTTP Status: 200
{
"result": [
{
"ENTITY": "BizprocDocument",
"DOCUMENT_ID": "2249",
"ID": "1477",
"WORKFLOW_ID": "67a2ffdb2c57a3.35276854",
"DOCUMENT_NAME": "Partner Conference",
"DESCRIPTION": "",
"NAME": "Add Contractor Information",
"MODIFIED": "2025-02-05T09:06:19+02:00",
"WORKFLOW_STARTED": "2025-02-05T09:06:19+02:00",
"WORKFLOW_STARTED_BY": "1",
"OVERDUE_DATE": null,
"WORKFLOW_TEMPLATE_ID": "565",
"WORKFLOW_TEMPLATE_NAME": "Event Organization",
"WORKFLOW_STATE": "Waiting for Additional Information",
"STATUS": "0",
"USER_ID": "1",
"USER_STATUS": "0",
"MODULE_ID": "lists",
"ACTIVITY": "RequestInformationActivity",
"ACTIVITY_NAME": "A3651_68033_56029_16413",
"PARAMETERS": {
"CommentLabel": "Comment",
"CommentRequired": "Y",
"ShowComment": "Y",
"StatusOkLabel": "Save Result",
"Fields": [
{
"Id": "contractor",
"Type": "E:ECrm",
"Name": "Contractor",
"Description": "Who performs the work",
"Multiple": false,
"Required": true,
"Options": {
"LEAD": "N",
"CONTACT": "Y",
"COMPANY": "Y",
"DEAL": "N",
"SMART_INVOICE": "N",
"DYNAMIC_136": "N",
"DYNAMIC_1038": "N"
},
"Settings": null,
"Default": [
"C_607"
]
},
{
"Id": "phone_number",
"Type": "string",
"Name": "Phone Number",
"Description": "",
"Multiple": false,
"Required": true,
"Options": null,
"Settings": null,
"Default": ""
}
]
},
"DOCUMENT_URL": "/bizproc/processes/?livefeed=y&list_id=171&element_id=2249"
},
{
"ENTITY": "BizprocDocument",
"DOCUMENT_ID": "2237",
"ID": "1471",
"WORKFLOW_ID": "67a2fda6732f98.84769464",
"DOCUMENT_NAME": "Partner Conference",
"DESCRIPTION": "",
"NAME": "Approve Contractor",
"MODIFIED": "2025-02-05T08:58:14+03:00",
"WORKFLOW_STARTED": "2025-02-05T08:58:14+03:00",
"WORKFLOW_STARTED_BY": "1",
"OVERDUE_DATE": null,
"WORKFLOW_TEMPLATE_ID": "565",
"WORKFLOW_TEMPLATE_NAME": "Event Organization",
"WORKFLOW_STATE": "Waiting for Approval",
"STATUS": "0",
"USER_ID": "1",
"USER_STATUS": "0",
"MODULE_ID": "lists",
"ACTIVITY": "ApproveActivity",
"ACTIVITY_NAME": "A3651_68033_56029_16414",
"PARAMETERS": {
"CommentLabel": "Comment",
"CommentRequired": "N",
"ShowComment": "Y",
"StatusYesLabel": "Approve",
"StatusNoLabel": "Reject"
},
"DOCUMENT_URL": "/bizproc/processes/?livefeed=y&list_id=171&element_id=2237"
}
],
"total": 2,
"time": {
"start": 1738735796.4730229,
"finish": 1738735796.510215,
"duration": 0.037192106246948242,
"processing": 0.0080459117889404297,
"date_start": "2025-02-05T09:09:56+02:00",
"date_finish": "2025-02-05T09:09:56+02:00",
"operating_reset_at": 1738736396,
"operating": 0
}
}
Returned Data
|
Name |
Description |
|
result |
The root element of the response. Contains an array of objects with information about workflow tasks. Each object contains fields of the task specified in the |
|
total |
The total number of records found |
|
time |
Information about the execution time of the request |
Task Fields
|
Name |
Description |
|
ID |
Task identifier |
|
WORKFLOW_ID |
Workflow identifier |
|
DOCUMENT_NAME |
Document name |
|
DESCRIPTION |
Task description |
|
NAME |
Task name |
|
MODIFIED |
Modification date |
|
WORKFLOW_STARTED |
Workflow start date |
|
WORKFLOW_STARTED_BY |
Who started the workflow |
|
OVERDUE_DATE |
Deadline |
|
WORKFLOW_TEMPLATE_ID |
Workflow template identifier |
|
WORKFLOW_TEMPLATE_NAME |
Workflow template name |
|
WORKFLOW_STATE |
Workflow status |
|
STATUS |
Task status. Possible values:
|
|
USER_ID |
User identifier |
|
USER_STATUS |
User response. Possible values:
|
|
MODULE_ID |
Module identifier by document |
|
ENTITY |
Symbolic identifier of the object by document |
|
DOCUMENT_ID |
Document identifier |
|
ACTIVITY |
Task type identifier. Possible values:
|
|
ACTIVITY_NAME |
Action identifier in the template |
|
PARAMETERS |
An object describing the task parameters |
|
DOCUMENT_URL |
Link to the document |
PARAMETERS Object
|
Name |
Description |
|
CommentLabel |
Name of the Comment field |
|
CommentRequired |
Comment requirement. Possible values:
|
|
ShowComment |
Show comment. Possible values:
|
|
StatusOkLabel |
Text for the Acknowledged button |
|
StatusYesLabel |
Text for the Approve button |
|
StatusNoLabel |
Text for the Reject button |
|
Fields |
An array of objects. Each object contains a description of the field in the task |
Fields Object
|
Name |
Description |
|
Id |
Symbolic identifier of the task parameter |
|
Type |
Parameter type. Basic values:
Other types depend on the document with which the workflow operates |
|
Name |
Name of the parameter |
|
Description |
Description of the parameter |
|
Multiple |
Parameter multiplicity. Possible values:
|
|
Required |
Parameter requirement. Possible values:
|
|
Options |
Field settings. Values depend on the parameter type. Examples:
|
|
Settings |
Additional field settings |
|
Default |
Default value of the parameter |
Error Handling
HTTP Status: 400
{
"error": "ACCESS_DENIED",
"error_description": "Access denied!"
}
|
Name |
Description |
|
error |
String error code. It consists of digits, Latin letters, and underscores. It may arrive empty — in that case only |
|
error_description |
Error message for the developer. Do not show it to the end user without processing |
Possible Error Codes
|
Code |
Error Message |
Description |
|
|
Access denied! |
The method was called by a non-administrator or you cannot view the tasks of the specified employee |
|
|
Invalid data in SELECT parameter |
Invalid data was passed in the |
Statuses and System Error Codes
HTTP Status: 4xx, 5xx
The errors described below are returned by the REST API itself, not by the logic of a specific method. They can arrive in response to any method.
|
Status |
Code |
Description |
|
|
|
An internal server error has occurred. Retry the call, and if the error persists, contact the server administrator or Bitrix24 technical support |
|
|
|
The server returned an unexpected response. Retry the call, and if the error persists, contact the server administrator or Bitrix24 technical support |
|
|
|
The request intensity limit has been exceeded |
|
|
|
The method is blocked because the request resource intensity limit has been exceeded. The block is lifted automatically once the accumulated execution time of the method no longer exceeds the limit |
|
|
|
The request contains no authorization data: neither an access token nor a webhook code was passed |
|
|
|
Methods are called over the HTTPS protocol only |
|
|
|
The REST API is blocked due to overload. This is a manual individual block. To have it lifted, contact Bitrix24 technical support |
|
|
|
REST API access is not active for this account. In Bitrix24 Cloud, check the current plan or trial status: Vibe+ plans include REST API access, while Essentials plans do not. A webhook receives a different error message — |
|
|
|
No active webhook with the specified user identifier and secret code was found |
|
|
|
No method with this name was found. The name is misspelled, the method does not exist in the REST API, or it is unavailable without the required scope |
|
|
|
The request requires broader permissions than the token has: for a webhook these are the permissions granted to it, for an application it is the scope. For an application, the error message ends with |
|
|
|
The access token has expired |
|
|
|
The application is installed, but the Bitrix24 administrator has granted access to it only to specific users |
|
|
|
The public part of the site is closed. To open it on an on-premise installation, disable the "Temporary closure of the public part of the site" option. Path to the setting: Desktop > Settings > Product Settings > Module Settings > Main Module > Temporary closure of the public part of the site |