Call the interface to register a new event handler callBind
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.callBind(
String event,
String handler[
Integer auth_type[
Function callback
]
]
);
This interface is for the method event.bind, which registers a new event handler.
Note
Works only when authorized as a user with portal administration rights.
Parameters
Required parameters are marked with *
|
Name |
Description |
|
event* |
Event name |
|
handler* |
Link to the event handler |
|
auth_type |
Identifier of the user under which the event handler is authorized. By default, the authorization of the user whose actions triggered the event will be used |
|
callback |
Function to handle the result of the method call |
Example
BX24.callBind('OnAppUninstall', 'http://www.my-domain.com/handler/');
How to Use Examples in Documentation
Continue your exploration
- Call the interface to remove a registered event handler BX24.callUnbind
- Call the REST service method with specified parameters BX24.callMethod
- Send a batch of requests with BX24.callBatch