BX24.js: Library Overview
If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the MCP server so that the assistant can utilize the official REST documentation.
BX24.js is a JavaScript library for applications embedded within the Bitrix24 interface. It allows you to call Bitrix24 methods from the client side of your application and automatically adds OAuth 2.0 authorization data.
The library also links the application interface with the Bitrix24 interface. Using it, you can manage the frame size, open standard Bitrix24 dialogs and pages, retrieve runtime environment data, and store user and application configurations.
Quick links: BX24.js Page Overview
Getting Started
-
Include the library on the application page:
<script src="//api.bitrix24.com/api/v1/"></script> -
Wait for the library to initialize using BX24.init
-
Select a function group from the BX24.js Page Overview table
-
Call the required function and handle the result in your application's client-side code
Integration With Other Tools
Placements. An application can be opened in a selected location within the Bitrix24 interface. To register a handler, use the placement.bind method: pass the placement code in the PLACEMENT parameter and the external widget handler URL in the HANDLER parameter. This method is available to an administrator.
UI Kit. While BX24.js handles the interaction between the application and Bitrix24, the Bitrix24 UI Kit helps you build an interface using ready-made components, design tokens, and icons.
Key Considerations
- For external applications and webhooks, select a different library in the SDK Overview
- The required scope depends on the method being called. See scope values in the Permissions guide
- Data access depends on the permissions of the user on whose behalf the application performs the request
BX24.js Page Overview
|
If you need to |
Open the page |
|
Call one or more Bitrix24 methods from the client side of the application |
|
|
Initialize the library, handle the first run, or get authorization data |
|
|
Save user settings or general application settings |
|
|
Open the standard dialog for selecting users, permissions, or CRM items |
|
|
Manage the application window, navigation, page events, and call context |