Forum Discussion
PSTN Call Statistics - API
StefanFried
Not many replies here. Maybe it was too new?
I am looking at the MSGraph API in beta, but struggling to get it working. I hope there will be some full walkthrough soon.
- Dirk GullentopsJul 16, 2020Microsoft
lexcpc How about this ? https://docs.microsoft.com/en-us/graph/api/resources/callrecords-api-overview?view=graph-rest-1.0
- lexcpcJul 17, 2020Copper Contributor
Dirk Gullentops I've reviewed that during my research, but I couldn't get those commands to run. Permissions taps shows permission as "Not supported" in the Graph explorer. I can't tell if its failing because it's a non-prod environment or permission access.
- VernimmenSteveSep 16, 2020Copper Contributor
lexcpcHi, we have integrated the Graph API in our Analytics and Call Accounting Solution PHONEX ONE. Feel free if you would like any additional information as we are able to show nice Queue Statistics Dashboard and Reports but we you can use the tool also for Billing of the calls. You can reach us via sales@evercom.be
- MrDeanoBJan 19, 2021Copper Contributor
Appreciate this reply may be a little late (and may have been solved) but I've only just come across this thread.
I've been looking into this myself and have solved - or, at least, have found a way of doing this with the beta graph APIs. First, I pull the SKUs to understand how many business voice licenses exist to determine total call minutes available. I then use the API:
/communications/callRecords/getPstnCallsto look for any call type that matches and outbound call and then total the duration for each matching record. From this, you end up with total minutes available for the tenant and total minutes used. If you want an example then let me know.The getPstnCalls takes a date range so you can specify the window you want data for. From this, you could choose to run when needed. As an example, we use this data to provide our customers will daily updates on their calling credits.- Prachi_JainMay 23, 2023Copper Contributor