After receiving a successful response, a push comes with the 'generate_report' type with a link to download the report
POST /api/admin/v1/reports?type=intercoms
int top_group_id, Location (in the intercom tree, filtering only by id of the top groups)
int
date from, Start date
date
date to, End date
string timezone, Time zone to display the creation date in the report.
string
201 Created
Created
Successful response
{ "id": 6438, "type": "intercoms", "from": "2023-05-24", "to": "2023-05-24", "url": "https://vms.local:8080/storage/", "created_at": "2023-03-09T13:15:35.000000Z" }
401 Unauthorized
Unauthorized
Authorization token not sent or not valid
curl -k --request POST \ --url 'https://your-domain/api/admin/v1/reports?type=intercoms' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --data '{ "top_group_id": 0, "from": "date", "to": "date", "timezone": "string" }'
$data = array ( 'top_group_id' => 0, 'from' => 'date', 'to' => 'date', 'timezone' => 'string', ); $context = stream_context_create([ 'ssl'=>['verify_peer' => false], 'http' => [ 'method' => 'POST', 'header' => "Content-Type: application/json\r Accept: application/json", 'content'=>json_encode($data) ] ]); $result = file_get_contents('https://your-domain/api/admin/v1/reports?type=intercoms', false, $context);
Please note, these errors can depend on your browser setup.
If this problem persists, please contact our support.