Discussions

Ask a Question
Back to All

How to get today's recordings stats

When I execute the below statements to get today's recordings I get a CSV file with one row containing a header record. I can get recordings for previous days but not today. What am I doing wrong?

curl --request POST
--url https://dialpad.com/api/v2/stats
--header 'accept: application/json'
--header 'authorization: Bearer '
--header 'content-type: application/json'
--data '
{
"export_type": "stats",
"stat_type": "recordings",
"timezone": "UTC",
"is_today": true
}
'

curl --request GET
--url https://dialpad.com/api/v2/stats/
--header 'accept: application/json'
--header 'authorization: Bearer '

curl https://dialpad.com/dl/stats/export_?t=stats
--header 'authorization: Bearer '
--output TodaysRecordings.csv