Import One Record crm.item.import

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

Scope: crm

Who can execute the method: a user with permission to import CRM items

The crm.item.import method imports one item into the CRM.

Import uses separate permissions and does not trigger item creation automation. Learn more about import specifics in the method overview.

Method Parameters

Required parameters are marked with *

Name
type

Description

entityTypeId*
integer

Identifier of the system or custom CRM type into which the item should be imported.

Numerical values for system types, such as lead — 1, deal — 2, contact — 3, company — 4, and invoice — 31, are provided in the CRM object types reference. You can obtain a SPA identifier using the crm.type.list method.

fields*
object

Field values of the item being imported (detailed description)

useOriginalUfNames
boolean

Parameter to control the format of custom field names in the request.
Possible values:

  • Y — original names of custom fields, e.g., UF_CRM_2_1639669411830
  • N — custom field names in camelCase, e.g., ufCrm2_1639669411830

Default is N.

Parameter fields

The field set depends on the CRM object type. Pass field names as object keys and field values as their values:

{
            field_1: value_1,
            field_2: value_2
        }
        

An invalid field in fields will be ignored. You can get the current field set using the universal method crm.item.fields or the methods crm.lead.fields, crm.deal.fields, crm.contact.fields, crm.company.fields, and crm.quote.fields.

Pass multiple fields, such as PHONE and EMAIL, in the crm_multifield format.

CRM type identifier entityTypeId: 1

Name
type

Description

title
string

Name of the entity.

By default, it is generated using the template {entityTypeName} #{id}, where

  • entityTypeName — object type name
  • id — identifier of the element

For example, for a lead with id = 13 — Lead #13

honorific
crm_status

String identifier of the lead salutation, for example, HNR_RU_1 — "Mr."

You can get the list of available salutations using crm.status.list with the filter { ENTITY_ID: "HONORIFIC" }.

By default — null

name
string

First name.

By default — null

secondName
string

Middle name.

By default — null

lastName
string

Last name.

By default — null

birthdate
date

Date of birth.

By default — null

companyTitle
string

Company name.

By default — null

sourceId
crm_status

String identifier for the source.

For example, CALL — "Call".

You can get the list of available sources using crm.status.list with the filter { ENTITY_ID: "SOURCE" }.

By default — the first available source

sourceDescription
text

Additional information about the source.

By default — null

stageId
crm_status

String identifier for the stage of the element.

For example, NEW — "Unprocessed".

You can get the list of available stages using crm.status.list with the filter { ENTITY_ID: "STATUS" }

By default — the first available stage

statusDescription
text

Additional information about the stage.

By default — null

post
string

Position.

By default — null

currencyId
crm_currency

Identifier for the currency of the element.

By default — the default currency

isManualOpportunity
boolean

Calculation mode for the amount. Possible values:

  • Y — manual
  • N — automatic

By default — N

opportunity
double

Amount.

By default — null

opened
boolean

Is the element available to everyone? Possible values:

  • Y — yes
  • N — no

By default — Y. The default value can be changed in the CRM settings

comments
text

Comment.

By default — null

assignedById
user

Identifier of the person responsible for the element.

By default — the identifier of the user who calls the method

companyId
crm_company

Identifier of the company linked to the element.

You can retrieve the list of companies using crm.item.list with entityTypeId = 4.

By default — null

contactId
crm_contact

Identifier of the contact linked to the element.

You can retrieve the list of contacts using crm.item.list with entityTypeId = 3.

By default — null

contactIds
crm_contact[]

Array of identifiers of contacts linked to the item.

You can retrieve the list of contacts using crm.item.list with entityTypeId = 3.

By default — null

originatorId
string

External source.

By default — null

originId
string

Identifier of the element in the external source.

By default — null

webformId
integer

Identifier of the CRM Form.

By default — null

observers
user[]

Array of identifiers of users who will observe the item.

By default — null

utmSource
string

Advertising system. For example: Google-Adwords

By default — null

utmMedium
string

Type of traffic. Possible values:

  • CPC — ads
  • CPM — banners

By default — null

utmCampaign
string

Identifier of the advertising campaign.

By default — null

utmContent
string

Content of the campaign. For example, for contextual ads.

By default — null

utmTerm
string

Search term for the campaign. For example, keywords for contextual advertising.

By default — null

ufCrm...
crm_userfield

User-defined field.

For information on user-defined fields, see the section Custom Fields in CRM: Overview of Methods

Values of multiple fields are passed as an array.

To upload a file, the value of the user-defined field must be an array where the first element is the file name and the second is the base64 encoded content of the file.

parentId...
crm_entity

Parent field. An element of another type of CRM object that is linked to this element.

Each such field has the code parentId + {parentEntityTypeId}

CRM type identifier entityTypeId: 2

Name
type

Description

title
string

Name of the element.

By default, it is generated using the template {entityTypeName} #{id}, where

  • entityTypeName — object type name
  • id — identifier of the element
    For example, for a deal with id = 13 — Deal #13

typeId
crm_status

String identifier of the object type.

For example, for a deal: SALE — "Sale"

You can get the list of available object types using crm.status.list with the filter { ENTITY_ID: "DEAL_TYPE" }

By default — the first available object type

categoryId
integer

Identifier of the deal funnel.

By default — 0 (general funnel)

stageId
crm_status

String identifier for the stage of the element.

For example, NEW — "Unprocessed".

You can get the list of available stages using crm.status.list with the filter:

  • if the deal is in the general funnel — { ENTITY_ID: "DEAL_STAGE" }
  • if the deal is in another funnel — { ENTITY_ID: "DEAL_STAGE_{categoryId}" }, where categoryId is the identifier of the deal funnel

By default — the first available stage in the funnel

isRecurring
boolean

Is the deal recurring? Possible values:

  • Y — yes
  • N — no

By default — N

probability
integer

Probability of successfully closing the deal, as a percentage.

By default — null

currencyId
crm_currency

Identifier for the currency of the element.

By default — the default currency

isManualOpportunity
boolean

Calculation mode for the amount. Possible values:

  • Y — manual
  • N — automatic

By default — N

opportunity
double

Amount.

By default — null

taxValue
double

Tax amount.

By default — null

companyId
crm_company

Identifier of the company linked to the element.

You can retrieve the list of companies using crm.item.list with entityTypeId = 4.

By default — null

contactId
crm_contact

Identifier of the contact linked to the element.

