CRM: Overview of Sections and Methods

CRM methods manage the Bitrix24 customer base: leads, deals, contacts, companies, estimates, invoices, and SPAs. They create and update items, move them through pipelines and stages, record the history of work in the timeline, generate documents, and launch automation.

CRM methods in REST 3.0 are intended for new development, and they are called at the /rest/api/ address. The methods of the previous API version are called at the /rest/ address and are kept to support existing integrations.

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

Quick navigation: all sections and methods

User documentation: CRM implementation steps

Which API Version to Choose

If you need to

Open the section

Start a new integration: work with CRM and SPA items, their fields, pipelines and stages, products, requisites, addresses, activities, and card views

REST 3.0 Methods

Collect requests from a website and create CRM objects from them

CRM Forms

Configure SPA types, work with the timeline, documents, automation, and other sections that are not available in REST 3.0

Sections Available Only in the Previous Version

Support an existing integration built on methods at the /rest/ address

Previous API Version

Migrate an integration from the methods of the previous version to REST 3.0

Migrating to the New CRM Methods

Object Type in the Method Name

In REST 3.0, the object type is part of the method name: crm.<type>.<action>. For example, crm.deal.add creates a deal, and crm.smartprocess1038.add creates an SPA item with the type ID 1038. That is why the documentation has one page per action for all types, and each page starts with a table that lists the full method name for every type.

Object type

Segment in the method name

Example

Deal

deal

crm.deal.list

Lead

lead

crm.lead.list

Contact

contact

crm.contact.list

Company

company

crm.company.list

Estimate

quote

crm.quote.list

Invoice

smartinvoice

crm.smartinvoice.list

My company

mycompany

crm.mycompany.list

CRM document

smartdocument

crm.smartdocument.productrow.list

B2E document

smartb2edocument

crm.smartb2edocument.detailpagelayout.list

SPA

smartprocess<entityTypeId>

crm.smartprocess1038.list

The SPA type ID entityTypeId is returned by the crm.type.list method. REST 3.0 has no equivalent of this method, so call it at the previous version address /rest/.

The method name is written in lowercase: crm.smartinvoice.add and crm.deal.productrow.list, not crm.smartInvoice.add and crm.deal.productRow.list. A method with different casing or with a type that does not exist, for example crm.smartprocess99999.add, returns the BITRIX_REST_V3_EXCEPTION_METHODNOTFOUNDEXCEPTION error with status 404.

System Field Visibility

The "Field visibility" setting lets an administrator restrict which users can see a configurable CRM system field. For deals and SPAs, the restriction can be set in a specific pipeline or at the "All pipelines" level. Leads and estimates have no pipelines, so the common level applies. Contacts and companies have no "All pipelines" level: the setting applies only in the selected category, including the category of regular contacts or companies.

Restrictions apply only if an administrator has configured field visibility. Without visibility settings, fields are not hidden. Restrictions do not apply to Bitrix24 administrators and CRM administrators. The permission to configure visibility does not by itself exempt a user from the restrictions.

Fields That Can Be Hidden

The set of configurable fields depends on the object type. For example, a deal can hide the type TYPE_ID, probability PROBABILITY, comment COMMENTS, source SOURCE_ID, source description SOURCE_DESCRIPTION, UTM tags, links to the client and to my company, and start and end dates.

Not every system field supports this setting. For example, a deal cannot hide ID, TITLE, CATEGORY_ID, STAGE_ID, OPPORTUNITY, CURRENCY_ID, or the responsible person ASSIGNED_BY_ID. Fields that are not in the list of configurable fields for the object type are not hidden by this setting either.

Methods of the Previous API Version

In the crm.deal.*, crm.lead.*, crm.contact.*, crm.company.*, crm.quote.* methods and other CRM item proxies, a field hidden from the user is treated as unknown when reading:

  • *.fields does not return the field description if the field is hidden in at least one pipeline or category
  • *.get and *.list do not return the key and value of a hidden field; the rule of the pipeline or category of the specific item applies
  • a filter condition and an order key on a hidden field are silently discarded, and the response comes without a field visibility error. To determine hidden fields for filtering and sorting, all pipelines or categories of the object type are taken into account

