curl --location --request POST 'https://awqacore01.crexendocloud.com/ns-api/v2/calls/report' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"start_date": "2024-01-15 09:00:00", // Required: Start date in Y-m-d H:i:s format
"end_date": "2024-01-15 12:00:00", // Required: End date in Y-m-d H:i:s format
"group_by": "domain", // Required: Can be "domain", "hostname", "reseller", "group", "site", "connection", "huntgroup", or "callswaiting"
"domain": "", // Required when group_by is "huntgroup" or "callswaiting"; Optional for other group_by values
"report_by": "", // Optional: Can be "min", "hour", "day", or "tens" (10-minute intervals). Defaults to "day"
"type": "", // Optional: Can be "onnet", "offnet", or "all". Defaults to "onnet"
}'