You can retrieve the list of contacts using crm.item.list with entityTypeId = 3.

By default — null

contactIds
crm_contact[]

Array of identifiers of contacts linked to the item.

You can retrieve the list of contacts using crm.item.list with entityTypeId = 3.

By default — null

quoteId
crm_quote

Identifier of the estimate that will be linked to the deal

begindate
date

Start date of the element.

By default — creation date

closedate
date

End date of the element.

By default — seven days after item creation

opened
boolean

Is the element available to everyone? Possible values:

  • Y — yes
  • N — no

By default — Y. The default value can be changed in the CRM settings

comments
text

Comment.

By default — null

assignedById
user

Identifier of the person responsible for the element.

By default — the identifier of the user who calls the method

sourceId
crm_status

String identifier for the source.

For example, CALL — "Call".

You can retrieve the list of available sources using crm.status.list with the filter { ENTITY_ID: "SOURCE" }.

By default — the first available source

sourceDescription
text

Additional information about the source.

By default — null

leadId
crm_lead

Identifier of the lead based on which the element is created.

By default — null

additionalInfo
string

Additional information.

By default — null

originatorId
string

External source.

By default — null

originId
string

Identifier of the element in the external source.

By default — null

observers
user[]

Array of identifiers of users who will observe the item.

By default — null

locationId
location

Identifier of the location. Service field.

By default — null

utmSource
string

Advertising system. For example: Google-Adwords

By default — null

utmMedium
string

Type of traffic. Possible values:

  • CPC — ads
  • CPM — banners

By default — null

utmCampaign string

Identifier of the advertising campaign.

By default — null

utmContent
string

Content of the campaign. For example, for contextual ads.

By default — null

utmTerm
string

Search term for the campaign. For example, keywords for contextual advertising.

By default — null

ufCrm...
crm_userfield

User-defined field. See the section Custom Fields in CRM: Overview of Methods

  • Values of multiple fields are passed as an array
  • To upload a file, the value of the user-defined field must be an array where the first element is the file name and the second is the base64 encoded content of the file.

parentId...
crm_entity

Parent field. An element of another type of CRM object that is linked to this element.

Each such field has the code parentId + {parentEntityTypeId}

CRM type identifier entityTypeId: 3

Name
type

Description

honorific
crm_status

String identifier for the contact's salutation.

For example, HNR_RU_1 — "Mr."

You can get the list of available salutations using crm.status.list with the filter { ENTITY_ID: "HONORIFIC" }.

By default — null

name
string

First name.

By default — null

secondName
string

Middle name.

By default — null

lastName
string

Last name.

By default — null

photo
file

Photo.

By default — null

birthdate
date

Date of birth.

By default — null

typeId
crm_status

String identifier of the object type.

For example, for a deal: SALE — "Sale".

You can retrieve the list of available object types using crm.status.list with the filter { ENTITY_ID: "CONTACT_TYPE" }.

By default — the first available object type

sourceId
crm_status

String identifier for the source.

For example, CALL — "Call".

You can retrieve the list of available sources using crm.status.list with the filter { ENTITY_ID: "SOURCE" }.

By default — the first available source

sourceDescription
text

Additional information about the source.

By default — null

post
string

Position.

By default — null

comments
text

Comment.

By default — null

opened
boolean

Is the element available to everyone? Possible values:

  • Y — yes
  • N — no

By default — Y. The default value can be changed in the CRM settings

export
boolean

Is the contact included in the export?

By default — Y

assignedById
user

Identifier of the person responsible for the element.

By default — the identifier of the user who calls the method

companyId
crm_company

Identifier of the company linked to the element.

You can retrieve the list of companies using crm.item.list with entityTypeId = 4.

By default — null

companyIds
crm_company

Array of identifiers of companies that will be linked to the element

leadId
crm_lead

Identifier of the lead based on which the element is created.

By default — null

originatorId
string

External source.

By default — null

originId
string

Identifier of the element in the external source.

By default — null

originVersion
string

Version of the original.

By default — null

observers
user[]

Array of identifiers of users who will observe the item.

By default — null

utmSource
string

Advertising system. For example: Google-Adwords

By default — null

utmMedium
string

Type of traffic. Possible values:

  • CPC — ads
  • CPM — banners

By default — null

utmCampaign
string

Identifier of the advertising campaign.

By default — null

utmContent
string

Content of the campaign. For example, for contextual ads.

By default — null

utmTerm
string

Search term for the campaign. For example, keywords for contextual advertising.

By default — null

ufCrm...
crm_userfield

User-defined field. See the section Custom Fields in CRM: Overview of Methods

  • Values of multiple fields are passed as an array
  • To upload a file, the value of the user-defined field must be an array where the first element is the file name and the second is the base64 encoded content of the file.

parentId...
crm_entity

Parent field. An element of another type of CRM object that is linked to this element.

Each such field has the code parentId + {parentEntityTypeId}

CRM type identifier entityTypeId: 4

Name
type

Description

title
string

Name of the element.

By default, it is generated using the template {entityTypeName} #{id}, where

  • entityTypeName — object type name
  • id — identifier of the element

For example, for a company with id = 13 — Company #13

typeId
crm_status

String identifier of the object type.

For example, for a deal: SALE — "Sale".

You can retrieve the list of available object types using crm.status.list with the filter { ENTITY_ID: "COMPANY_TYPE" }.

By default — the first available object type

logo
file

Logo.

By default — null

bankingDetails
string

Banking details.

By default — null

industry
crm_status

String identifier for the type of industry.

For example, IT — "Information Technology".

You can retrieve the list of available industries using crm.status.list with the filter { ENTITY_ID: "INDUSTRY" }.

By default — the first available industry

employees
crm_status

String identifier for the number of employees.

The value is selected from the available list, for example, EMPLOYEES_1 — "less than 50".

You can retrieve the list of available ranges using crm.status.list with the filter { ENTITY_ID: "EMPLOYEES" }.

By default — the first available employee count range

currencyId
crm_currency

Identifier for the currency of the element.

By default — the default currency

revenue
double

Annual revenue.

By default — 0

opened
boolean

Is the element available to everyone? Possible values:

  • Y — yes
  • N — no

By default — Y. The default value can be changed in the CRM settings

comments
text

Comment.

By default — null

isMyCompany
boolean

Is the company my company?

By default — N

assignedById
user

Identifier of the person responsible for the element.

By default — the identifier of the user who calls the method

