Expose Direct REST API to fetch CallRecordID for MS Teams
This can be a simplified way to fetch all CallRecordsID for MS Teams. Many customers are facing the same issue.
15 Comments
- wilsonolarteCopper Contributor
PKMist Hello.
Some answer for you:
1. Are callRecords generated only after the call ends (all participants have left the call) or is there an API to query while the call is active?
A: They are only generated when the call ends and it is the following day. There is no API to view active calls. Microsoft only notifies when the call has ended.
2. Is there an API to get multiple callRecords? The same API will work for you.
3. The granularity of the callRecords is at the session level per participant. Is there a way to get more granular statistics, such as per minute/5 min/10 min? Only the information indicated by the API, therefore, you will need to generate your own statistics.Please note that this API will not deliver information by call ID when the call goes through an autoattendant, so you will not know what the call tracking is between pstn and Callque or Autoattendant and also the transfers between agents with the previous 2.
- tim_h2470Copper Contributor
https://learn.microsoft.com/en-us/graph/api/callrecords-callrecord-getpstncalls?view=graph-rest-1.0&tabs=http
1. Yes
2. See previous API example I posted.
3. See the example JSON response in the doc.
- PKMistCopper Contributor
Thanks tim_h2470 for the API. It really helps.
I have a few questions
1. Are the callRecords generated only after the call is over (All participants left the call), or is there an API to query while the call is live?
2. Is there an API to get multiple callRecords?
3. The granularity of callRecords is at a session level per participant. Is there a way to get more granular stats like per minute/5 min/10 min? - tim_h2470Copper Contributor
https://graph.microsoft.com/v1.0/communications/callRecords/getDirectRoutingCalls(fromDateTime=2024-07-01,toDateTime=2024-07-02)
- YannickMonsieurCopper Contributor
Our organisation would really benefit from this feature, to get all callRecords in a certain timeframe through MS Graph. It's a shame that this isn't possible yet, hope this gets implemented in the near future.
- mvenkatramCopper Contributor
this is a basic need to get call health from microsoft teams via rest api, how can we subscribe to get notifications for a call id, there should be direct api to get list of call ids for a given time trame and then we can make respective queries to get call health. please provide the support for fetching all call record ids in graph api without subscribing to notifications
- Demanu1880Copper Contributor
Any update about this feature? I will be very helpful having direct endpoint to get call ids for specific user.
- KeithW_AUCopper Contributor
+1
- manojmehtaCopper Contributor
It will be great help to have an API to get call record ids/call records for a specific user OR an API which can accept date range to return all call records details for that time period like we have for List Direct Routing call as below:
GET https://graph.microsoft.com/v1.0/communications/callRecords/getDirectRoutingCalls(fromDateTime=2019-11-01,toDateTime=2019-12-01)
- wilsonolarteCopper Contributor
Hi.
Some information about this? this API or connection is very important for the future development and analysis of the information.
webhook is not is an option. Only need logs or id of the calls of user.