> ## 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

Starts a subscription to the specified content type. If a subscription to the specified content type already exists, this action updates its properties.

<Note>
  External Documentation

  To learn more, visit the [Microsoft Office 365 Management Activity documentation](https://learn.microsoft.com/en-us/office/office-365-management-api/office-365-management-activity-api-reference#start-a-subscription).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter       | Description                                                                                                                                                                                                                                                                                                                                                                                                              |
  | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
  | API Key         | This API Key is sent as a query parameter which is used for execution authentication. It's useful when creating a webhook integration with vendors such as Blink.<br /><br />You can find more information in our [Webhooks Documentation](https://docs.blinkops.com/docs/workflows/building-workflows/triggers/event-based-triggers/webhooks).                                                                          |
  | Content Type    | Specifies the type of activity logs you want to receive notifications for. <br /><br />For further details, please refer to [Microsoft Documentation](https://learn.microsoft.com/en-us/office/office-365-management-api/office-365-management-activity-api-reference#working-with-the-office-365-management-activity-api).                                                                                              |
  | Expiration Date | The expiration date of the webhook.                                                                                                                                                                                                                                                                                                                                                                                      |
  | Webhook Address | The address of the webhook.<br /><br />**Note**: A validation request will be sent to the webhook. To activate the webhook the server must be HTTPS and it needs to respond with a `200` status code.<br /><br />For further information, please refer to [Microsoft Documentation](https://learn.microsoft.com/en-us/office/office-365-management-api/office-365-management-activity-api-reference#webhook-validation). |
  | Webhook AuthID  | A string that will be included as the `WebHook-AuthID` header in notifications sent to the webhook as a means of identifying and authorizing the source of the request to the webhook.                                                                                                                                                                                                                                   |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter            | Description                                                                                                                                                                                                                                                                                                                             |
  | -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Publisher Identifier | This parameter is used for throttling the request rate.<br /><br />For further information regarding `Publisher Identifier`, please refer to [Microsoft Documentation](https://learn.microsoft.com/en-us/office/office-365-management-api/troubleshooting-the-office-365-management-activity-api#request-content-blobs-and-throttling). |
</div>

## Example Output

```json theme={"dark"}
{
	"contentType": "Audit.SharePoint",
	"status": "enabled",
	"webhook": {
		"status": "enabled",
		"address": "https://webhook.myapp.com/o365/",
		"authId": "o365activityapinotification",
		"expiration": null
	}
}
```

## Workflow Library Example

[Subscribe to Webhook with Microsoft Office 365 Management Activity and Send Results Via Email](https://library.blinkops.com/workflows/subscribe-to-webhook-with-microsoft-office-365-management-activity-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-microsoft-office-365-management-activity-and-send-results-via-email/canvas" />
</div>
