Microsoft Teams API for live events

%3CLINGO-SUB%20id%3D%22lingo-sub-1418908%22%20slang%3D%22en-US%22%3EMicrosoft%20Teams%20API%20for%20live%20events%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1418908%22%20slang%3D%22en-US%22%3E%3CP%3EAre%20there%20APIs%20related%20to%20Teams%20live%20event%3C%2FP%3E%3CP%3E-%20Create%20a%20live%20event%3C%2FP%3E%3CP%3E-%20Get%20the%20attendees%20list%20of%20the%20live%20event%3C%2FP%3E%3CP%3Eetc%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1418908%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1419445%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Teams%20API%20for%20live%20events%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1419445%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F680348%22%20target%3D%22_blank%22%3E%40rickeylohia%3C%2FA%3E%26nbsp%3B%2C%20Currently%20there%20is%20no%20API%20to%20set%20up%20live%20event%20in%20teams.%20Please%20look%20at%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fteams-live-events%2Fset-up-for-teams-live-events%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fteams-live-events%2Fset-up-for-teams-live-events%3C%2FA%3E.%20However%20%3CSPAN%3EMeetNow%20is%20done%20in%20Graph%20API%20using%20application%20permissions.%20So%20a%20bot%2C%20application%20or%20a%20Flow%20%2F%20Logic%20Apps%20can%20create%20a%20Teams%20meeting.%20No%2C%20it%20is%20not%20a%20scheduled%20one%20but%20it%20is%20available%20instantly.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ERequest%20Body%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22wp-block-code%22%3E%3CCODE%3E%7B%0A%20%20%22meetingType%22%3A%20%22meetNow%22%2C%0A%20%20%22participants%22%3A%20%7B%0A%20%20%20%20%22organizer%22%3A%20%7B%0A%20%20%20%20%20%20%22identity%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22user%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20%22id%22%3A%20%22%5BmyUserId-Guid%5D%22%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%7D%2C%0A%20%20%22subject%22%3A%20%22MeetNow%20from%20Graph%20API%22%0A%7D%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EThat%E2%80%99s%20the%20call%20body.%20Simple%2C%20effiecient.%20That%20could%20be%20easily%20done%20in%20many%20applications.%20Then%20execute%20the%20call%3C%2FP%3E%0A%3CPRE%20class%3D%22wp-block-code%22%3E%3CCODE%3EPOST%20https%3A%2F%2Fgraph.microsoft.com%2Fbeta%2Fapp%2FonlineMeetings%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EFrom%20the%20response%20you%20can%20isolate%20easily%20the%20most%20important%20information%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EjoinURL%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3ESend%20that%20joinURl%20into%20participants%20you%20want%20to%20add%20into%20a%20meeting.%20But%20there%20is%20more%20in%20that%20meeting.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1505156%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Teams%20API%20for%20live%20events%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1505156%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F371090%22%20target%3D%22_blank%22%3E%40Trinetra-MSFT%3C%2FA%3E%26nbsp%3Bappreciate%20Teams%20live%20event%20api%20is%20not%20currently%20available.%20I'm%20just%20wonder%20if%20it%20is%20in%20your%20development%20roadmap%3F%20Could%20you%20share%20any%20insights%20with%20us%3F%20Cheers.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1677499%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Teams%20API%20for%20live%20events%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1677499%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F680348%22%20target%3D%22_blank%22%3E%40rickeylohia%3C%2FA%3E%26nbsp%3Byou%20can%20create%20Live%20Events%20via%20the%26nbsp%3B%3CSPAN%3E%2Fv1.0%2Fme%2FonlineMeetings%2C%20simply%20add%3C%2FSPAN%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-json%22%3E%3CCODE%3E%22isBroadcast%22%3A%20true%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CSPAN%3E%26nbsp%3Bto%20the%20body.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EYou%20can%20add%20producers%20for%20the%20event%3A%3C%2FSPAN%3E%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-json%22%3E%3CCODE%3E%22participants%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22producers%22%3A%20%5B%0A%20%20%20%20%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22upn%22%3A%20%22someuser%40somedomain.com%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%5D%0A%20%20%20%20%7D%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENote%3A%20this%20is%20available%20in%20v1.0%20(so%20GA)%20but%20it%20is%20not%20in%20the%20documentation.%20It%20used%20to%20be%20in%20the%20beta%20documentation%20but%20I%20can't%20find%20it%20there%20anymore%20either.%20So%20I'm%20not%20sure%20just%20how%20unsafe%20it%20is%20to%20use%20this%20in%20a%20production%20environment.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F371090%22%20target%3D%22_blank%22%3E%40Trinetra-MSFT%3C%2FA%3E%26nbsp%3B%2C%20would%20you%20care%20to%20comment%20on%20this%3F%20Also%2C%20you%20were%20referring%20to%20a%20solution%20for%20creating%20online%20meetings%20(MeetNow)%20with%20application%20permissions.%20However%2C%20I%20can't%20find%20that%20in%20the%20documentation%20either.%20Could%20you%20give%20more%20information%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1825104%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Teams%20API%20for%20live%20events%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1825104%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F371090%22%20target%3D%22_blank%22%3E%40Trinetra-MSFT%3C%2FA%3EHi%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJust%20to%20confirm%20-%20we%20have%20an%20internal%20website%20that%20our%20trainers%2C%20employees%2C%20and%20partners%20use%20to%20schedule%2C%20sign-up%20for%2C%20launch%2C%20and%20track%20attendance%20for%20training%20courses.%20There%20is%20no%20way%20to%20integrate%20our%20website%20with%20Live%20events%20to%20perform%20these%20actions%20from%20our%20website%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1847872%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Teams%20API%20for%20live%20events%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1847872%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F796097%22%20target%3D%22_blank%22%3E%40Jonas2240%3C%2FA%3E%26nbsp%3BWe%20are%20trying%20to%20create%20Live%20Events%20from%20Graph%20API%20and%20even%20when%20we%20create%20the%20live%20event%20it%20does%20not%20appear%20in%20the%20calendar.%20Did%20you%20face%20this%20same%20problem%3F%20If%20so%2C%20how%20did%20you%20solve%20it%3F%20Thanks%20so%20much!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1847937%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Teams%20API%20for%20live%20events%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1847937%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F855600%22%20target%3D%22_blank%22%3E%40AngelesESP%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ecurrently%20you%20can%20only%20create%20these%20Live%20Events%20via%20the%20Online%20Meeting%20API%20afaik.%20As%20per%20the%20documentation%20(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fapplication-post-onlinemeetings%3Fview%3Dgraph-rest-1.0%26amp%3Btabs%3Dhttp%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fapplication-post-onlinemeetings%3Fview%3Dgraph-rest-1.0%26amp%3Btabs%3Dhttp%3C%2FA%3E)%2C%20online%20meetings%20created%20via%20this%20API%20don't%20show%20in%20any%20calendar.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EA%20workaround%20would%20be%20to%20create%20the%20Live%20Event%20via%20the%20Online%20Meeting%20API%2C%20then%20use%20the%20details%20obtained%20via%20the%20response%20in%20a%20new%20call%20to%20the%20Calendar%20API%20to%20create%20an%20event%20in%20the%20user's%20calendar%20(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fuser-post-events%3Fview%3Dgraph-rest-1.0%26amp%3Btabs%3Dhttp%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fuser-post-events%3Fview%3Dgraph-rest-1.0%26amp%3Btabs%3Dhttp%3C%2FA%3E).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20this%20helps.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EKind%20regards%2C%3C%2FP%3E%3CP%3EJonas%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Are there APIs related to Teams live event

