Typical use-cases and scenarios for REST API in CRM and tutorials

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

The CRM reference describes individual methods, while tutorials show how to assemble a working scenario out of them: in which order to call the methods, which identifiers to pass between requests, and what to verify in the result.

Tutorials are grouped into five directions. Select a direction by your task, and inside it a tutorial for the specific case. An overview of the directions with a table of common scenarios is collected on the CRM: Common Scenarios page.

Quick links: All Scenarios

User documentation: How to Start Working with CRM in Bitrix24

Scenarios by Direction

Add Data

The scenarios create leads, contacts, companies, deals, activities, documents, and smart process items, and also link requisites, addresses, and product rows to them. Main method groups: crm.lead.*, crm.contact.*, crm.company.*, crm.deal.*, crm.item.*, activities, and requisites. An overview of the direction is available in How to Add Data to CRM: Overview of Use Cases and Scenarios.

If You Need To

Open

Accept a request from a website form and create a lead

Add a Lead via Web Form

Create a lead for a customer who has already contacted you

Add Repeat Lead

Create a contact from website form data

Add Contact via Web Form

Create a company from website form data

Adding a Company via Web Form

Create a deal and a company with a choice of requisites

Add a Deal and Company with Requisites

Accept a request with attached files

Add Lead with Files via Web Form

Create a contact together with requisites and an address

Add a Contact with Requisites via Web Form

Create a company together with requisites and an address

Add a Company with Requisites via Web Form

Add a vendor for inventory documents

How to Create a Vendor in CRM

Create an activity taking the CRM mode into account — simple or classic

Add a CRM Activity to a New Lead or Deal Depending on the CRM Mode

Schedule a meeting or a calendar event for a customer

Add Calendar Event for Client Management

Send an email to a customer on behalf of an employee

How to Send an E-mail to a Client on Behalf of an Employee

Build a document from a template — an invoice, a contract, or a statement

How to Add a Template and Create a Document Based on It

Post a comment to the timeline of a smart process

How to Add a Comment to the Timeline of a Smart Process

Add a custom field to a smart process

How to Create a Custom Field in a Smart Process

Set the rounding of a numeric field

How to Configure Rounding for a Number Custom Field

Create a pipeline with stages in a smart process

How to Create a New Sales Funnel with Stages in a Smart Process

Add products with discounts and taxes to a CRM object

How to Create a CRM Object with Products, Discounts, and Taxes

Edit Data

The scenarios update card fields, phone numbers and emails, move activities between objects, and write the payment date into a deal field. Main method groups: crm.item.*, crm.lead.*, crm.contact.*, crm.company.*, crm.deal.*, and activities. An overview of the direction is available in Editing Data in CRM.

If You Need To

Open

Provide an employee with a web form for creating and editing a lead

How to Create a Custom Lead Edit Form

Provide a web form for creating and editing a contact

How to Create a Custom Contact Edit Form

Provide a web form for creating and editing a company

How to Create Your Own Company Edit Card

Provide a web form for a deal with a choice of pipeline and stage

How to Create a Custom Deal Edit Form

Change or delete a customer phone number and email

How to Change or Delete Phone Numbers and Emails

Shift the due date and reminders of a scheduled activity

How to Reschedule a Planned Activity

Move an activity to another item of the same type

How to Move an Activity Between Items of the Same Type

Move an activity to an object of a different type

How to Move an Activity from One Object Type to Another

Copy the payment date into a deal field

How to Save the Payment Date in the Deal Field

Retrieve Lists

The scenarios find duplicates, retrieve activities, stages, pipelines, addresses, and vendors, and filter items by stage. Main method groups: crm.duplicate.*, crm.status.*, crm.category.*, crm.item.*, and requisites. An overview of the direction is available in Retrieving Lists in CRM.

If You Need To

Open

Check whether the customer is already in CRM before creating a new one

How to Find Duplicates in CRM by Phone and Email

Retrieve a customer address from requisites

How to Retrieve a Customer Address from the CRM

Retrieve the stages of an object together with their semantics

How to Retrieve a List of Stages with Semantics for CRM Entities

Retrieve deal pipelines with their stages

How to Get Deal Pipelines with Stages and Semantics

Select the items that are at a particular stage

How to Filter Items by Stage Name

Retrieve activities linked to an employee’s deals

How to Retrieve a List of Activities from Deals

Select contacts and companies marked as vendors

How to Retrieve a List of Vendors

Sales Intelligence

The scenarios pass the source of the inquiry and the customer journey into CRM through UTM fields, the TRACE field, or a separate trace. Main method groups: CRM tracking and the methods that create CRM objects. An overview of the direction is available in How to Use Sales Intelligence Data.

If You Need To

Open

Choose how to pass the data — UTM fields, TRACE, or a separate trace

How to pass data to Sales Intelligence

Pass the source of the inquiry when creating a lead

How to Use Sales Intelligence When Creating a Lead

Link a contact and a deal to a single trace

How to Link a Contact and a Deal to Sales Intelligence

Widgets in CRM

The scenarios embed the application interface into a CRM card — through a custom field or a separate tab. Main method groups: widgets and custom field types. An overview of the direction is available in How to embed widgets in CRM.

If You Need To

Open

Show the application inside a field of a lead card

How to Embed a Widget into a Lead as a Custom Field

Add your own tab to a CRM card

How to Embed a Widget into a CRM Item Tab

Continue Your Exploration