skills/create-subscription/SKILL.md
# Create Subscription Subscribe to change notifications for mail resources via webhooks. ## API Details - **API**: Microsoft Outlook Mail API - **Method**: POST - **Path**: `/subscriptions` - **Operation ID**: `createSubscription` - **Tag**: Subscriptions - **OpenAPI**: [microsoft-outlook-mail-api.yaml](../../openapi/microsoft-outlook-mail-api.yaml) ## Sandbox Mock server URL: `http://localhost:8080/rest/microsoft-outlook-mail-api/1.0.0/subscriptions` ## Required Headers - `Authorization:
npx skillsauth add naftiko/microsoft-outlook-sandbox skills/create-subscriptionInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Subscribe to change notifications for mail resources via webhooks.
/subscriptionscreateSubscriptionMock server URL: http://localhost:8080/rest/microsoft-outlook-mail-api/1.0.0/subscriptions
Authorization: Bearer {access-token}Content-Type: application/jsonMail.Read| Field | Type | Description | |-------|------|-------------| | changeType | string | The type of changes to subscribe to (e.g., created, updated, deleted) | | notificationUrl | string | The URL to receive webhook notifications | | resource | string | The resource to monitor (e.g., me/mailFolders('Inbox')/messages) | | expirationDateTime | string | The expiration date and time of the subscription (ISO 8601) | | clientState | string | A secret value for validating notification authenticity |
curl -X POST "http://localhost:8080/rest/microsoft-outlook-mail-api/1.0.0/subscriptions" \
-H "Authorization: Bearer {access-token}" \
-H "Content-Type: application/json" \
-d '{
"changeType": "created",
"notificationUrl": "https://webhook.contoso.com/api/notifications",
"resource": "me/mailFolders('\''Inbox'\'')/messages",
"expirationDateTime": "2024-02-15T11:00:00Z",
"clientState": "secretClientValue"
}'
{
"id": "7f105c7d-2dc5-4530-97cd-4e7ae6534c07",
"resource": "me/mailFolders('Inbox')/messages",
"changeType": "created",
"notificationUrl": "https://webhook.contoso.com/api/notifications",
"expirationDateTime": "2024-02-15T11:00:00Z",
"clientState": "secretClientValue"
}
Use this operation to create a new webhook subscription for mail change notifications. Specify the resource to monitor, the types of changes to track, and the URL to receive notifications. The notificationUrl must be a publicly accessible HTTPS endpoint. Returns 201 on success. Subscriptions expire and must be renewed before the expirationDateTime.
tools
# Update Open Extension Update an existing open type extension on a message. ## API Details - **API**: Microsoft Outlook Mail API - **Method**: PATCH - **Path**: `/me/messages/{message-id}/extensions/{extension-id}` - **Operation ID**: `updateOpenExtension` - **Tag**: Extensions - **OpenAPI**: [microsoft-outlook-mail-api.yaml](../../openapi/microsoft-outlook-mail-api.yaml) ## Sandbox Mock server URL: `http://localhost:8080/rest/microsoft-outlook-mail-api/1.0.0/me/messages/{message-id}/exten
development
# Update Message Updates the properties of an existing message in the signed-in user's mailbox, such as marking it as read or changing its importance. ## API Details - **API**: Microsoft Outlook Mail API - **Method**: PATCH - **Path**: `/me/messages/{message-id}` - **Operation ID**: `updateMessage` - **Tag**: Messages - **OpenAPI**: [microsoft-outlook-mail-api.yaml](../../openapi/microsoft-outlook-mail-api.yaml) ## Sandbox Mock server URL: `http://localhost:8080/rest/microsoft-outlook-mail-
development
# Update Inbox Rule Update the properties of an existing inbox message rule. ## API Details - **API**: Microsoft Outlook Mail API - **Method**: PATCH - **Path**: `/me/mailFolders/inbox/messageRules/{messageRule-id}` - **Operation ID**: `updateMessageRule` - **Tag**: InboxRules - **OpenAPI**: [microsoft-outlook-mail-api.yaml](../../openapi/microsoft-outlook-mail-api.yaml) ## Sandbox Mock server URL: `http://localhost:8080/rest/microsoft-outlook-mail-api/1.0.0/me/mailFolders/inbox/messageRule
development
# Update Mailbox Settings Update the user's mailbox settings such as automatic replies, locale, time zone, or working hours. ## API Details - **API**: Microsoft Outlook Mail API - **Method**: PATCH - **Path**: `/me/mailboxSettings` - **Operation ID**: `updateMailboxSettings` - **Tag**: MailboxSettings - **OpenAPI**: [microsoft-outlook-mail-api.yaml](../../openapi/microsoft-outlook-mail-api.yaml) ## Sandbox Mock server URL: `http://localhost:8080/rest/microsoft-outlook-mail-api/1.0.0/me/mail