- Create a live event

- Get the attendees list of the live event

etc

6 Replies

@rickeylohia , Currently there is no API to set up live event in teams. Please look at https://docs.microsoft.com/en-us/microsoftteams/teams-live-events/set-up-for-teams-live-events. However MeetNow is done in Graph API using application permissions. So a bot, application or a Flow / Logic Apps can create a Teams meeting. No, it is not a scheduled one but it is available instantly.

 

Request Body:

{
  "meetingType": "meetNow",
  "participants": {
    "organizer": {
      "identity": {
        "user": {
          "id": "[myUserId-Guid]"
        }
      }
    }
  },
  "subject": "MeetNow from Graph API"
}

That’s the call body. Simple, effiecient. That could be easily done in many applications. Then execute the call

POST https://graph.microsoft.com/beta/app/onlineMeetings

From the response you can isolate easily the most important information

  • joinURL

Send that joinURl into participants you want to add into a meeting. But there is more in that meeting.

@Trinetra-MSFT appreciate Teams live event api is not currently available. I'm just wonder if it is in your development roadmap? Could you share any insights with us? Cheers. 

@rickeylohia you can create Live Events via the /v1.0/me/onlineMeetings, simply add 

"isBroadcast": true

 to the body. 

 

You can add producers for the event:

"participants": {
        "producers": [
            {
                "upn": "someuser@somedomain.com"
            }
        ]
    }

 

Note: this is available in v1.0 (so GA) but it is not in the documentation. It used to be in the beta documentation but I can't find it there anymore either. So I'm not sure just how unsafe it is to use this in a production environment.

 

@Trinetra-MSFT , would you care to comment on this? Also, you were referring to a solution for creating online meetings (MeetNow) with application permissions. However, I can't find that in the documentation either. Could you give more information?

@Trinetra-MSFTHi, 

 

Just to confirm - we have an internal website that our trainers, employees, and partners use to schedule, sign-up for, launch, and track attendance for training courses. There is no way to integrate our website with Live events to perform these actions from our website? 

@Jonas2240 We are trying to create Live Events from Graph API and even when we create the live event it does not appear in the calendar. Did you face this same problem? If so, how did you solve it? Thanks so much!

Hi @AngelesESP,

 

currently you can only create these Live Events via the Online Meeting API afaik. As per the documentation (https://docs.microsoft.com/en-us/graph/api/application-post-onlinemeetings?view=graph-rest-1.0&tabs=...), online meetings created via this API don't show in any calendar.

 

A workaround would be to create the Live Event via the Online Meeting API, then use the details obtained via the response in a new call to the Calendar API to create an event in the user's calendar (https://docs.microsoft.com/en-us/graph/api/user-post-events?view=graph-rest-1.0&tabs=http).

 

I hope this helps.

 

Kind regards,

Jonas