# Create Webhook Subscription

1. Open the **Webhooks** module in the Setup section.
2. Click **Create Webhook Subscription**<img src="https://797708323-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Liw6C9Fe7rohFtkU25j%2F-M23XjciEP9F3xdDeDrE%2F-M23aB95JDSUt7kYOdWo%2Fcreate-24px.svg?alt=media&#x26;token=d69f2239-6a6c-48a4-ba17-ae0bb299c3d0" alt="" data-size="line">in the top right corner.
3. Fill in all required fields listed below in the Create New Subscription window.
4. Click **Create**.

### **Required fields**

| **Field**      | Description                                                  |
| -------------- | ------------------------------------------------------------ |
| *User*         | User to receive the notifications                            |
| *Object Type*  | Name of the subscribed Dataloy object                        |
| *Event Type*   | Type of event to *Object*                                    |
| *Alert Script* | Subscribe to events based on the result of a DLPAlertScript. |
| *Channel Type* | Channel used to send notification                            |
| *Url*          | Endpoint to receive the subscription                         |

{% hint style="info" %}
**Field Conditions**

A webhook subscription can only have an *Object Type* and an *Event Type* or an *Alert Script*. The corresponding fields are disabled to match this condition.

If the *Channel Type* chosen is HTTP, then the *URL* field must also be filled in.&#x20;
{% endhint %}

![Create Webhook Subscription Dialog](https://797708323-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Liw6C9Fe7rohFtkU25j%2F-MUsmCa9wJesenH2kl9C%2F-MUwQ8NnqRh9_OJiLItD%2FScreenshot%202021-03-03%20at%2017.04.22.png?alt=media\&token=c5e04dc9-82e3-48ef-913d-b05022d305c0)

When choosing **HTTP** as Channel Type, you can also choose whether to add the *Password*, *Access Token* or *Request Access Token* fields.

![Channel Type HTTP Options](https://797708323-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Liw6C9Fe7rohFtkU25j%2F-MUsmCa9wJesenH2kl9C%2F-MUwX7oszRo7wLvmrJIL%2FScreenshot%202021-03-04%20at%2010.19.00.png?alt=media\&token=d2b4c4fd-19fd-4390-962d-184eb84f2cc6)