contactIds
crm_contact[]

Array of identifiers of contacts linked to the item.

You can retrieve the list of contacts using crm.item.list with entityTypeId = 3.

By default — null

leadId
crm_lead

Identifier of the lead based on which the element is created.

By default — null

originatorId
string

External source.

By default — null

originId
string

Identifier of the element in the external source.

By default — null

originVersion
string

Version of the original.

By default — null

observers
user[]

Array of identifiers of users who will observe the item.

By default — null

utmSource
string

Advertising system. For example: Google-Adwords

By default — null

utmMedium
string

Type of traffic. Possible values:

  • CPC — ads
  • CPM — banners

By default — null

utmCampaign
string

Identifier of the advertising campaign.

By default — null

utmContent
string

Content of the campaign. For example, for contextual ads.

By default — null

utmTerm
string

Search term for the campaign. For example, keywords for contextual advertising.

By default — null

ufCrm...
crm_userfield

User-defined field. See the section Custom Fields in CRM: Overview of Methods

  • Values of multiple fields are passed as an array
  • To upload a file, the value of the user-defined field must be an array where the first element is the file name and the second is the base64 encoded content of the file.

parentId...
crm_entity

Parent field. An element of another type of CRM object that is linked to this element.

Each such field has the code parentId + {parentEntityTypeId}

CRM object identifier entityTypeId: 7

Name
type

Description

title
string

Name of the element.

By default, it is generated using the template {entityTypeName} #{id}, where

  • entityTypeName — object type name
  • id — identifier of the element

For example, for an estimate with id = 13 — Estimate #13

assignedById
user

Identifier of the person responsible for the element.

By default — the identifier of the user who calls the method

opened
boolean

Is the element available to everyone? Possible values:

  • Y — yes
  • N — no

By default — Y. The default value can be changed in the CRM settings

content
text

Content.

By default — null

terms
text

Terms.

By default — null

comments
text

Comment.

By default — null

dealId
crm_deal

Identifier of the linked deal.

By default — null

leadId
crm_lead

Identifier of the lead based on which the element is created.

By default — null

storageTypeId
integer

Identifier of the storage type. Possible values:

  • 1 — file
  • 2 — WebDAV
  • 3 — disk

By default:

  1. If the disk module is enabled -> Disk
  2. If the webdav module is enabled -> WebDAV
  3. File

storageElementIds
integer

Array of files.

By default — null

webformId
integer

Identifier of the CRM Form.

By default — null

companyId
crm_company

Identifier of the company linked to the element.

You can retrieve the list of companies using crm.item.list with entityTypeId = 4.

By default — null

contactId
crm_contact

Identifier of the contact linked to the element.

You can retrieve the list of contacts using crm.item.list with entityTypeId = 3

By default — null

contactIds
crm_contact[]

Array of identifiers of contacts linked to the item.

You can retrieve the list of contacts using crm.item.list with entityTypeId = 3.

By default — null

locationId
location

Identifier of the location. Service field.

By default — null

currencyId
crm_currency

Identifier for the currency of the element.

By default — the default currency

isManualOpportunity
boolean

Calculation mode for the amount.

  • Y — manual
  • N — automatic

By default — N

opportunity
double

Amount.

By default — null

taxValue
double

Tax amount.

By default — null

stageId
crm_status

String identifier for the stage of the element.

For example, DRAFT — "New".

You can retrieve the list of available stages using crm.status.list with the filter { ENTITY_ID: "QUOTE_STATUS" }.

By default — the first available stage

begindate
date

Start date of the element.

By default — creation date of the element

closedate
date

End date of the element.

By default — seven days after item creation

actualDate
date

Valid until.

By default — seven days after item creation

mycompanyId
crm_company

Identifier of my company.

By default — identifier of the first available "my" company

utmSource
string

Advertising system. For example: Google-Adwords

By default — null

utmMedium
string

Type of traffic.

  • CPC — ads
  • CPM — banners

By default — null

utmCampaign
string

Identifier of the advertising campaign.

By default — null

utmContent
string

Content of the campaign. For example, for contextual ads.

By default — null

utmTerm
string

Search term for the campaign. For example, keywords for contextual advertising.

By default — null

ufCrm...
crm_userfield

User-defined field. See the section Custom Fields in CRM: Overview of Methods.

  • Values of multiple fields are passed as an array
  • To upload a file, the value of the user-defined field must be an array where the first element is the file name and the second is the base64 encoded content of the file.

parentId...
crm_entity

Parent field. An element of another type of CRM object that is linked to this element.

Each such field has the code parentId + {parentEntityTypeId}

CRM type identifier entityTypeId: 31

Name
type

Description

title
string

Name of the element.

By default, it is generated using the template {entityTypeName} #{id}, where

  • entityTypeName — object type name
  • id — identifier of the element

For example, for an invoice with id = 13 — Invoice #13

xmlId
string

External code.

By default — null

assignedById
user

Identifier of the person responsible for the element.

By default — the identifier of the user who calls the method

opened
boolean

Is the element available to everyone? Possible values:

  • Y — yes
  • N — no

By default — Y. The default value can be changed in the CRM settings

webformId
integer

Identifier of the CRM Form.

By default — null

begindate
date

Start date of the element.

By default — creation date

closedate
date

End date of the element.

By default — seven days after item creation

companyId
crm_company

Identifier of the company linked to the element.

You can retrieve the list of companies using crm.item.list with entityTypeId = 4.

By default — null

contactId
crm_contact

Identifier of the contact linked to the element.

You can retrieve the list of contacts using crm.item.list with entityTypeId = 3.

By default — null

contactIds
crm_contact[]

Array of identifiers of contacts linked to the item.

You can retrieve the list of contacts using crm.item.list with entityTypeId = 3.

By default — null

observers
user[]

Array of identifiers of users who will observe the item.

By default — null

stageId
crm_status

String identifier for the stage of the element.

For example, DT31_13:N — "New".

You can retrieve the list of available stages using crm.status.list with the filter { ENTITY_ID: "SMART_INVOICE_STAGE_{categoryId}" }, where
categoryId is the identifier of the default invoice funnel. You can retrieve it using crm.category.list with entityTypeId = 31.

By default — the first available stage

sourceId
crm_status

String identifier for the source.

For example, CALL — "Call".

You can retrieve the list of available sources using crm.status.list with the filter { ENTITY_ID: "SOURCE" }.

