Create Subscription
AI-generatedSummary
Create a new Microsoft Graph webhook subscription to monitor the creation of conversations within a specified Microsoft 365 group.
Inputs
- Group ID (required) — Select the Microsoft 365 group to monitor for new conversations.
- Webhook URL (required) — Specify the webhook URL that will receive notification events when new conversations are created in the group.
- Expiration Hours — Set the duration in hours the subscription remains active, up to a maximum of 4230 hours. Defaults to 72 hours.
Output shape
a single JSON object representing the newly created subscription details
The response includes subscription metadata such as subscription ID, expiration time, and monitored resource. If the API call fails, an error is thrown.
Examples
Example 1: Create a conversation creation subscription
Set 'Group ID' to the target Microsoft 365 group to monitor, 'Webhook URL' to your receiving endpoint, and optionally adjust 'Expiration Hours'. Upon execution, the subscription is registered and the returned JSON contains subscription info.