Get Custom Field Data with task.item.userfield.getfields
If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the MCP server so that the assistant can utilize the official REST documentation.
Scope:
taskWho can execute the method: any user
The method task.item.userfield.getfields retrieves a list of fields for custom task fields.
Method Parameters
No parameters.
Code Examples
How to Use Examples in Documentation
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
https://**put_your_bitrix24_address**/rest/**put_your_user_id_here**/**put_your_webhook_here**/task.item.userfield.getfields
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"auth": "**put_access_token_here**"
}' \
https://**put_your_bitrix24_address**/rest/task.item.userfield.getfields
try
{
const response = await $b24.callMethod(
'task.item.userfield.getfields',
{}
);
const result = response.getData().result;
console.log(result);
}
catch (error)
{
console.error(error);
}
try {
$response = $b24Service
->core
->call(
'task.item.userfield.getfields',
[]
);
$result = $response
->getResponseData()
->getResult();
print_r($result);
} catch (Throwable $e) {
echo $e->getMessage();
}
BX24.callMethod(
'task.item.userfield.getfields',
{},
function(result)
{
if (result.error())
{
console.error(result.error());
}
else
{
console.log(result.data());
}
}
);
require_once('crest.php');
$result = CRest::call(
'task.item.userfield.getfields',
[]
);
print_r($result);
Response Handling
HTTP Status: 200
{
"result": {
"ID": {
"type": "int",
"title": "ID",
"isReadOnly": true
},
"ENTITY_ID": {
"type": "string",
"title": "Entity",
"isImmutable": true
},
"FIELD_NAME": {
"type": "string",
"title": "Code",
"isImmutable": true
},
"USER_TYPE_ID": {
"type": "string",
"title": "Data Type",
"isImmutable": true
},
"XML_ID": {
"type": "string",
"title": "External ID (XML ID)"
},
"SORT": {
"type": "int",
"title": "Sort Order"
},
"MULTIPLE": {
"type": "char",
"title": "Multiple"
},
"MANDATORY": {
"type": "char",
"title": "Mandatory"
},
"SHOW_FILTER": {
"type": "char",
"title": "Show in List Filter"
},
"SHOW_IN_LIST": {
"type": "char",
"title": "Show in List"
},
"EDIT_IN_LIST": {
"type": "char",
"title": "Allow User Editing"
},
"IS_SEARCHABLE": {
"type": "char",
"title": "Field Values are Searchable"
},
"EDIT_FORM_LABEL": {
"type": "string",
"title": "Edit Form Label"
},
"LIST_COLUMN_LABEL": {
"type": "string",
"title": "List Column Header"
},
"LIST_FILTER_LABEL": {
"type": "string",
"title": "List Filter Label"
},
"ERROR_MESSAGE": {
"type": "string",
"title": "Error Message"
},
"HELP_MESSAGE": {
"type": "string",
"title": "Help"
},
"LIST": {
"type": "uf_enum_element",
"title": "List Elements",
"isMultiple": true
},
"SETTINGS": {
"type": "object",
"title": "Additional Settings (dependent on type)"
}
},
"total": 0,
"time": {
"start": 1772710591,
"finish": 1772710591.142614,
"duration": 0.14261388778686523,
"processing": 0,
"date_start": "2026-03-05T14:36:31+01:00",
"date_finish": "2026-03-05T14:36:31+01:00",
"operating_reset_at": 1772711191,
"operating": 0
}
}
Returned Data
|
Name |
Description |
|
result |
Description of available custom field properties. Each key of the object contains a field description (detailed description) |
|
total |
Currently returns |
|
time |
Information about the request execution time |
Object result
|
Name |
Description |
|
ID |
Identifier. Read-only |
|
ENTITY_ID |
Entity |
|
FIELD_NAME |
Code. Immutable |
|
USER_TYPE_ID |
Data Type. Immutable |
|
XML_ID |
External Identifier |
|
SORT |
Sort Order |
|
MULTIPLE |
Multiple |
|
MANDATORY |
Mandatory |
|
SHOW_FILTER |
Show in List Filter |
|
SHOW_IN_LIST |
Show in List |
|
EDIT_IN_LIST |
Allow User Editing |
|
IS_SEARCHABLE |
Field Values are Searchable |
|
EDIT_FORM_LABEL |
Edit Form Label |
|
LIST_COLUMN_LABEL |
List Column Header |
|
LIST_FILTER_LABEL |
List Filter Label |
|
ERROR_MESSAGE |
Error Message |
|
HELP_MESSAGE |
Help |
|
LIST |
List Elements. Multiple |
|
SETTINGS |
Additional Settings |
Field Description Object
|
Name |
Description |
|
type |
Field Data Type |
|
title |
Field Name |
|
isReadOnly |
Read-only Field Indicator |
|
isImmutable |
Immutable Field Indicator |
|
isMultiple |
Multiple Field Indicator |
Error Handling
|
Name |
Description |
|
error |
String error code. It may consist of digits, Latin letters, and underscores |
|
error_description |
Textual description of the error. The description is not intended to be shown to the end user in its raw form |
Statuses and System Error Codes
HTTP Status: 20x, 40x, 50x
The errors described below may occur when calling any method.
|
Status |
Code |
Description |
|
|
|
An internal server error has occurred. Please contact the server administrator or Bitrix24 technical support |
|
|
|
An internal server error has occurred. Please contact the server administrator or Bitrix24 technical support |
|
|
|
The request intensity limit has been exceeded |
|
|
|
The current method is not permitted for calls using batch |
|
|
|
The maximum length of parameters passed to the batch method has been exceeded |
|
|
|
Invalid access token or webhook code |
|
|
|
The HTTPS protocol is required for method calls |
|
|
|
The REST API is blocked due to overload. This is a manual individual block; please contact Bitrix24 technical support to lift it |
|
|
|
The REST API is only available on commercial plans |
|
|
|
The user associated with the access token or webhook used to call the method lacks the necessary permissions |
|
|
|
The manifest is not available |
|
|
|
The request requires higher privileges than those provided by the webhook token |
|
|
|
The provided access token has expired |
|
|
|
The user does not have access to the application. This means that the application is installed, but the portal administrator has restricted access to this application to specific users only |
|
|
|
The public part of the site is closed. To open the public part of the site 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 |
Continue Learning
- Custom Fields in Tasks: Overview of Methods
- Add Custom Field task.item.userfield.add
- Update Custom Field task.item.userfield.update
- Get User Field of Task by ID task.item.userfield.get
- Get a List of Custom Fields task.item.userfield.getlist
- Delete User Field `task.item.userfield.delete`
- Get a List of Available Data Types for task.item.userfield.gettypes