Read and write the events, room bookings, parking spots, contacts and places your teams manage in Teams Pro — from your own code or from Power Automate.
curl \ https://tp-apim-int.azure-api.net/calendar/v1/$CALENDAR_ID/events \ -H "Ocp-Apim-Subscription-Key: $KEY"
using var http = new HttpClient(); http.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key", key); var events = await http.GetStringAsync( $"https://tp-apim-int.azure-api.net/calendar/v1/{calendarId}/events");
const response = await fetch( `https://tp-apim-int.azure-api.net/calendar/v1/${calendarId}/events`, { headers: { "Ocp-Apim-Subscription-Key": key } }); const events = await response.json();
import requests response = requests.get( f"https://tp-apim-int.azure-api.net/calendar/v1/{calendar_id}/events", headers={"Ocp-Apim-Subscription-Key": key}) events = response.json()
$events = Invoke-RestMethod ` -Uri "https://tp-apim-int.azure-api.net/calendar/v1/$calendarId/events" ` -Headers @{ "Ocp-Apim-Subscription-Key" = $key }