By default — the first available source

sourceDescription
text

Additional information about the source.

By default — null

currencyId
crm_currency

Identifier for the currency of the element.

By default — the default currency

isManualOpportunity
boolean

Calculation mode for the amount. Possible values:

  • Y — manual
  • N — automatic

By default — N

opportunity
double

Amount.

By default — null

taxValue
double

Tax amount.

By default — null

mycompanyId
crm_company

Identifier of my company.

By default — identifier of the first available "my" company

comments
text

Comment.

By default — null

locationId
location

Identifier of the location. Service field.

By default — null

ufCrm...
crm_userfield

User-defined field. See the section Custom Fields in CRM: Overview of Methods.

  • Values of multiple fields are passed as an array
  • To upload a file, the value of the user-defined field must be an array where the first element is the file name and the second is the base64 encoded content of the file.

parentId...
crm_entity

Parent field. An element of another type of CRM object that is linked to this element.

Each such field has the code parentId + {parentEntityTypeId}

CRM type identifier entityTypeId: can be retrieved using the crm.type.list method or created using the crm.type.add method.

Name
type

Description

title
string

Name of the element.

By default, it is generated using the template {entityTypeName} #{id}, where

  • entityTypeName — name of the SPA
  • id — identifier of the element

For example, for the HR SPA item with id = 13 — HR #13

xmlId
string

External code.

By default — null

assignedById
user

Identifier of the person responsible for the element.

By default — the identifier of the user who calls the method

opened
boolean

Is the element available to everyone?

  • Y — yes
  • N — no

By default — Y. The default value can be changed in the CRM settings

webformId
integer

Identifier of the CRM Form.

By default — null

begindate
date

Start date of the element.

Available only if the isBeginCloseDatesEnabled setting is enabled for the corresponding SPA.

By default — creation date of the element

closedate
date

End date of the element.

Available only if the isBeginCloseDatesEnabled setting is enabled for the corresponding SPA.

By default — seven days after item creation

companyId
crm_company

Identifier of the company linked to the element.

You can retrieve the list of companies using crm.item.list with entityTypeId = 4.

Available only if the isClientEnabled setting is enabled for the corresponding SPA.

By default — null

contactId
crm_contact

Identifier of the contact linked to the element.

You can retrieve the list of contacts using crm.item.list with entityTypeId = 3.

Available only if the isClientEnabled setting is enabled for the corresponding SPA.

By default — null

contactIds
crm_contact[]

Array of identifiers of contacts linked to the item.

You can retrieve the list of contacts using crm.item.list with entityTypeId = 3.

Available only if the isClientEnabled setting is enabled for the corresponding SPA.

By default — null

observers
user[]

Array of identifiers of users who will observe the item.

Available only if the isObserversEnabled setting is enabled for the corresponding SPA.

By default — null

categoryId
crm_category

Identifier of the funnel of the SPA element.

You can retrieve the list of available funnels using crm.category.list with the corresponding entityTypeId

stageId
crm_status

String identifier for the stage of the element.

For example, DT1220_30:NEW — "Start".

You can retrieve the list of available stages using crm.status.list with the filter { ENTITY_ID: "DYNAMIC_{entityTypeId}_STAGE_{categoryId}" }, where

  • entityTypeId — identifier of the SPA type
  • categoryId — identifier of the SPA item funnel

Learn more about funnels.

Available only if the isStagesEnabled setting is enabled for the corresponding SPA.

By default — the first available stage in the funnel

sourceId
crm_status

String identifier of the source, for example, CALL — "Call".

You can retrieve the list of available sources using crm.status.list with the filter { ENTITY_ID: "SOURCE" }.

Available only if the isSourceEnabled setting is enabled for the corresponding SPA.

By default — the first available source

sourceDescription
text

Additional information about the source.

Available only if the isSourceEnabled setting is enabled for the corresponding SPA.

By default — null

currencyId
crm_currency

Identifier for the currency of the element.

Available only if the isLinkWithProductsEnabled setting is enabled for the corresponding SPA.

By default — the default currency

isManualOpportunity
boolean

Calculation mode for the amount. Possible values:

  • Y — manual
  • N — automatic

Available only if the isLinkWithProductsEnabled setting is enabled for the corresponding SPA.

By default — N

opportunity
double

Amount.

Available only if the isLinkWithProductsEnabled setting is enabled for the corresponding SPA.

By default — null

taxValue
double

Tax amount.

Available only if the isLinkWithProductsEnabled setting is enabled for the corresponding SPA.

By default — null

mycompanyId
crm_company

Identifier of my company.

Available only if the isMycompanyEnabled setting is enabled for the corresponding SPA.

By default — identifier of the first available "my" company

ufCrm...
crm_userfield

User-defined field. See the section Custom Fields in CRM: Overview of Methods.

  • Values of multiple fields are passed as an array
  • To upload a file, the value of the user-defined field must be an array where the first element is the file name and the second is the base64 encoded content of the file.

parentId...
crm_entity

Parent field. An element of another type of CRM object that is linked to this element.

Each such field has the code parentId + {parentEntityTypeId}

Learn more about managing SPA settings in Smart Processes: Overview of Methods and Events

To upload a file, the value of the custom field must be an array where the first element is the file name and the second is the base64 encoded content of the file.

Code Examples