For example, if SOURCE_ID is hidden from the user, a filter on it does not narrow the selection: the request runs as if the condition were absent. Specifying the field explicitly in select does not return its value.

The read restriction in these proxies does not block writing a hidden field through the add and update methods. The usual permission and field value checks still apply.

The universal crm.item.* methods handle visibility as follows:

  • crm.item.fields excludes the description of a field hidden in at least one pipeline or category of the object type
  • crm.item.get and crm.item.list exclude hidden keys and values based on the pipeline or category of each item, including when the field is selected explicitly
  • crm.item.list silently discards filter conditions and order keys on hidden fields, taking into account restrictions in all pipelines or categories of the object type

Some methods apply the restrictions when updating activities and searching for duplicates:

  • crm.activity.update excludes from the input data the fields hidden from the user in the context of the activity. If nothing remains of a non-empty set of fields after that, the method returns true without making any changes
  • crm.duplicate.findbycomm searches for matches only in the object types and categories where the requested communication type is visible to the user. Matches on a hidden phone number or email are not returned and do not count toward the search limit; if there is nowhere to search, the result is empty

REST 3.0

In REST 3.0, a filter condition on a hidden system field results in the BITRIX_REST_V3_EXCEPTION_UNKNOWNDTOPROPERTYEXCEPTION error with HTTP status 400. This also applies to hidden types of multiple fields, such as phone or email, and to nested conditions on a hidden field.

Explicitly selecting a hidden system field in select of the item retrieval and list methods also results in this error.

Methods Available for Each Object Type

Not every group of REST 3.0 methods is available for every type. For example, only deals and SPAs have stages, and only contacts and companies have requisites.

Method group

deal

lead

contact

company

quote

smartinvoice

mycompany

smartdocument

smartb2edocument

smartprocess

Items

+

+

+

+

+

+

+

—

—

+

Primary contact setprimarycontact

+

+

—

—

+

+

—

+

+

+

Field descriptions field.get, field.list

+

+

+

+

+

+

+

—

—

+

Custom fields and required fields

+

+

+

+

+

+

—

—

—

+

Pipelines

+

—

+

+

—

—

—

—

—

+

Stages

+

—

—

—

—

—

—

—

—

+

Product items

+

+

—

—

+

+

—

+

—

+

Requisites and bank details

—

—

+

+

—

—

—

—

—

—

Client requisites

+

—

—

—

+

+

—

+

—

+

My company requisites

+

—

—

—

—

+

—

—

—

—

Addresses

—

+

+

+

—

—

—

—

—

—

Card views

+

+

+

+

+

+

—

+

+

+

Activities

+

+

+

+

+

+

—

+

—

+

Directories and lead mode are not tied to an object type: crm.dictionary.<directory>.*, crm.lead.isenabled, crm.lead.enable, crm.lead.disable.

The exact list of methods available in your Bitrix24 is returned by the OpenAPI documentation.

SPA Methods Depend on the Type Settings

For an SPA, a "+" in the table means that the group is available when the corresponding type setting is enabled:

  • without pipelines isCategoriesEnabled, there are no pipeline or stage methods
  • without stages isStagesEnabled, there are no stage methods
  • without products isLinkWithProductsEnabled, there are no product item methods
  • without client linking isClientEnabled, there is no setprimarycontact method

The set of fields also depends on the settings. The fields that disappear without each setting are described on the SPA fields page.

How to Get Started

  1. Determine the object type and the method name from the Object Type in the Method Name table. For an SPA, retrieve entityTypeId with the crm.type.list method
  2. Look up the fields of the type on its fields page, for example Deal fields, or with the crm.<type>.field.list method
  3. Create an item with the crm.<type>.add method
  4. Retrieve items with the crm.<type>.list method. Without the select parameter, the get and list methods return only id, so list the fields you need in select
  5. Add products, requisites, or addresses to the item with the methods of the corresponding group from the overview of methods

