# Webhooks

> Send paid orders, marketing opt-ins and unsubscribes to Zapier, Make or your own server, signed so you can trust them.

The Webhooks app sends events from your funnels to a URL you choose, as they happen. Point it at a Zapier or Make "catch hook" to start a workflow with no code, or at your own server.

## Turn it on

1. In **Apps**, open **Webhooks** and install it.
2. Under **Defaults**, paste your **Webhook URL**. It must start with `https://` and be on the public internet.
3. Choose which events to send, then save.
4. Press **Send a test event**. It appears under **Recent events**, and in your Zap or scenario.

A funnel can send to a URL of its own, or turn the app off, on its own **Apps** page. Unsubscribes always go to the account's URL, since they apply to every funnel.

## Events

Each event is a `POST` with a JSON body like this:

```json
{
  "id": "evt_0b5e2c1e-7a3d-4c5e-9f1a-2d4b6c8e0f12",
  "type": "order.paid",
  "created_at": "2026-11-30T10:00:00Z",
  "data": { "order": { "number": "BD1042", "total_cents": 4999, "currency": "USD" } }
}
```

- `order.paid`: an order is paid, with the buyer, the shipping address and method, UTM tags, the lines and the totals (the full shape is below). Test orders are sent too, so you can try a workflow; skip them with a filter on `test`.
- `subscriber.opted_in`: an address agreed to marketing email from a signup form, a popup or the checkout box. `data.subscriber` has the email, where it agreed, when, the exact words it agreed to and the funnel.
- `subscriber.unsubscribed`: an address unsubscribed from marketing email. Stop sending it marketing wherever you copied it.
- `test`: sent by **Send a test event**.

Amounts are whole cents with the order's currency: `4999` with `USD` is $49.99. The `data.order` of an `order.paid` event looks like this:

```json
{
  "number": "BD1042", "test": false, "upsell": false, "upsell_of": null,
  "paid_at": "2026-11-30T10:00:00Z", "currency": "USD", "payment_provider": "stripe",
  "subtotal_cents": 4499, "shipping_cents": 500, "tax_cents": 0, "discount_cents": 0, "total_cents": 4999,
  "discount_code": null,
  "funnel": { "id": 12, "name": "Sleep gummies" },
  "customer": { "email": "sam@example.com", "first_name": "Sam", "last_name": "Lee", "phone": null, "marketing_consent": true },
  "shipping_address": { "name": "Sam Lee", "address1": "1 Main St", "address2": null, "city": "Austin", "region": "TX", "postal_code": "78701", "country": "US" },
  "shipping_method": "Standard",
  "utm": { "source": "facebook", "campaign": "launch" },
  "lines": [
    { "product": "Sleep gummies", "offer": "2 bottles", "option": null, "quantity": 1, "sku": "SG-60",
      "unit_price_cents": 4499, "total_cents": 4499, "bump": false }
  ]
}
```

## Check the signature

Events are signed the [Standard Webhooks](https://www.standardwebhooks.com) way, so its libraries can check them. Each request carries three headers:

- `webhook-id`: the event's id, the same on every retry. Use it to ignore one you've already handled.
- `webhook-timestamp`: when it was sent, in seconds since 1970.
- `webhook-signature`: `v1,` then a base64 HMAC-SHA256 of `id.timestamp.body`.

The key is your **Signing secret** from the app's page, without its `whsec_` prefix, base64-decoded. Compare signatures in constant time, and refuse a timestamp more than five minutes old. **Replace secret** makes a new one; the old one stops working at once. Zapier and Make don't check signatures, so you can leave this to your own server.

## Retries

Answer with any `2xx` status within 10 seconds to take an event. Anything else, a redirect, a timeout or no answer, is tried again with growing gaps, up to 8 times over about a day, then shown as **Failed** under **Recent events** with the last answer. Events are sent only to public `https` addresses, never to a private or local one.