How to Use Examples in Documentation

  1. How to Import a Deal

    curl -X POST \
            -H "Content-Type: application/json" \
            -H "Accept: application/json" \
            -d '{"entityTypeId":2,"fields":{"title":"New deal","typeId":"SERVICE","isRecurring":"Y","opportunity":999.99,"currencyId":"EUR"}}' \
            https://**put_your_bitrix24_address**/rest/**put_your_user_id_here**/**put_your_webhook_here**/crm.item.import
            
    curl -X POST \
            -H "Content-Type: application/json" \
            -H "Accept: application/json" \
            -d '{"entityTypeId":2,"fields":{"title":"New deal","typeId":"SERVICE","isRecurring":"Y","opportunity":999.99,"currencyId":"EUR"},"auth":"**put_access_token_here**"}' \
            https://**put_your_bitrix24_address**/rest/crm.item.import
            
    import { Text } from '@bitrix24/b24jssdk'
            import type { B24Frame } from '@bitrix24/b24jssdk'
            
            declare const $b24: B24Frame
            
            const response = await $b24.actions.v2.call.make({
              method: 'crm.item.import',
              params: {
                entityTypeId: 2,
                fields: {
                  title: 'New deal',
                  typeId: 'SERVICE',
                  isRecurring: 'Y',
                  opportunity: 999.99,
                  currencyId: 'EUR',
                },
              },
              requestId: Text.getUuidRfc4122()
            })
            
            if (!response.isSuccess) {
              console.error(response.getErrorMessages().join('; '))
            } else {
              console.info(response.getData()!.result)
            }
            
    <script src="https://unpkg.com/@bitrix24/b24jssdk@1/dist/umd/index.min.js"></script>
            <script>
              async function importDeal() {
                const $b24 = await B24Js.initializeB24Frame()
                const response = await $b24.actions.v2.call.make({
                  method: 'crm.item.import',
                  params: {
                    entityTypeId: 2,
                    fields: {
                      title: 'New deal',
                      typeId: 'SERVICE',
                      isRecurring: 'Y',
                      opportunity: 999.99,
                      currencyId: 'EUR',
                    },
                  },
                  requestId: B24Js.Text.getUuidRfc4122()
                })
            
                if (!response.isSuccess) {
                  console.error(response.getErrorMessages().join('; '))
                  return
                }
                console.info(response.getData().result)
              }
            
              document.addEventListener('DOMContentLoaded', importDeal)
            </script>
            
    
            from b24pysdk.errors import BitrixAPIError, BitrixSDKException
            
            try:
                bitrix_response = client.crm.item.import_(
                    entity_type_id=2,
                    fields={
                        "title": "New deal",
                        "typeId": "SERVICE",
                        "isRecurring": "Y",
                        "opportunity": 999.99,
                        "currencyId": "EUR",
                    },
                ).response
                result = bitrix_response.result
                print(result)
            except BitrixAPIError as error:
                print(
                    "Bitrix API error",
                    f"error: {error.error}",
                    f"error_description: {error.error_description}",
                    sep="\n",
                )
            except BitrixSDKException as error:
                print(f"Bitrix SDK error: {error.message}")
            except Exception as error:
                print(f"Unexpected error: {error}")
            
    try {
                $response = $b24Service->core->call(
                    'crm.item.import',
                    [
                        'entityTypeId' => 2,
                        'fields' => [
                            'title' => 'New deal',
                            'typeId' => 'SERVICE',
                            'isRecurring' => 'Y',
                            'opportunity' => 999.99,
                            'currencyId' => 'EUR',
                        ],
                    ]
                );
            
                $result = $response->getResponseData()->getResult();
                echo 'Success: ' . print_r($result, true);
            } catch (Throwable $e) {
                error_log($e->getMessage());
                echo 'Error importing CRM item: ' . $e->getMessage();
            }
            
    BX24.callMethod(
                'crm.item.import', 
                {
                    entityTypeId: 2,
                    fields: {
                        title: "New deal",
                        typeId: "SERVICE",
                        isRecurring: "Y",
                        opportunity: 999.99,
                        currencyId: "EUR",
                    },
                },
                (result) => 
                {
                    result.error() 
                        ? console.error(result.error()) 
                        : console.info(result.data())
                    ;
                }
            );
            
    require_once('crest.php');
            
            $result = CRest::call(
                'crm.item.import',
                [
                    'entityTypeId' => 2,
                    'fields' => [
                        'title' => "New deal",
                        'typeId' => "SERVICE",
                        'isRecurring' => "Y",
                        'opportunity' => 999.99,
                        'currencyId' => "EUR",
                    ],
                ]
            );
            
            echo '<PRE>';
            print_r($result);
            echo '</PRE>';
            
    // client and ctx are already created — see the "Go SDK" section
            res, err := client.Core().Call(ctx, "crm.item.import", b24.Params{
                "entityTypeId": 2,
                "fields": b24.Params{
                    "title":       "New deal",
                    "typeId":      "SERVICE",
                    "isRecurring": "Y",
                    "opportunity": 999.99,
                    "currencyId":  "EUR",
                },
            })
            if err != nil {
                return fmt.Errorf("crm.item.import: %w", err)
            }
            
            raw, ok := b24.Unwrap(res.Result, "item")
            if !ok {
                return fmt.Errorf("item key is missing from the response")
            }
            fmt.Printf("%s\n", raw)
            
  2. How to Create an SPA Item with a Set of Custom Fields

    Custom fields involved in the example
    {
                "ufCrm44_1721812760630": {
                    "type": "string",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": true,
                    "title": "Custom field (string)",
                    "listLabel": "Custom field (string)",
                    "formLabel": "Custom field (string)",
                    "filterLabel": "Custom field (string)",
                    "settings": {
                        "SIZE": 20,
                        "ROWS": 1,
                        "REGEXP": "",
                        "MIN_LENGTH": 0,
                        "MAX_LENGTH": 0,
                        "DEFAULT_VALUE": ""
                    },
                    "upperName": "UF_CRM_44_1721812760630"
                },
                "ufCrm44_1721812814433": {
                    "type": "enumeration",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": true,
                    "items": [
                        {
                            "ID": "79",
                            "VALUE": "List item #1"
                        },
                        {
                            "ID": "80",
                            "VALUE": "List item #2"
                        },
                        {
                            "ID": "81",
                            "VALUE": "List item #3"
                        },
                        {
                            "ID": "82",
                            "VALUE": "List item #4"
                        }
                    ],
                    "title": "Custom field (list)",
                    "listLabel": "Custom field (list)",
                    "formLabel": "Custom field (list)",
                    "filterLabel": "Custom field (list)",
                    "settings": {
                        "DISPLAY": "LIST",
                        "LIST_HEIGHT": 1,
                        "CAPTION_NO_VALUE": "",
                        "SHOW_NO_VALUE": "Y"
                    },
                    "upperName": "UF_CRM_44_1721812814433"
                },
                "ufCrm44_1721812853419": {
                    "type": "date",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": true,
                    "title": "Custom field (date)",
                    "listLabel": "Custom field (date)",
                    "formLabel": "Custom field (date)",
                    "filterLabel": "Custom field (date)",
                    "settings": {
                        "DEFAULT_VALUE": {
                            "TYPE": "NONE",
                            "VALUE": ""
                        }
                    },
                    "upperName": "UF_CRM_44_1721812853419"
                },
                "ufCrm44_1721812885588": {
                    "type": "url",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": true,
                    "isDynamic": true,
                    "title": "Multiple custom field (link)",
                    "listLabel": "Multiple custom field (link)",
                    "formLabel": "Multiple custom field (link)",
                    "filterLabel": "Multiple custom field (link)",
                    "settings": {
                        "POPUP": "Y",
                        "SIZE": 20,
                        "MIN_LENGTH": 0,
                        "MAX_LENGTH": 0,
                        "DEFAULT_VALUE": "",
                        "ROWS": 1
                    },
                    "upperName": "UF_CRM_44_1721812885588"
                },
                "ufCrm44_1721812898903": {
                    "type": "file",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": true,
                    "title": "Custom field (file)",
                    "listLabel": "Custom field (file)",
                    "formLabel": "Custom field (file)",
                    "filterLabel": "Custom field (file)",
                    "settings": {
                        "SIZE": 20,
                        "LIST_WIDTH": 0,
                        "LIST_HEIGHT": 0,
                        "MAX_SHOW_SIZE": 0,
                        "MAX_ALLOWED_SIZE": 0,
                        "EXTENSIONS": [],
                        "TARGET_BLANK": "Y"
                    },
                    "upperName": "UF_CRM_44_1721812898903"
                },
                "ufCrm44_1721812915476": {
                    "type": "money",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": true,
                    "title": "Custom field (money)",
                    "listLabel": "Custom field (money)",
                    "formLabel": "Custom field (money)",
                    "filterLabel": "Custom field (money)",
                    "settings": {
                        "DEFAULT_VALUE": ""
                    },
                    "upperName": "UF_CRM_44_1721812915476"
                },
                "ufCrm44_1721812935209": {
                    "type": "boolean",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": true,
                    "title": "Custom field (Yes/No)",
                    "listLabel": "Custom field (Yes/No)",
                    "formLabel": "Custom field (Yes/No)",
                    "filterLabel": "Custom field (Yes/No)",
                    "settings": {
                        "DEFAULT_VALUE": 0,
                        "DISPLAY": "CHECKBOX",
                        "LABEL": [
                            "",
                            ""
                        ],
                        "LABEL_CHECKBOX": {
                            "en": "Custom field (Yes/No)",
                            "ru": "Custom field (Yes/No)",
                            "th": "Custom field (Yes/No)",
                            "la": "Custom field (Yes/No)",
                            "tc": "Custom field (Yes/No)",
                            "sc": "Custom field (Yes/No)",
                            "br": "Custom field (Yes/No)",
                            "ar": "Custom field (Yes/No)",
                            "fr": "Custom field (Yes/No)",
                            "vn": "Custom field (Yes/No)",
                            "pl": "Custom field (Yes/No)",
                            "tr": "Custom field (Yes/No)",
                            "ja": "Custom field (Yes/No)",
                            "it": "Custom field (Yes/No)",
                            "ms": "Custom field (Yes/No)",
                            "id": "Custom field (Yes/No)"
                        }
                    },
                    "upperName": "UF_CRM_44_1721812935209"
                },
                "ufCrm44_1721812948498": {
                    "type": "double",
                    "isRequired": false,
                    "isReadOnly": false,
                    "isImmutable": false,
                    "isMultiple": false,
                    "isDynamic": true,
                    "title": "Custom field (number)",
                    "listLabel": "Custom field (number)",
                    "formLabel": "Custom field (number)",
                    "filterLabel": "Custom field (number)",
                    "settings": {
                        "PRECISION": 2,
                        "SIZE": 20,
                        "MIN_VALUE": 0,
                        "MAX_VALUE": 0,
                        "DEFAULT_VALUE": null
                    },
                    "upperName": "UF_CRM_44_1721812948498"
                }
            }
            
    curl -X POST \
            -H "Content-Type: application/json" \
            -H "Accept: application/json" \
            -d '{
                "entityTypeId": 1302,
                "fields": {
                    "ufCrm44_1721812760630": "String value for a custom String field",
                    "ufCrm44_1721812814433": 81,
                    "ufCrm44_1721812853419": "2024-08-21",
                    "ufCrm44_1721812885588": [
                        "example.com",
                        "second-example.com"
                    ],
                    "ufCrm44_1721812898903": [
                        "green_pixel.png",
                        "iVBORw0KGgoAAAANSUhEUgAAAIAAAAAMCAYAAACqTLVoAAAALklEQVR42u3SAQEAAAQDsEsuOj3YMqwy6fBWCSCAAAIgAAIgAAIgAAIgAAJw3QLOrRH1U/gU4gAAAABJRU5ErkJggg=="
                    ],
                    "ufCrm44_1721812915476": "300|EUR",
                    "ufCrm44_1721812935209": "Y",
                    "ufCrm44_1721812948498": 9999.9
                }
            }' \
            https://**put_your_bitrix24_address**/rest/**put_your_user_id_here**/**put_your_webhook_here**/crm.item.import
            
    curl -X POST \
            -H "Content-Type: application/json" \
            -H "Accept: application/json" \
            -d '{
                "entityTypeId": 1302,
                "fields": {
                    "ufCrm44_1721812760630": "String value for a custom String field",
                    "ufCrm44_1721812814433": 81,
                    "ufCrm44_1721812853419": "2024-08-21",
                    "ufCrm44_1721812885588": [
                        "example.com",
                        "second-example.com"
                    ],
                    "ufCrm44_1721812898903": [
                        "green_pixel.png",
                        "iVBORw0KGgoAAAANSUhEUgAAAIAAAAAMCAYAAACqTLVoAAAALklEQVR42u3SAQEAAAQDsEsuOj3YMqwy6fBWCSCAAAIgAAIgAAIgAAIgAAJw3QLOrRH1U/gU4gAAAABJRU5ErkJggg=="
                    ],
                    "ufCrm44_1721812915476": "300|EUR",
                    "ufCrm44_1721812935209": "Y",
                    "ufCrm44_1721812948498": 9999.9
                },
                "auth": "**put_access_token_here**"
            }' \
            https://**put_your_bitrix24_address**/rest/crm.item.import
            
    import { Text } from '@bitrix24/b24jssdk'
            import type { B24Frame } from '@bitrix24/b24jssdk'
            declare const $b24: B24Frame
            
            const response = await $b24.actions.v2.call.make({
              method: 'crm.item.import',
              params: {
                entityTypeId: 1302,
                fields: {
                  ufCrm44_1721812760630: 'String value for a custom String field',
                  ufCrm44_1721812814433: 81,
                  ufCrm44_1721812853419: '2024-08-21',
                  ufCrm44_1721812885588: ['example.com', 'second-example.com'],
                  ufCrm44_1721812898903: ['green_pixel.png', 'iVBORw0KGgoAAAANSUhEUgAAAIAAAAAMCAYAAACqTLVoAAAALklEQVR42u3SAQEAAAQDsEsuOj3YMqwy6fBWCSCAAAIgAAIgAAIgAAIgAAJw3QLOrRH1U/gU4gAAAABJRU5ErkJggg=='],
                  ufCrm44_1721812915476: '300|EUR',
                  ufCrm44_1721812935209: 'Y',
                  ufCrm44_1721812948498: 9999.9,
                },
              },
              requestId: Text.getUuidRfc4122()
            })
            console.info(response.getData()?.result)
            
    <script src="https://unpkg.com/@bitrix24/b24jssdk@1/dist/umd/index.min.js"></script>
            <script>
              async function importSmartProcessItem() {
                const $b24 = await B24Js.initializeB24Frame()
                const response = await $b24.actions.v2.call.make({
                  method: 'crm.item.import',
                  params: {
                    entityTypeId: 1302,
                    fields: {
                      ufCrm44_1721812760630: 'String value for a custom String field',
                      ufCrm44_1721812814433: 81,
                      ufCrm44_1721812853419: '2024-08-21',
                      ufCrm44_1721812885588: ['example.com', 'second-example.com'],
                      ufCrm44_1721812898903: ['green_pixel.png', 'iVBORw0KGgoAAAANSUhEUgAAAIAAAAAMCAYAAACqTLVoAAAALklEQVR42u3SAQEAAAQDsEsuOj3YMqwy6fBWCSCAAAIgAAIgAAIgAAIgAAJw3QLOrRH1U/gU4gAAAABJRU5ErkJggg=='],
                      ufCrm44_1721812915476: '300|EUR',
                      ufCrm44_1721812935209: 'Y',
                      ufCrm44_1721812948498: 9999.9,
                    },
                  },
                  requestId: B24Js.Text.getUuidRfc4122()
                })
                console.info(response.getData()?.result)
              }
              document.addEventListener('DOMContentLoaded', importSmartProcessItem)
            </script>
            
    from b24pysdk.errors import BitrixAPIError, BitrixSDKException
            
            try:
                bitrix_response = client.crm.item.import_(
                    entity_type_id=1302,
                    fields={
                        "ufCrm44_1721812760630": "String value for a custom String field",
                        "ufCrm44_1721812814433": 81,
                        "ufCrm44_1721812853419": "2024-08-21",
                        "ufCrm44_1721812885588": [
                            "example.com",
                            "second-example.com",
                        ],
                        "ufCrm44_1721812898903": [
                            "green_pixel.png",
                            "iVBORw0KGgoAAAANSUhEUgAAAIAAAAAMCAYAAACqTLVoAAAALklEQVR42u3SAQEAAAQDsEsuOj3YMqwy6fBWCSCAAAIgAAIgAAIgAAIgAAJw3QLOrRH1U/gU4gAAAABJRU5ErkJggg==",
                        ],
                        "ufCrm44_1721812915476": "300|EUR",
                        "ufCrm44_1721812935209": "Y",
                        "ufCrm44_1721812948498": 9999.9,
                    },
                ).response
                result = bitrix_response.result
                print(result)
            except BitrixAPIError as error:
                print(
                    "Bitrix API error",
                    f"error: {error.error}",
                    f"error_description: {error.error_description}",
                    sep="\n",
                )
            except BitrixSDKException as error:
                print(f"Bitrix SDK error: {error.message}")
            except Exception as error:
                print(f"Unexpected error: {error}")
            
    try {
                $response = $b24Service->core->call(
                    'crm.item.import',
                    [
                        'entityTypeId' => 1302,
                        'fields' => [
                            'ufCrm44_1721812760630' => 'String value for a custom String field',
                            'ufCrm44_1721812814433' => 81,
                            'ufCrm44_1721812853419' => '2024-08-21',
                            'ufCrm44_1721812885588' => ['example.com', 'second-example.com'],
                            'ufCrm44_1721812898903' => ['green_pixel.png', 'iVBORw0KGgoAAAANSUhEUgAAAIAAAAAMCAYAAACqTLVoAAAALklEQVR42u3SAQEAAAQDsEsuOj3YMqwy6fBWCSCAAAIgAAIgAAIgAAIgAAJw3QLOrRH1U/gU4gAAAABJRU5ErkJggg=='],
                            'ufCrm44_1721812915476' => '300|EUR',
                            'ufCrm44_1721812935209' => 'Y',
                            'ufCrm44_1721812948498' => 9999.9,
                        ],
                    ]
                );
                echo 'Success: ' . print_r($response->getResponseData()->getResult()->data(), true);
            } catch (Throwable $e) {
                echo 'Error: ' . $e->getMessage();
            }
            
    const greenPixelInBase64 = "iVBORw0KGgoAAAANSUhEUgAAAIAAAAAMCAYAAACqTLVoAAAALklEQVR42u3SAQEAAAQDsEsuOj3YMqwy6fBWCSCAAAIgAAIgAAIgAAIgAAJw3QLOrRH1U/gU4gAAAABJRU5ErkJggg==";
            
            BX24.callMethod(
                'crm.item.import',
                {
                    entityTypeId: 1302,
                    fields: {
                        ufCrm44_1721812760630: "String value for a custom String field",
                        ufCrm44_1721812814433: 81,
                        ufCrm44_1721812853419: "2024-08-21",
                        ufCrm44_1721812885588: ["example.com", "second-example.com"],
                        ufCrm44_1721812898903: ["green_pixel.png", greenPixelInBase64],
                        ufCrm44_1721812915476: "300|EUR",
                        ufCrm44_1721812935209: "Y",
                        ufCrm44_1721812948498: 9999.9,
                    },
                },
                result => result.error() ? console.error(result.error()) : console.info(result.data())
            );
            
    require_once('crest.php');
            
            $result = CRest::call(
                'crm.item.import',
                [
                    'entityTypeId' => 1302,
                    'fields' => [
                        'ufCrm44_1721812760630' => "String value for a custom String field",
                        'ufCrm44_1721812814433' => 81,
                        'ufCrm44_1721812853419' => '2024-08-21',
                        'ufCrm44_1721812885588' => [
                            "example.com",
                            "second-example.com",
                        ],
                        'ufCrm44_1721812898903' => [
                            "green_pixel.png",
                            "iVBORw0KGgoAAAANSUhEUgAAAIAAAAAMCAYAAACqTLVoAAAALklEQVR42u3SAQEAAAQDsEsuOj3YMqwy6fBWCSCAAAIgAAIgAAIgAAIgAAJw3QLOrRH1U/gU4gAAAABJRU5ErkJggg==",
                        ],
                        'ufCrm44_1721812915476' => "300|EUR",
                        'ufCrm44_1721812935209' => "Y",
                        'ufCrm44_1721812948498' => 9999.9,
                    ],
                ]
            );
            
            echo '<PRE>';
            print_r($result);
            echo '</PRE>';
            
    res, err := client.Core().Call(ctx, "crm.item.import", b24.Params{
                "entityTypeId": 1302,
                "fields": b24.Params{
                    "ufCrm44_1721812760630": "String value for a custom String field",
                    "ufCrm44_1721812814433": 81,
                    "ufCrm44_1721812853419": "2024-08-21",
                    "ufCrm44_1721812885588": []string{"example.com", "second-example.com"},
                    "ufCrm44_1721812898903": []string{"green_pixel.png", "iVBORw0KGgoAAAANSUhEUgAAAIAAAAAMCAYAAACqTLVoAAAALklEQVR42u3SAQEAAAQDsEsuOj3YMqwy6fBWCSCAAAIgAAIgAAIgAAIgAAJw3QLOrRH1U/gU4gAAAABJRU5ErkJggg=="},
                    "ufCrm44_1721812915476": "300|EUR",
                    "ufCrm44_1721812935209": "Y",
                    "ufCrm44_1721812948498": 9999.9,
                },
            })
            if err != nil {
                return fmt.Errorf("crm.item.import: %w", err)
            }
            fmt.Printf("%v\n", res.Result)
            

