> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Subscribe To Webhook

Subscribe a webhook URL to a specific type of change notification.

<Note>
  External Documentation

  To learn more, visit the [Azure DevOps documentation](https://learn.microsoft.com/en-us/azure/devops/service-hooks/services/webhooks?view=azure-devops).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
  | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Change Type | Indicate the type of change in the subscribed resource that will raise a change notification.<br /><br />The supported values are: `created`, `updated`, `deleted`.<br /><br />**Note:**<br />Drive root item and list change notifications support only the `updated` changeType.<br />User and group change notifications support `updated` and `deleted` changeType. Use `updated` to receive notifications when user or group is created, updated or soft deleted.<br />Use `deleted` to receive notifications when user or group is permanently deleted. |
  | Expiration  | Specifies the date and time when the webhook subscription expires.<br /><br />The time is in UTC, and can be an amount of time from subscription creation that varies for the resource subscribed to.<br /><br />For the maximum supported subscription length of time, see the table on the [Microsoft reference](https://learn.microsoft.com/en-us/graph/api/resources/subscription?view=graph-rest-1.0#subscription-lifetime).                                                                                                                             |
  | Resource    | Specify the resource that will be monitored for changes.<br />Do not include the base URL `https://graph.microsoft.com/v1.0/`.<br /><br />See the possible [resource path values](https://learn.microsoft.com/en-us/graph/change-notifications-overview#supported-resources) for each supported resource.                                                                                                                                                                                                                                                     |
  | Webhook URL | The URL of the endpoint that will receive the change notifications.<br />This URL must make use of the HTTPS protocol.<br /><br />Any query string parameter included in the `notificationUrl` property will be included in the HTTP POST request when Microsoft Graph sends the change notifications.                                                                                                                                                                                                                                                        |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter    | Description                                                                                                                                                                                                                                                                                                                                                                                                 |
  | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Client State | Specifies the value of the `clientState` property sent by the service in each change notification.<br /><br />The maximum length is 128 characters.<br /><br />The client can check that the change notification came from the service by comparing the value of the `clientState` property sent with the subscription with the value of the `clientState` property received with each change notification. |
</div>

## Example Output

```json theme={"dark"}
{
	"@odata.context": "https://graph.microsoft.com/beta/$metadata#subscriptions/$entity",
	"id": "5522bd62-7c96-4530-85b0-00b916f6151a",
	"resource": "users/622eaaff-0683-4862-9de4-f2ec83c2bd98/messages",
	"applicationId": "507c3b9a-67b8-463d-88a2-15a8cefb2111",
	"changeType": "created",
	"clientState": "secretClientState",
	"notificationUrl": "https://webhook.azurewebsites.net/api/send/myNotifyClient",
	"notificationQueryOptions": null,
	"notificationContentType": null,
	"lifecycleNotificationUrl": null,
	"expirationDateTime": "2022-01-01T21:42:18.2257768Z",
	"creatorId": "a4c7bd34-4f3b-46b7-a25d-b63c1e2a2842",
	"includeResourceData": null,
	"latestSupportedTlsVersion": "v1_2",
	"encryptionCertificate": null,
	"encryptionCertificateId": null,
	"notificationUrlAppId": null
}
```

## Workflow Library Example

[Subscribe to Webhook with Azure Devops and Send Results Via Email](https://library.blinkops.com/workflows/subscribe-to-webhook-with-azure-devops-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/subscribe-to-webhook-with-azure-devops-and-send-results-via-email/canvas" />
</div>