How REST 3.0 differs from the previous version and how to migrate an existing integration to it is described on the Migrating to the New CRM Methods page.

Widgets

An application can be embedded into a CRM entity card or list — as its own tab, as a menu item of a card, a list, or analytics, as a button above the timeline, or in sales funnels. All the placements and the parameters passed to the handler are collected in the section Widgets in CRM: Overview of Placements.

Relationships with Other Entities

CRM entities are linked to Bitrix24 users, tasks, the product catalog, telephony, and CRM forms.

Users. The person responsible for the CRM object is stored in the assignedById field in REST 3.0 and universal methods and in the ASSIGNED_BY_ID field in entity methods. User data can be retrieved using the user.get or user.search methods.

Tasks. Tasks are linked to CRM entities through the multiple field UF_CRM_TASK. It takes an array of identifiers prefixed with the entity type, for example ["D_10", "C_7"]. The prefixes are listed in the article Data Types and Structure of Objects. The relationship is recorded when creating a task using the tasks.task.add method, and it can be read using the tasks.task.get method. For the field to accept Smart Process items, enable task linking for the entity type with the linkedUserFields parameter in the crm.type.update method.

Catalog. Product items in deals and estimates are sourced from the product catalog. Products can be managed using the catalog.product.* methods.

Telephony. Calls create activities in the CRM timeline. The telephony.externalcall.finish method ends the call and returns the identifier of the created activity in the CRM_ACTIVITY_ID parameter.

CRM forms. Submitting a CRM form creates a lead, a deal, an estimate, or an SPA item. Forms are created and configured with the REST 3.0 methods crm.form.*.

Overview of Sections and Methods

Scope: crm

Who can execute the method: depending on the method

REST 3.0 Methods

Section

What the methods do

Items

Create, update, retrieve, count, and delete CRM items, work with multiple fields and the primary contact. This section also has the fields page for each object type

Field Management

Return field descriptions, create custom fields and list values, and set required fields

Pipelines and Stages

Create and configure pipelines and stages of deals and SPAs, and pipelines of contacts and companies

Product Items

Add, update, and replace products in deals, leads, estimates, invoices, documents, and SPAs

Requisites

Work with requisites, bank details, and requisite addresses of contacts and companies, and link client and my company requisites to items

Addresses

Work with addresses of contacts, companies, and leads

Card Views

Configure the sections and fields of the item card, select the view for a user, and set the common view

Activities

Retrieve, complete, and delete activities, manage activity links to items, and work with emails. Activities and comments are created by the timeline methods of the previous version

Directories

Return and modify CRM directories: deal and contact types, sources, salutations, industries, and others

Lead Mode

Check, enable, and disable leads in CRM

CRM Forms

Create, configure, enable, and delete CRM forms, and retrieve the code for embedding a form on a website

Sections Not Available in REST 3.0

These methods are called at the previous version address /rest/.

Section

What the methods do

SPA Types

Create and configure SPA types. The type ID entityTypeId is required for the REST 3.0 method name, for example crm.smartprocess1038.add

Timeline and Activities

Create activities, comments, log entries, and other timeline items

Document Generator

Generate documents from templates and manage templates and numerators

CRM Automation

Run webhook triggers and register application triggers

Digital Workplaces

Create and configure digital workplaces for SPAs

Currencies

Manage CRM currencies, the base currency, and localization

Call Lists

Create call lists and manage their statuses

Finding and Merging Duplicates

Find and merge duplicate CRM records

Sales Intelligence

Create traces and link CRM objects to lead sources

Stage Movement History

Returns the history of item movement through stages

Previous API Version

The universal methods crm.item.*, the methods of deals, leads, contacts, companies, and estimates, requisites, the crm.status.* directories, and auxiliary objects are kept to support existing integrations. They are collected in the Previous API Version section.