Response Handling

The method returns an item object containing the identifier of the created item.

HTTP status: 200

{
            "result": {
                "item": {
                    "id": 4
                }
            },
            "time": {
                "start": 1722940215.145257,
                "finish": 1722940217.94124,
                "duration": 2.795983076095581,
                "processing": 2.4315829277038574,
                "date_start": "2024-08-06T10:30:15+00:00",
                "date_finish": "2024-08-06T10:30:17+00:00",
                "operating": 2.4314892292022705
            }
        }
        

Returned Data

Name
type

Description

result
object

Root element of the response. Contains an object with the import result (detailed description)

time
time

Information about the request execution time

Result Object

Name
type

Description

item
object

Import result (detailed description)

Item Object

Name
type

Description

id
integer

Identifier of the created item

Error Handling

HTTP status: 400, 401, 403

{
            "error": "NOT_FOUND",
            "error_description": "Smart process not found"
        }
        

Name
type

Description

error
string

String error code. It consists of digits, Latin letters, and underscores. It may arrive empty — in that case only error_description shows the reason

error_description
string

Error message for the developer. Do not show it to the end user without processing

Possible Error Codes

Status

Code

Description

Value

400

NOT_FOUND

SPA not found

An unknown entityTypeId was passed

400

ACCESS_DENIED

