> For the complete documentation index, see [llms.txt](https://referral-rocket.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://referral-rocket.gitbook.io/docs/developer-tools/webhooks/setup.md).

# Setup

{% hint style="info" %}
Webhooks are available on a paid plan.
{% endhint %}

### Getting started <a href="#getting-started" id="getting-started"></a>

#### Step 1: Add a webhook URL to your account <a href="#step-1-add-a-webhook-url-to-your-campaign" id="step-1-add-a-webhook-url-to-your-campaign"></a>

1. Go to the *Setting* page in your account.
2. Click on Webhooks.
3. Enter your webhook endpoint URL and select the events you are interested in.
4. Publish/save your changes.

<figure><img src="/files/mYGm47oZCGAy6BLNCoVf" alt=""><figcaption></figcaption></figure>

**Retry logic**

If we are unable to deliver a webhook the first time, Referral Rocket will attempt to redeliver your webhooks for several days with an exponential back off. After several days of failed attempts we will mark the webhook as undeliverable and it will no longer be retried.

#### Handle Webhook Delivery:

* To handle webhook delivery the handler should be a secure endpoint.
* The handler should respond with 200 very quickly . The processing of the payload can be asynchronous at the receiving destination.
* The handler should accept POST JSON payload.

**Next steps**

[Test](/docs/developer-tools/webhooks/testing.md) implementation of webhooks.
