Skip to main content

Inbox Search

This service is used to search for existing voicemail box information.

Parameters

DescriptionDefined DataExample DataRequired Parameters[**]/Optional[*]Parameters
Search for similar itemstrue/falsetrue**alike
--0pagination->start
--20pagination->count
---pagination->sorting
Search from date-2020-12-25 13:53date_range->from
Search to date-2022-12-27 13:53date_range->to
---conditions->src
Voicemail box number-400condition->number

Sample Invocation

Show Full Source Code PHP

	<?php

$curl = curl_init();

curl_setopt_array($curl, array(
CURLOPT_URL => 'http://192.168.51.20/api/v4/voicemails/inbox/search',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"alike":"true",
"pagination":{
"start":0,
"count":20,
"sorting":{}
},
"date_range":{
"from":"2020-12-25 13:53",
"to":"2022-12-27 13:53"
},
"conditions":{
"src":"",
"number":"400"
}
}',
CURLOPT_HTTPHEADER => array(
'X-APIKEY: 9UV0BWKRL83PYIH9Gv1fI85d41lO4S932EeX3wHC47sHjMJOMG',
'Authorization: Basic c2FkcjpTYWRyQDEyMw==',
'Content-Type: application/json'
),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
?>