Start a Callback with voximplant.callback.start
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.
Scope:
telephonyWho can execute the method: user with Outgoing Call — Execute permission
The method voximplant.callback.start initiates a callback between an employee and a client.
Method Parameters
Required parameters are marked with *
|
Name |
Description |
|
FROM_LINE* |
Identifier of the outgoing line from which the callback is initiated. A list of available lines can be obtained using the voximplant.line.get method. |
|
TO_NUMBER* |
The client's number to call. |
|
TEXT_TO_PRONOUNCE* |
The text that the system will pronounce to the employee before connecting with the client. |
|
VOICE |
Identifier of the voice for speech synthesis. If not provided, the default voice for the account's language will be used. A list of available voices can be obtained using the voximplant.tts.voices.get method. |
Code Examples
How to Use Examples in Documentation
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"FROM_LINE":"reg151083","TO_NUMBER":"+19991234567","TEXT_TO_PRONOUNCE":"You have received a callback request","VOICE":"internalfemale"}' \
https://**put_your_bitrix24_address**/rest/**put_your_user_id_here**/**put_your_webhook_here**/voximplant.callback.start
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"FROM_LINE":"reg151083","TO_NUMBER":"+19991234567","TEXT_TO_PRONOUNCE":"You have received a callback request","VOICE":"internalfemale","auth":"**put_access_token_here**"}' \
https://**put_your_bitrix24_address**/rest/voximplant.callback.start
try
{
const response = await $b24.callMethod(
'voximplant.callback.start',
{
FROM_LINE: 'reg151083',
TO_NUMBER: '+19991234567',
TEXT_TO_PRONOUNCE: 'You have received a callback request',
VOICE: 'internalfemale'
}
);
const result = response.getData().result;
console.log('Data:', result);
}
catch (error)
{
console.error('Error:', error);
}
try {
$response = $b24Service
->core
->call(
'voximplant.callback.start',
[
'FROM_LINE' => 'reg151083',
'TO_NUMBER' => '+19991234567',
'TEXT_TO_PRONOUNCE' => 'You have received a callback request',
'VOICE' => 'internalfemale',
]
);
$result = $response
->getResponseData()
->getResult();
echo 'Success: ' . print_r($result, true);
} catch (Throwable $e) {
error_log($e->getMessage());
echo 'Error: ' . $e->getMessage();
}
BX24.callMethod(
'voximplant.callback.start',
{
FROM_LINE: 'reg151083',
TO_NUMBER: '+19991234567',
TEXT_TO_PRONOUNCE: 'You have received a callback request',
VOICE: 'internalfemale'
},
function(result)
{
if (result.error())
{
console.error(result.error(), result.error_description());
}
else
{
console.log(result.data());
}
}
);
require_once('crest.php');
$result = CRest::call(
'voximplant.callback.start',
[
'FROM_LINE' => 'reg151083',
'TO_NUMBER' => '+19991234567',
'TEXT_TO_PRONOUNCE' => 'You have received a callback request',
'VOICE' => 'internalfemale',
]
);
echo '<PRE>';
print_r($result);
echo '</PRE>';
Response Handling
HTTP Status: 200
{
"result": {
"RESULT": true,
"CALL_ID": "callback.72f42b118e019a4cc47629ff60525f43.1773736077"
},
"time": {
"start": 1773736066,
"finish": 1773736067.708955,
"duration": 1.7089550495147705,
"processing": 1,
"date_start": "2026-03-17T11:27:46+02:00",
"date_finish": "2026-03-17T11:27:47+02:00",
"operating_reset_at": 1773736666,
"operating": 0.9574570655822754
}
}
Returned Data
|
Name |
Description |
|
result |
Object containing the result of the callback initiation. |
|
RESULT |
Indicator of successful initiation.
|
|
CALL_ID |
Identifier of the call. |
|
time |
Information about the request execution time. |
Error Handling
HTTP Status: 400, 403
{
"error": "ERROR_CORE",
"error_description": "Could not find line reg000000"
}
|
Name |
Description |
|
error |
String error code. It may consist of digits, Latin letters, and underscores |
|
error_description |
Textual description of the error. The description is not intended to be shown to the end user in its raw form |
Possible Error Codes
|
Code |
Description |
Value |
|
|
|
The line with the specified identifier was not found. |
|
|
|
Configuration for the specified line was not found. |
|
|
|
Incorrect number in |
|
|
|
Insufficient permissions to make outgoing calls. |
Statuses and System Error Codes
HTTP Status: 20x, 40x, 50x
The errors described below may occur when calling any method.
|
Status |
Code |
Description |
|
|
|
An internal server error has occurred. Please contact the server administrator or Bitrix24 technical support |
|
|
|
An internal server error has occurred. Please contact the server administrator or Bitrix24 technical support |
|
|
|
The request intensity limit has been exceeded |
|
|
|
The current method is not permitted for calls using batch |
|
|
|
The maximum length of parameters passed to the batch method has been exceeded |
|
|
|
Invalid access token or webhook code |
|
|
|
The HTTPS protocol is required for method calls |
|
|
|
The REST API is blocked due to overload. This is a manual individual block; please contact Bitrix24 technical support to lift it |
|
|
|
The REST API is only available on commercial plans |
|
|
|
The user associated with the access token or webhook used to call the method lacks the necessary permissions |
|
|
|
The manifest is not available |
|
|
|
The request requires higher privileges than those provided by the webhook token |
|
|
|
The provided access token has expired |
|
|
|
The user does not have access to the application. This means that the application is installed, but the portal administrator has restricted access to this application to specific users only |
|
|
|
The public part of the site is closed. To open the public part of the site 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
- Start a Callback with voximplant.callback.start
- Make an Auto-Call with MP3 Playback using voximplant.infocall.startwithsound
- Initiate an Auto-Call with the Voice Automation Rule voximplant.infocall.startwithtext
- Get a List of Available Voices for Text-to-Speech voximplant.tts.voices.get