Contacts in CRM: Overview of Methods

Choose a tool for working 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 and the AI agent rules to have the agent write integration code or work with Bitrix24 data on your behalf. The agent refers to the official REST documentation, confirms actions with consequences, and verifies the result

A contact is a CRM object that stores data about clients—individuals. The contact card stores phone numbers, email addresses, and messenger identifiers that you can use to communicate with the client directly from Bitrix24.

Development of the crm.contact.*, crm.contact.company.*, crm.contact.details.configuration.*, and crm.contact.userfield.* methods has been discontinued. For new development, use the contact methods in REST 3.0 — see the replacement table in Current API Version.

Quick navigation: all methods and events

User documentation: contacts in Bitrix24

Current API Version

Contact methods are available in REST 3.0 under the same names, for example crm.contact.add, but are called at /rest/api/. The crm.contact.* methods belong to the previous API version — retain them only in existing integrations. Replacements for all CRM methods are listed on the Migrate to New CRM Methods page.

Previous Version Method

REST 3.0 Equivalent

crm.contact.add

crm.contact.add

crm.contact.update

crm.contact.update

crm.contact.get

crm.contact.get

crm.contact.list

crm.contact.list

crm.contact.delete

crm.contact.delete

crm.contact.fields

crm.contact.field.list

crm.contact.company.*

crm.contact.get and crm.contact.update with the companiesId field, crm.contact.addfieldvalue, crm.contact.deletefieldvalue. Only crm.contact.company.add can make a company primary when adding it without overwriting the company list

crm.contact.details.configuration.*

crm.contact.detailpagelayout.*. The crm.contact.details.configuration.reset method has no equivalent

crm.contact.userfield.*

crm.contact.field.custom.*. Only crm.contact.userfield.add can create enumeration (list) and file fields

Field names differ: crm.contact.* accepts and returns fields in UPPER_CASE format, for example LAST_NAME, while REST 3.0 uses camelCase, for example lastName. Contact fields in REST 3.0 are described on the Contact Fields page.

How to Get Started

This sequence is for existing integrations that use previous-version methods. For new development, use the equivalents in Current API Version.

  1. Retrieve the description of contact fields with the crm.contact.fields method — it returns system and custom fields with their types.
  2. Create a contact with the crm.contact.add method. If NAME and LAST_NAME are not filled in, the contact is created with the last name Contact #N, where N is its identifier. Pass phone numbers and e-mail in the multiple fields PHONE and EMAIL — these are arrays of objects with the VALUE and VALUE_TYPE keys.
  3. Link the contact to companies with the crm.contact.company.* methods if the client represents several companies.
  4. Find the contacts you need with the crm.contact.list method: it accepts filter, order, and select, and returns the result in pages of 50 records.
  5. Communicate with the client in the contact card — with activities crm.activity.* and timeline records crm.timeline.*.
  6. Subscribe to contact events to receive notifications about changes in your application.

Example contact data with a phone number and e-mail:

{
            "NAME": "Klaus",
            "PHONE": [{"VALUE": "+4915123456789", "VALUE_TYPE": "WORK"}],
            "EMAIL": [{"VALUE": "klaus@example.com", "VALUE_TYPE": "WORK"}]
        }
        

Relationships with Other CRM Objects

Deal, lead, SPA. Any CRM object that has the standard field Client is connected to contacts. The connection is managed by the methods for deals, leads, and SPAs in REST 3.0: contact identifiers are passed in the contact linking fields of these objects.

Company. A single contact can be linked to multiple companies. This connection is managed using the group of methods crm.contact.company.*. When you select a company in the Client field in deals or SPAs, all associated contacts are automatically pulled into the field.

Requisites. Requisites are a separate object. Contact requisites are created and modified using the REST 3.0 methods crm.contact.requisite.*, and contact addresses using crm.contact.address.*. In the previous API version, these are the crm.requisite.* and crm.address.* methods, where a requisite is linked to a contact using the ENTITY_TYPE_ID = 3 and ENTITY_ID fields. Requisites are displayed in the Requisites field of the contact card. For details, see Requisite Links with CRM Objects.

Contact Card

The main workspace in a contact is the General tab of its card. It consists of two parts:

  • The left part contains fields with information. If the system fields are insufficient, you can create your own custom fields. They allow you to store information in various data formats: string, number, link, address, and others. Custom contact fields are managed by the crm.contact.userfield.* methods.

  • The right part contains the contact's timeline with activities and records. The methods for working with them are listed in step 5 of How to Get Started.

The parameters of the contact card can be managed through the group of methods crm.contact.details.configuration.*.

Widgets

You can embed an application into the contact card and work with it without leaving the card.

There are two ways to embed an application:

Overview of Methods and Events

Scope: crm

Who can execute the method: depending on the method. Contact methods check access permissions for contacts, and company linking methods check permissions for contacts and companies. Any user can retrieve and modify their own personal card settings. Shared settings can be changed by a user with the "Manage CRM item form layout" or "Edit CRM preferences" permission in CRM. Custom fields can be created, modified, and deleted by a user with the "Edit CRM preferences" permission in CRM. Any user can subscribe to events. Administrator permissions are required for offline events

Basic

Method

Description

crm.contact.add

Creates a new contact

crm.contact.update

Updates an existing contact

crm.contact.get

Returns a contact by ID

crm.contact.list

Returns a list of contacts by filter

crm.contact.delete

Deletes a contact

crm.contact.fields

Returns the description of contact fields, including custom fields

Event

Triggered

onCrmContactAdd

When a contact is created

onCrmContactUpdate

When a contact is updated

onCrmContactDelete

When a contact is deleted

Companies

Method

Description

crm.contact.company.add

Adds a company to the specified contact

crm.contact.company.delete

Removes a company from the specified contact

crm.contact.company.items.get

Returns the set of companies associated with the specified contact

crm.contact.company.items.set

Sets the set of companies associated with the specified contact

crm.contact.company.items.delete

Clears the set of companies associated with the specified contact

crm.contact.company.fields

Returns the description of fields for contact-company connection

Custom Fields

Method

Description

crm.contact.userfield.add

Creates a custom field for contacts

crm.contact.userfield.update

Modifies an existing custom field for contacts

crm.contact.userfield.get

Returns a custom field for contacts by ID

crm.contact.userfield.list

Returns a list of custom fields for contacts

crm.contact.userfield.delete

Deletes a custom field for contacts

Event

Triggered

onCrmContactUserFieldAdd

When a custom field is added

onCrmContactUserFieldUpdate

When a custom field is updated

onCrmContactUserFieldDelete

When a custom field is deleted

onCrmContactUserFieldSetEnumValues

When values are set for a list-type custom field

Managing Contact Cards

Method

Description

crm.contact.details.configuration.get

Returns the settings of the contact card

crm.contact.details.configuration.set

Sets the settings of the contact card

crm.contact.details.configuration.reset

Resets the settings of the contact card

crm.contact.details.configuration.forceCommonScopeForAll

Forcefully sets a common contact card for all users