Search code examples
microsoft-graph-apiazure-ad-graph-apimicrosoft-graph-cloudcommunications

Microsoft Graph API: How to use Get Call Method?


I'm using the Microsoft Graph API to retrieve information about Microsoft Teams. Now i want to retrieve information about the call using the method in the documentation below: https://learn.microsoft.com/en-us/graph/api/call-get?view=graph-rest-1.0&tabs=http

Here is written that i have to use the following url: GET /communications/calls/{id}

The thing is that i don't know what is the id i need to use because in the documentation is not specified. I try to use the group id, channel id and personal id of Teams but none of them works. Somebody knows how to use this method?

Thanks


Solution

  • See Properties of call resource type, id is the call id. Read-only.

    When you create a call, you will get an id in the response. see the response sample.

    When you need to get the call, just put this id value into GET https://graph.microsoft.com/v1.0/communications/calls/{id}.