Access denied

The user does not have permission to import items of type entityTypeId

400

CRM_FIELD_ERROR_VALUE_NOT_VALID

Invalid value for field field

An invalid value was passed for the field field.

For system fields, such as createdTime, the error also occurs if the request is made by a non-administrator

400

100

Expected iterable value for multiple field, but got type instead

A value of type type was passed to a multiple field, but an iterable value was expected. The error can also occur due to invalid JSON or request headers

400

CREATE_DYNAMIC_ITEM_RESTRICTED

You cannot create a new item due to your plan restrictions

Plan restrictions do not allow creating SPA items

401

INVALID_CREDENTIALS

Invalid authorization data for the request

Invalid user identifier or webhook code in the request URL

403

allowed_only_intranet_user

This action is allowed only for intranet users

The user is not an intranet user

Statuses and System Error Codes

HTTP Status: 4xx, 5xx

The errors described below are returned by the REST API itself, not by the logic of a specific method. They can arrive in response to any method.

Status

Code
Error Message

Description

500

INTERNAL_SERVER_ERROR
Internal server error

An internal server error has occurred. Retry the call, and if the error persists, contact the server administrator or Bitrix24 technical support

500

ERROR_UNEXPECTED_ANSWER
Server returned an unexpected response

The server returned an unexpected response. Retry the call, and if the error persists, contact the server administrator or Bitrix24 technical support

