Contact Fields in REST 3.0
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
These fields belong to REST 3.0 methods. The call specifics and response format of the new API version are described in the REST 3.0 overview.
Contact fields are returned by the crm.contact.get and crm.contact.list methods and accepted by the crm.contact.add and crm.contact.update methods. Values of multiple fields are added and removed one at a time by the crm.contact.addfieldvalue and crm.contact.deletefieldvalue methods. The list of fields with their attributes is returned by the crm.contact.field.list method.
Some fields exist in two forms: as an ID and as a related object, for example, assignedById and assignedBy. The ID can be passed when writing data, while the related object can only be requested in select.
Which Fields the Methods Accept and Return
|
Method |
Accepts |
Returns |
|
Fields of the Contact Object table that can be edited, and custom fields. At least one of the |
ID of the created contact |
|
|
Contact |
Success flag |
|
|
Contact |
Without |
|
|
|
Without |
|
|
Contact |
Success flag |
The add and update methods do not accept fields marked "read-only" and return the BITRIX_REST_V3_EXCEPTION_VALIDATION_DTOVALIDATIONEXCEPTION error with the message 'Field "companyId" is read-only.' Related objects, for example, company and assignedBy, are also read-only: to write data, pass the ID — companiesId, assignedById.
The method validates fields with values from reference lists when writing data. If the value is not in the reference list, the method returns the error 'Field value is not one of the possible values'. For the contact type, salutation, and source, the error message lists the allowed values.
Boolean fields accept and return true or false. The values Y, N, 1, and 0 are not accepted: the method returns the error 'This request requires data type "bool" in field "opened"'.
The birthdayTime field of the date type accepts and returns a date in the YYYY-MM-DD format, for example, 1990-05-15. The field does not accept a date with time or a date in the 15.05.1990 format. Fields of the datetime type are returned in ISO 8601 format, for example, 2026-11-03T14:42:28+03:00. In a filter by a datetime field, also pass a date with time.
You can filter and sort only by the fields whose description says so. For other fields, the list method returns an error stating that the field 'requires attribute "Filterable"' or '"Sortable"'. Dot notation lets you filter by fields of linked CRM items, of phone, email, website, and messenger values, and of the utm and lastCommunication objects, for example, ["company.title", "=", "Müller GmbH"] or ["phone.value", "=", "+49300000003"]. Filtering by fields of employees and reference lists, for example, assignedBy.id or type.name, is not supported: the method returns the BITRIX_REST_V3_EXCEPTION_INVALIDFILTEREXCEPTION error. The filter format is described on the crm.<type>.list page and in the REST API 3.0 Overview article.
Filtering by the companiesId field does not work at the moment: the crm.contact.list method responds with HTTP status 500 and the INTERNAL_SERVER_ERROR error. To find the contacts of a company, filter by the primary company companyId or request the contactsId field of the company with the crm.company.get method.
Contact Object
|
Name |
Description |
|
id |
Contact ID. Assigned on creation. Read-only. Can be filtered and sorted |
|
name |
First name, up to 50 characters. When creating a contact, Can be edited, filtered, and sorted |
|
secondName |
Middle name, up to 50 characters. Can be edited, filtered, and sorted |
|
lastName |
Last name, up to 50 characters. When creating a contact, Can be edited, filtered, and sorted |
|
title |
Full name of the contact, which Bitrix24 builds from the last name, first name, and middle name, for example, Read-only. Cannot be filtered or sorted |
|
honorificId |
Salutation ID, for example, Can be edited, filtered, and sorted |
|
honorific |
Salutation. An object of type reference list value. Read-only. Requested in |
|
post |
Position, up to 255 characters. Can be edited, filtered, and sorted |
|
birthdayTime |
Date of birth in the Can be edited, filtered, and sorted |
|
typeId |
Contact type ID, for example, Can be edited, filtered, and sorted |
|
type |
Contact type. An object of type reference list value. Read-only. Requested in |
|
export |
Whether the contact is included in contact export: Can be edited, filtered, and sorted |
|
photo |
Contact photo. An object of type file. To delete the photo, pass Can be edited. Cannot be filtered or sorted |
|
companiesId |
IDs of the contact's companies, up to 50 values. Companies are returned by the crm.company.list method. The passed array replaces the current list of companies. The first company in the array becomes the primary one and is written to Can be edited. A filter by this field currently returns the |
|
companies |
Contact companies. An array of objects of type CRM item. If there are no companies, an empty array. Read-only. Requested in |
|
companyId |
ID of the contact's primary company, which is the first one in the Read-only. Can be filtered and sorted |
|
company |
Primary company of the contact. An object of type CRM item. Read-only. Requested in |
|
leadId |
ID of the lead from which the contact was created. If the contact was not created from a lead, Read-only. Can be filtered and sorted |
|
lead |
Lead from which the contact was created. An object of type CRM item. Read-only. Requested in |
|
phone |
Contact phone numbers. An array of objects of type multiple field value. Phone types are returned by the crm.dictionary.phonetype.list method. Can be edited. Can be filtered by value fields using dot notation, for example, |
|
email |
Email addresses. An array of objects of type multiple field value. Email types are returned by the crm.dictionary.emailtype.list method. The method validates the address format and returns the error 'The field "Work E-mail" contains an incorrect address.' for an invalid address. Can be edited. Can be filtered by value fields using dot notation, for example, |
|
web |
Websites and social media pages. An array of objects of type multiple field value. Website types are returned by the crm.dictionary.webtype.list method. Can be edited. Can be filtered by value fields using dot notation, for example, |
|
im |
Messengers and open channels. An array of objects of type multiple field value. Messenger types are returned by the crm.dictionary.imtype.list method. Can be edited. Can be filtered by value fields using dot notation, for example, |
|
hasPhone |
Whether the contact has at least one phone number: Read-only. Cannot be filtered or sorted |
|
hasEmail |
Whether the contact has at least one email address: Read-only. Cannot be filtered or sorted |
|
hasWeb |
Whether the contact has at least one website: Read-only. Cannot be filtered or sorted |
|
hasIm |
Whether the contact has at least one value in the Read-only. Cannot be filtered or sorted |
|
sourceId |
Source ID, for example, Can be edited, filtered, and sorted |
|
source |
Source. An object of type reference list value. Read-only. Requested in |
|
sourceDescription |
Additional information about the source. Can be edited and filtered, cannot be sorted |
|
assignedById |
ID of the person responsible for the contact. User IDs are returned by the user.get method. If the user does not exist, the method returns the error 'Field value is not one of the possible values'. Can be edited, filtered, and sorted |
|
assignedBy |
Responsible person. An object of type employee. Read-only. Requested in |
|
observersId |
Observer IDs. User IDs are returned by the user.get method. The passed array replaces the current list of observers. Can be edited and filtered, cannot be sorted. In a filter, |
|
observers |
Observers. An array of objects of type employee. If there are no observers, an empty array. Read-only. Requested in |
|
opened |
Whether the contact is available to all users: Can be edited, filtered, and sorted |
|
comments |
Comment on the contact. Can be edited. Cannot be filtered or sorted |
|
utm |
UTM tags of the contact. An object of type UTM tags. Can be edited. Can be filtered by object fields using dot notation, for example, |
|
trackingSourceId |
ID of the end-to-end analytics source. If the source does not exist or is archived, the method returns an error stating that the end-to-end analytics source was not found or is archived. Can be edited and filtered, cannot be sorted |
|
originatorId |
ID of the external system the contact was imported from. Use together with Can be edited, filtered, and sorted |
|
originId |
Contact ID in the external system. Can be edited, filtered, and sorted |
|
originVersion |
Record version in the external system. Can be edited. Cannot be filtered or sorted |
|
createdTime |
Date and time the contact was created. Read-only. Can be filtered and sorted |
|
createdById |
ID of the user who created the contact. The user data is in the Read-only. Can be filtered and sorted |
|
createdBy |
User who created the contact. An object of type employee. Read-only. Requested in |
|
updatedTime |
Date and time the contact was last updated. Read-only. Can be filtered and sorted |
|
updatedById |
ID of the user who last updated the contact. Read-only. Can be filtered and sorted |
|
updatedBy |
User who last updated the contact. An object of type employee. Read-only. Requested in |
|
lastActivityTime |
Date and time of the last activity in the contact timeline. Read-only. Can be filtered and sorted |
|
lastActivityById |
ID of the author of the last activity in the timeline. Read-only. Can be filtered and sorted |
|
lastActivityBy |
Author of the last activity in the timeline. An object of type employee. Read-only. Requested in |
|
webformId |
ID of the CRM form through which the contact was created. If the contact was not created by a form, Read-only. Can be filtered and sorted |
|
webform |
CRM form through which the contact was created. An object of type CRM form. Read-only. Requested in |
|
lastCommunication |
Dates of the last communications with the contact. An object of type last communication. Read-only. Requested in |
|
entityTypeId |
Object type ID. For a contact, Read-only |
|
canRead |
Whether the current user can view the contact: Read-only |
|
url |
Relative link to the contact card, for example, Read-only |
Phone Numbers, Email, Websites, and Messengers
The phone, email, web, and im fields are arrays of values. Each value is an object with the following fields:
|
Name |
Description |
|
id |
Value ID. Assigned when writing data and cannot be passed: the method returns the error 'Field "id" is read-only.' |
|
valueTypeId |
Value type, for example, |
|
valueType |
Value type with its name: |
|
value |
Value: phone number, email address, website address, or messenger ID. Required when writing data |
When writing data, pass an array of objects with the valueTypeId and value fields:
{
"phone": [
{"valueTypeId": "WORK", "value": "+49300000001"},
{"valueTypeId": "MOBILE", "value": "+49300000002"}
]
}
In the response, each value is returned with id and the valueType object:
{
"phone": [
{
"id": 8871,
"valueTypeId": "MOBILE",
"valueType": {
"id": "MOBILE",
"name": "Mobile",
"nameShort": "Mobile"
},
"value": "+49300000003"
}
]
}
How writing works:
crm.contact.updatereplaces all values of the field with the passed array. Values not included in the array are deleted. Other multiple fields not included infieldsdo not change- an empty array, for example,
"phone": [], deletes all values of the field - a single value is added by the crm.contact.addfieldvalue method and deleted by crm.contact.deletefieldvalue. In
value, pass the object{"valueTypeId": "MOBILE", "value": "+49300000008"}. If such a value already exists,addfieldvaluereturns the error "The field value already exists." - one field can contain up to 50 values, and all four fields together up to 100. If the limit is exceeded, the method returns the error "Too many phone multifields."
File Object
Field photo. To upload a photo, pass the upload object with the file name and the content in Base64 or a link to the file:
{
"photo": {
"upload": {
"name": "photo.png",
"data": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8DwHwAFBQIAX8jx0gAAAABJRU5ErkJggg=="
}
}
}
Instead of data, you can pass url — the file address. You cannot pass data and url at the same time.
In the response, the field contains the data of the uploaded file:
|
Name |
Description |
|
id |
File ID, for example, |
|
name |
File name |
|
url |
Address for viewing the file in Bitrix24 |
|
downloadUrl |
Address for downloading the file via REST. The address contains the webhook authorization data, do not publish it |
UTM Tags Object
Field utm. When writing data, pass only the tags you need: on creation, the other tags are set to null; on update, they keep their current values. Each tag is a string of up to 255 characters.
|
Name |
Description |
|
source |
Ad platform, the |
|
medium |
Traffic type, the |
|
campaign |
Ad campaign, the |
|
content |
Ad content, the |
|
term |
Keyword, the |
Related Objects
A related object is requested in select by the field name without the Id suffix: assignedBy, honorific, company. The whole object name returns all of its fields, and a dot-notation path returns only the selected ones, for example, ["type.name", "assignedBy.firstName"]. The path supports one level of nesting: the method does not accept company.createdBy.firstName.
A linked CRM item — company, companies, lead — returns only id when requested by its whole name. Request the other item fields using dot notation. Dot notation gives access to the fields of the CRM item object and to any fields of the linked item's type, for example, ["company.title", "company.phone", "company.industryId"]. Company fields are described in the Company Fields in REST 3.0 article.
If a link is not set, the object is returned as null, and an array of objects, for example, observers or companies, is returned as an empty array.
Employee Object
Fields createdBy, updatedBy, lastActivityBy, assignedBy, observers.
|
Name |
Description |
|
id |
User ID |
|
firstName |
First name |
|
lastName |
Last name |
|
personalGender |
Gender: |
|
url |
Relative link to the user profile, for example, |
|
personalPhoto |
Link to the user photo. If there is no photo, |
CRM Item Object
Fields company, companies, lead.
|
Name |
Description |
|
id |
Item ID |
|
entityTypeId |
Object type ID: |
|
canRead |
Whether the current user can view the item |
|
title |
Item title |
|
url |
Relative link to the item card, for example, |
Reference List Value Object
Fields honorific, type, source.
|
Name |
Description |
|
id |
Value ID, for example, |
|
name |
Value name, for example, |
|
sort |
Sort order |
CRM Form Object
Field webform.
|
Name |
Description |
|
id |
CRM form ID |
|
name |
CRM form name |
Last Communication Object
Field lastCommunication. If there has been no communication of a given kind, the corresponding field is null.
|
Name |
Description |
|
communicationTime |
Date and time of the last communication of any kind |
|
callTime |
Date and time of the last call |
|
emailTime |
Date and time of the last email |
|
imolTime |
Date and time of the last message in an open channel |
|
webformTime |
Date and time the CRM form was last submitted |
Custom Fields
Custom contact fields are named UF_CRM_<code>, for example, UF_CRM_1716289811. They are passed and requested by name in the same way as standard fields. The list of custom contact fields is returned by the crm.contact.field.custom.list method.
The value of a "Money" field is passed as an object {"sum": 150.5, "currencyId": "EUR"}. A string such as 150.5|EUR is not accepted: the method returns the error 'This request requires data type "MoneyDto" in field "UF_CRM_…"'.
Each custom field has a paired UF_CRM_…_data field, which is read-only and requested in select. It contains the value in several representations:
value— the value in the same format as in the field itselfrawValue— the value in the storage format, for example,150.5|EURfor a "Money" fieldformattedValue— the value for display to the user:150.50 €for money, the employee name for a "Link to employee" fieldextra— additional data: for money,amount,currencyId, andcurrencyFullName; for an employee, the fields of the employee object. For a string, number, and date,null
For a multiple custom field, UF_CRM_…_data is an array of such objects.