# Webhook

{% hint style="info" %}
Found in **Dashboard** under [Setup > Policies.](https://dashboard.dfend.app/dashboard/setup/policies)
{% endhint %}

Add your HTTPS endpoint as a webhook to receive [**Events**](https://dfend.gitbook.io/documentation/developer-api/types/event). We recommend using a cloud function, as they are generally reliable and come preconfigured with HTTPS support.

## Event handling

Events may contain one or more [**Recommendations**](https://dfend.gitbook.io/documentation/developer-api/types/event/recommendation). Design your system to respond accordingly.

## Request body

Webhooks will receive a JSON-encoded object in the request body containing a single field.

`body`  <mark style="color:blue;">object</mark>  An object containing the following fields:

* `event`  <mark style="color:blue;">object</mark>  An [Event](https://dfend.gitbook.io/documentation/developer-api/types/event).

## Retry on failure

Should we fail to send data to your webhook, our system will retry for several minutes using exponential backoff. If we are still unable to send the data, our system will timeout and we will not retry again later.

Please contact Support if you have questions or requirements.