503

QUERY_LIMIT_EXCEEDED
Too many requests

The request intensity limit has been exceeded

429

OPERATION_TIME_LIMIT
Method is blocked due to operation time limit

The method is blocked because the request resource intensity limit has been exceeded. The block is lifted automatically once the accumulated execution time of the method no longer exceeds the limit

401

NO_AUTH_FOUND
Wrong authorization data

The request contains no authorization data: neither an access token nor a webhook code was passed

401

INVALID_REQUEST
Https required

Methods are called over the HTTPS protocol only

401

OVERLOAD_LIMIT
REST API is blocked due to overload

The REST API is blocked due to overload. This is a manual individual block. To have it lifted, contact Bitrix24 technical support

401

ACCESS_DENIED
REST is available only on commercial plans

REST API access is not active for this account. In Bitrix24 Cloud, check the current plan or trial status: Vibe+ plans include REST API access, while Essentials plans do not. A webhook receives a different error message — REST is available only by subscription

401

INVALID_CREDENTIALS
Invalid request credentials

No active webhook with the specified user identifier and secret code was found

404

ERROR_METHOD_NOT_FOUND
Method not found!

No method with this name was found. The name is misspelled, the method does not exist in the REST API, or it is unavailable without the required scope

401

insufficient_scope
The request requires higher privileges than provided by the webhook token

The request requires broader permissions than the token has: for a webhook these are the permissions granted to it, for an application it is the scope. For an application, the error message ends with provided by the access token

401

expired_token
The access token provided has expired

The access token has expired

401

user_access_error
The user does not have access to the application

The application is installed, but the Bitrix24 administrator has granted access to it only to specific users

403

PORTAL_DELETED
Portal was deleted

The public part of the site is closed. To open it 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