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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://referral-rocket.gitbook.io/docs/developer-tools/webhooks/setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
