Call Card
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.
The call card consists of areas: the title, the status text, and the operator buttons. Each area is changed by its own command, and the set of buttons depends on the interface state — there are twelve of them in total. The state also determines which events reach the application.
The commands and events that manage the card are listed in the section overview Manage the Call Card of a WebRTC Client: Overview of Commands and Events, and the order of registering a handler is described on the page WebRTC Embedding Scenario.
General Description
To change the title of the card (area 1), call the CallCardSetCardTitle command and pass an object with the title property.
BX24.placement.call('CallCardSetCardTitle', { title: 'Card Title' }, () => {
// some code
});
To change the text in area 2, call the CallCardSetStatusText command and pass an object with the statusText property.
BX24.placement.call('CallCardSetStatusText', { statusText: 'Status Text' }, () => {
// some code
});
The call card has a total of 12 interface states. You can retrieve them with the CallCardGetListUiStates command. An array of available call card states will be passed to the callback function.
BX24.placement.call('CallCardGetListUiStates', {}, (data) => {
console.log(data);
});
The transition to another state of the card is performed by the CallCardSetUiState command: pass it an object with the uiState property.
BX24.placement.call('CallCardSetUiState', { uiState: 'connected' }, () => {
// some code
});
To handle button presses by the operator in the call card, subscribe to the corresponding events — see Overview of Events for Working with the Call Card of a WebRTC Client.
Card States
|
State |
Description |
Handles Button Presses |
|
incoming |
For accepting incoming calls |
|
|
transferIncoming |
For accepting a redirected incoming call |
|
|
outgoing |
For displaying the outgoing call card |
|
|
connectingIncoming |
For displaying the card while connecting to an incoming call |
|
|
connectingOutgoing |
For displaying the card while connecting to an outgoing call |
|
|
connected |
For displaying after connecting to the call |
|
|
transferring |
For confirming the transfer of the call to another operator |
|
|
transferFailed |
If the call transfer failed |
|
|
transferConnected |
If the transfer was successful and you need to exit the call card |
|
|
error |
If an error occurred |
|
|
moneyError |
If the account runs out of money and you need to inform the Bitrix24 administrator |
|
|
redial |
If the subscriber is busy, allow the operator to call this number again without hiding the call card |
|
|
Timer in the call card |
By default, when transitioning to the |