Facing error while using Graph API for fetch meeting transcript and creating online meeting.

Kripa 140 Reputation points
2024-10-18T04:47:59.2466667+00:00

I am using Graph API for fetching meeting Transcript & create online meeting

Given Some permission:

  • OnlineMeetings.Read.All(Application)
  • OnlineMeetingsTranscript.Read.All(Appplication)
  • OnlineMeetings.ReadWrite(Delegated)

link :https://learn.microsoft.com/en-us/microsoftteams/platform/graph-api/meeting-transcripts/api-transcripts?source=recommendations

If i am using this URL : encountering this below error

url = f'https://graph.microsoft.com/v1.0/me/onlineMeetings/{meeting_id}/transcripts'

**Error:**Failed to fetch transcript. Status code: 400, Response: {"error":{"code":"BadRequest","message":"/me request is only valid with delegated authentication flow

If i am using this URL: encountering this below error:

url = f'https://graph.microsoft.com/v1.0/onlineMeetings/{meeting_id}/transcripts'

**Error:**Failed to fetch transcript. Status code: 400, Response: {"error":{"code":"BadRequest","message":"Resource not found for the segment 'onlineMeetings'

Microsoft Teams | Development
Microsoft Teams | Development
Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
Microsoft Teams | Microsoft Teams for business | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Prasad-MSFT 10,271 Reputation points Microsoft External Staff Moderator
    2024-10-18T05:25:17.6633333+00:00

    The error message "/me request is only valid with delegated authentication flow" indicates that the /me endpoint requires delegated permissions. This means that the API call must be made on behalf of a user who is signed in. Since you're using application permissions (OnlineMeetings.Read.All and OnlineMeetingsTranscript.Read.All), you should use the /users/{userId} endpoint instead of /me

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.