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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
