Get Call History List voximplant.statistic.get
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 Call Statistics — View permission
The method voximplant.statistic.get returns a list of calls from telephony statistics.
Method Parameters
Required parameters are marked with *
|
Name |
Description |
|
FILTER |
An object for filtering in the format See the list of available fields for filtering below. Supported operators in the filter key:
By default — no filtering |
|
SORT |
Sorting field. The same fields as in the list of fields for filtering are used, except for By default — no sorting |
|
ORDER |
Sorting direction. Possible values:
By default — no sorting |
|
start |
Pagination parameter. The page size for results is 50 records. To get the second page, pass Formula:
|
Available Fields for Filtering
|
Name |
Description |
|
ID |
Internal identifier of the statistics record |
|
CALL_ID |
Call identifier |
|
EXTERNAL_CALL_ID |
Call identifier on the external PBX/integration side |
|
CALL_CATEGORY |
Call category |
|
PORTAL_USER_ID |
User identifier. The identifier can be obtained using the user.get method |
|
PORTAL_NUMBER |
Line number through which the call was made |
|
PHONE_NUMBER |
Subscriber number |
|
CALL_TYPE |
Type of call. Possible values:
|
|
CALL_DURATION |
Duration of the call in seconds |
|
CALL_START_DATE |
Date and time of the call start in ISO-8601 format with timezone indication |
|
CALL_LOG |
Call log URL |
|
CALL_RECORD_URL |
Call recording URL |
|
CALL_VOTE |
Call rating. Possible values:
If the rating is absent — |
|
COST |
Cost of the call |
|
COST_CURRENCY |
Currency of the call cost |
|
CALL_FAILED_CODE |
Call result code. Possible values:
|
|
CALL_FAILED_REASON |
Text of the reason/result of the call |
|
CRM_ENTITY_TYPE |
Type of CRM entity. Possible values:
|
|
CRM_ENTITY_ID |
Identifier of the CRM entity from |
|
CRM_ACTIVITY_ID |
Identifier of the CRM activity for the call |
|
REST_APP_ID |
Application identifier |
|
REST_APP_NAME |
Application name |
|
TRANSCRIPT_ID |
Identifier of the call transcript |
|
TRANSCRIPT_PENDING |
Indicator of pending transcription. Possible values:
|
|
SESSION_ID |
Session identifier on the telephony side |
|
REDIAL_ATTEMPT |
Number of redial attempts (for callback scenarios) |
|
COMMENT |
Comment on the call |
|
RECORD_DURATION |
Duration of the call recording file |
Code Examples
How to Use Examples in Documentation
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"FILTER":{"ID":[1,7],">=CALL_START_DATE":"2025-01-01T00:00:00+01:00"},"SORT":"ID","ORDER":"ASC"}' \
https://**put_your_bitrix24_address**/rest/**put_your_user_id_here**/**put_your_webhook_here**/voximplant.statistic.get
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"FILTER":{"ID":[1,7],">=CALL_START_DATE":"2025-01-01T00:00:00+01:00"},"SORT":"ID","ORDER":"ASC","auth":"**put_access_token_here**"}' \
https://**put_your_bitrix24_address**/rest/voximplant.statistic.get
try
{
const response = await $b24.callMethod(
'voximplant.statistic.get',
{
FILTER: {
ID: [1, 7],
'>=CALL_START_DATE': '2025-01-01T00:00:00+01:00'
},
SORT: 'ID',
ORDER: 'ASC'
}
);
const result = response.getData().result;
console.log('Statistics:', result);
processResult(result);
}
catch( error )
{
console.error('Error:', error);
}
try {
$response = $b24Service
->core
->call(
'voximplant.statistic.get',
[
'FILTER' => [
'ID' => [1, 7],
'>=CALL_START_DATE' => '2025-01-01T00:00:00+01:00'
],
'SORT' => 'ID',
'ORDER' => 'ASC'
]
);
$result = $response
->getResponseData()
->getResult();
echo 'Success: ' . print_r($result, true);
processData($result);
} catch (Throwable $e) {
error_log($e->getMessage());
echo 'Error fetching statistics: ' . $e->getMessage();
}
BX24.callMethod(
"voximplant.statistic.get",
{
FILTER: {
ID: [1, 7],
'>=CALL_START_DATE': '2025-01-01T00:00:00+01:00'
},
SORT: 'ID',
ORDER: 'ASC'
},
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.statistic.get',
[
'FILTER' => [
'ID' => [1, 7],
'>=CALL_START_DATE' => '2025-01-01T00:00:00+01:00'
],
'SORT' => 'ID',
'ORDER' => 'ASC'
]
);
echo '<PRE>';
print_r($result);
echo '</PRE>';
Response Handling
HTTP Status: 200
{
"result": [
{
"ID": "1",
"PORTAL_USER_ID": "1",
"PORTAL_NUMBER": "reg133788",
"PHONE_NUMBER": "+19061234567",
"CALL_ID": "11018129443EB80D.1754478570.11438214",
"EXTERNAL_CALL_ID": null,
"CALL_CATEGORY": "external",
"CALL_LOG": "https://storage-gw-com-02.voximplant.com/voximplant-logs/2025/08/06/YTdjNmMxYWMyNzNmZDA2NTAwZTlkODYzMWExODN06ODM0MkU1MjY2OEIxMkMuMTc1NDQ3ODUyMC4xMTQzODIxNV8xODUuMTY0LjE0OC4xMzIubG9n?sessionid=3841557776",
"CALL_DURATION": "0",
"CALL_START_DATE": "2025-08-06T14:08:40+01:00",
"CALL_RECORD_URL": "",
"CALL_VOTE": null,
"COST": "0.0000",
"COST_CURRENCY": "EUR",
"CALL_FAILED_CODE": "603-S",
"CALL_FAILED_REASON": "Decline self",
"CRM_ENTITY_TYPE": "CONTACT",
"CRM_ENTITY_ID": "275",
"CRM_ACTIVITY_ID": "7739",
"REST_APP_ID": null,
"REST_APP_NAME": null,
"TRANSCRIPT_ID": null,
"TRANSCRIPT_PENDING": "N",
"SESSION_ID": "3841557776",
"REDIAL_ATTEMPT": null,
"COMMENT": null,
"RECORD_DURATION": null,
"RECORD_FILE_ID": null,
"CALL_TYPE": "1"
},
{
"ID": "7",
"PORTAL_USER_ID": "1269",
"PORTAL_NUMBER": "3",
"PHONE_NUMBER": "19061234568",
"CALL_ID": "externalCall.716f1cb73def9700a23842adf9c4c568.1773130779",
"EXTERNAL_CALL_ID": null,
"CALL_CATEGORY": "external",
"CALL_LOG": null,
"CALL_DURATION": "95",
"CALL_START_DATE": "2026-03-10T11:19:38+01:00",
"CALL_RECORD_URL": null,
"CALL_VOTE": "5",
"COST": "0.0000",
"COST_CURRENCY": "",
"CALL_FAILED_CODE": "200",
"CALL_FAILED_REASON": "",
"CRM_ENTITY_TYPE": "CONTACT",
"CRM_ENTITY_ID": "797",
"CRM_ACTIVITY_ID": "7943",
"REST_APP_ID": "3",
"REST_APP_NAME": "REST API Documentation",
"TRANSCRIPT_ID": "1",
"TRANSCRIPT_PENDING": "N",
"SESSION_ID": null,
"REDIAL_ATTEMPT": null,
"COMMENT": null,
"RECORD_DURATION": null,
"RECORD_FILE_ID": 9079,
"CALL_TYPE": "2"
}
],
"total": 2,
"time": {
"start": 1773141841,
"finish": 1773141841.595178,
"duration": 0.5951778888702393,
"processing": 0,
"date_start": "2026-03-10T14:24:01+01:00",
"date_finish": "2026-03-10T14:24:01+01:00",
"operating_reset_at": 1773142441,
"operating": 0
}
}
Returned Data
|
Name |
Description |
|
result |
Array of statistics records. The composition of records depends on the An empty array means there are no records matching the |
|
total |
Total number of records in the selection |
|
next |
Offset for the next page (if any) |
|
time |
Information about the execution time of the request |
Error Handling
HTTP Status: 403
{
"error": "ACCESS_DENIED",
"error_description": "Access denied!"
}
|
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 |
|
|
Access denied! |
Insufficient permissions to view call statistics |
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
- Register an External Call in Bitrix24 telephony.externalCall.register
- Finish Call and Log It in Telephony Statistics telephony.externalCall.finish
- Attach a Record to a Completed Call telephony.externalCall.attachRecord
- Add Transcription to Call with telephony.call.attachTranscription