Guide

Send events out with webhooks.

Have Revvly post to your own address when a CRM lead changes or a Support request moves, with a signature you can check and a log you can retry from. This is the outbound direction. To send data into Revvly instead, see the invoice payments and event ingestion API pages.

01Outbound is the other direction

A webhook here means Revvly sends an HTTP POST to a web address you control, each time something happens. Both kinds below are signed, retried and logged, and both are set up by workspace admins and owners only.

Inbound webhooks
You call Revvly. For example a payment provider telling Revvly an invoice was paid, or your product posting usage. These use an API key and are described in the Invoice payments and Events API pages, not here.
CRM lead webhooks
Revvly calls you when a lead is created, changed or deleted. Org Settings, Webhooks. Up to 25 per workspace. Signature in X-Revvly-Signature.
Support webhooks
Revvly calls you when a Support request changes. Org Settings, Support, Webhooks. Up to 5 per workspace. Signature in Revvly-Signature. Needs Support.

02Add a CRM lead webhook

Choose Add webhook and fill in a Name, the URL, which events to Send when, and optionally which Pipelines. The URL must be https, must point at a public address, and must not contain a username or password. Revvly does not follow redirects, so give the final address. The events are Lead created (a lead was added to a pipeline), Lead updated (any field, a stage or pipeline move, a lost reason or a conversion; it carries the full current lead) and Lead deleted (carries a deletion snapshot with id, title, pipelineId, stageId, organizationId and deleted set to true). Leave Pipelines empty to receive leads from every pipeline, including ones you add later. When you save, the signing secret is shown once in Save your signing secret. Copy it before you close the dialog. Leads exist only in workspaces that have the CRM turned on.

Where
  1. Org Settings
  2. Integrations & developers
  3. Developers
  4. Webhooks
  5. Add webhook

Admins and owners only. A workspace can have up to 25 webhooks.

Feature CRM (switched on by a Revvly platform admin), because the events are leads.

Permission integrations.webhook.manage, held by admins and owners.

03Add a billing webhook

The same Add webhook dialog offers billing events, in every workspace. Invoice issued (a subscription start, renewal, mid-cycle change or an invoice raised by hand), Invoice paid, Invoice overdue, Invoice payment reversed and Invoice voided carry the invoice: id, invoiceNumber, subscriptionId, amount, balanceDue (what is still owed), subtotal and tax as amount and currency, taxBreakdown, paymentStatus, invoiceDate, dueDate and paidDate. Each webhook has an Invoice date format, shown in the dialog once an invoice event is ticked, that decides how those three dates are written: the full timestamp (the default, 2026-11-30T00:00:00.000Z), yyyy-MMM-dd (2026-Nov-30), yyyy-MM-dd (2026-11-30), MMM dd, yy (Nov 30, 26), dd/MM/yyyy (30/11/2026), MM/dd/yyyy (11/30/2026), dd MMM yyyy (30 Nov 2026) or MMMM d, yyyy (November 30, 2026). The date is the calendar day in UTC, an unpaid invoice’s paidDate stays null, and the dates inside the nested subscription keep the full timestamp. Each webhook formats its own copy, so two webhooks can take the same event in different formats. Subscription created, Subscription trial will end (three days before a free trial ends), Subscription trial converted (with firstInvoiceId), Subscription cancelled and Subscription ended carry the subscription. Payment succeeded (a card charge went through and is booked on the invoice; Invoice paid follows when it settles it), Payment failed (with willRetry, nextAttemptAt, declineCode and message) and Payment action required (the customer must act, for example for 3-D Secure) are sent once per card charge, so each attempt on one invoice is its own event; they carry chargeId, invoiceId, paymentIntentId and amount in the currency’s major unit, and nothing about the card itself. Invoice issued is never sent for a draft, a refund or credit note, or imported history. Invoice voided is sent when an invoice that was issued is deleted or cancelled: when you hold or undo a renewal and its invoice is removed, when an invoice is cancelled or deleted, and when a subscription is deleted with its invoices. Because the invoice may no longer exist, the payload is the invoice as it stood, with paymentStatus CANCELLED and nothing due, plus reason (DELETED or CANCELLED), cause (RENEWAL_HELD or RENEWAL_UNDONE when a held or undone renewal removed it, otherwise null), amountPaid (the cash that had been recorded on it, normally zero) and voidedAt. Use it to drop or close the invoice you created when you received Invoice issued. It is sent for the same invoices Invoice issued is sent for and never twice for one invoice, so deleting an invoice that was already cancelled sends nothing more. All of them carry client with the client id, your externalId, name, industry, lifecycleStage and market (id, name, code and defaultCurrency of the client’s region, or null when the client has no region). Invoice events also carry a top-level currency. They also carry subscription, the subscription that raised the invoice, with the same fields a subscription event carries (without client, which the invoice already has); it is null for an invoice raised by hand. Subscription events add trialStartedAt, trialEndingNotifiedAt, trialRequiresPaymentMethod, basePrice (amount and currency), subscriptionType, nextRenewalDate, cancelledAt, cancellationEffectiveDate, commitmentEndDate, billingAnchorDay, billingAuthority, the plan (bundleId, bundleLineageId, bundleVersion and moduleIds), contractId, createdAt and updatedAt, on top of the public API fields such as status, period, currency, startDate, endDate, trialEndsAt and trialConvertedAt. The shared fields use the same names as the public GraphQL API. There is no PDF link in the payload because it would expire before a retried delivery arrived; read pdfUrl from the API when you need it. Billing events are not tied to a pipeline, so leave Pipelines empty on a webhook that takes them.

Where
  1. Org Settings
  2. Integrations & developers
  3. Developers
  4. Webhooks
  5. Add webhook

Feature None to switch on.

Permission integrations.webhook.manage, held by admins and owners.

04Send leads to a Google Sheet through Zapier

In Zapier, create a Zap that starts with Webhooks by Zapier and choose Catch Hook. Paste the address it gives you into the URL field in Revvly. Then add the Google Sheets action Create or Update Spreadsheet Row and match rows on the lead id, which is data.id in the body. Subscribe to Lead created, Lead updated and Lead deleted: updates then change the row, a delete lets you remove it, and a lead that moves out of a pipeline you scoped the webhook to sends one last update for the pipeline it left. Zapier does not check the signature, so you can ignore it there. Send test event from the row menu opens a picker: choose the plain test event or any event type, and Revvly posts a sample with invented data in the shape of the real payload, marked test: true, and shows whether your address answered. A test never counts toward the endpoint’s health.

Where
  1. Org Settings
  2. Integrations & developers
  3. Developers
  4. Webhooks
  5. row menu
  6. Send test event

Feature CRM (switched on by a Revvly platform admin), because the events are leads.

Permission integrations.webhook.manage, held by admins and owners.

05What a lead payload looks like

Every delivery is a JSON POST with an envelope: id is the event id and stays the same across retries, type is the event, occurredAt is the time, and data is the lead. The lead is flat and carries names as well as ids, so a spreadsheet column can use the stage, owner and company name directly. It also carries the demo and trial dates (demoDate, trialStartDate, trialEndDate and trialDays, the length of the trial in days), the client’s market (marketId, marketName, marketCode and marketDefaultCurrency, taken from the client’s region), the client’s organizationExternalId, organizationIndustry and organizationLifecycleStage, the primary contact (contactId, contactName, contactEmail, contactPhone), the plan the deal is aimed at (interestedPlanKind, interestedPlanId, interestedModuleTierId, billingPeriod, prepaidPeriods, variableEstimates and tagIds), the conversion (convertedSubscriptionId, convertedAt) and where a booking came from (bookingEventTypeName and utmSource, utmMedium, utmCampaign, utmContent, utmTerm). Fields with no value are null. Custom fields are not included. A lead.deleted event carries only id, title, pipelineId, stageId, organizationId and deleted set to true. A test event has type webhook.test.

POST https://hooks.example.com/revvly
Content-Type: application/json
User-Agent: Revvly-Webhooks/1
X-Revvly-Event: lead.updated
X-Revvly-Delivery: 6ac49cd2866904b09b303383
X-Revvly-Timestamp: 1791270098
X-Revvly-Signature: v1=5f2c...e1

{
  "id": "6ac49cd2866904b09b30aa01",
  "type": "lead.updated",
  "occurredAt": "2026-10-06T07:01:38.486Z",
  "data": {
    "id": "6ac49cd2866904b09b30337c",
    "title": "Acme annual plan",
    "status": "OPEN",
    "pipelineId": "...", "pipelineName": "Sales",
    "stageId": "...", "stageName": "Proposal", "stageKind": "...",
    "stageEnteredAt": "2026-10-05T09:12:00.000Z",
    "source": "...",
    "ownerId": "...", "ownerName": "Dana Lee", "ownerEmail": "dana@example.com",
    "organizationId": "...", "organizationName": "Acme",
    "organizationExternalId": null, "organizationIndustry": "Retail",
    "organizationLifecycleStage": "PROSPECT",
    "marketId": "...", "marketName": "Europe", "marketCode": "EU",
    "marketDefaultCurrency": "EUR",
    "contactId": "...", "contactName": "Sam Rivera",
    "contactEmail": "sam@acme.example", "contactPhone": null,
    "estimatedValue": 12000, "expectedArr": 12000, "currency": "EUR",
    "expectedCloseDate": null, "closeProbability": null,
    "demoDate": "2026-10-12T10:00:00.000Z",
    "trialStartDate": "2026-10-13T00:00:00.000Z",
    "trialEndDate": "2026-10-27T00:00:00.000Z", "trialDays": 14,
    "interestedPlanKind": "BUNDLE", "interestedPlanId": "...",
    "interestedModuleTierId": null, "billingPeriod": "YEARLY",
    "prepaidPeriods": null, "variableEstimates": [], "tagIds": [],
    "lostReason": null, "convertedSubscriptionId": null, "convertedAt": null,
    "aiAssisted": false, "bookingEventTypeName": null,
    "utmSource": "newsletter", "utmMedium": null, "utmCampaign": null,
    "utmContent": null, "utmTerm": null, "externalRef": null,
    "createdAt": "2026-09-30T10:00:00.000Z",
    "updatedAt": "2026-10-06T07:01:38.000Z"
  }
}

06Bring a new destination up to date

A webhook only hears about changes from the moment it exists. To fill an empty sheet with the leads you already have, open the row menu and choose Send existing leads. Revvly queues the existing leads in your webhook’s pipelines, replayed as lead.updated when the webhook takes that event and as lead.created otherwise, and they arrive over the next few minutes at a steady pace rather than all at once. One run covers up to 2,000 leads; the dashboard repeats until done, and tells you if there are more so you can run it again. A lead that is already waiting to be sent to that webhook is not queued twice, so a double click is safe. The option is unavailable while the webhook is off.

Where
  1. Org Settings
  2. Integrations & developers
  3. Developers
  4. Webhooks
  5. row menu
  6. Send existing leads

Feature CRM (switched on by a Revvly platform admin), because the events are leads.

Permission integrations.webhook.manage, held by admins and owners.

07Delivery, retries and limits for lead webhooks

A delivery succeeds on any 2xx answer. Delivery is at least once, so dedupe on the envelope id. A failure is retried up to seven attempts in all, after 30 seconds, 2 minutes, 10 minutes, 1 hour, 6 hours and 12 hours, about 20 hours in total, and a Retry-After from your server is honoured up to six hours. A refusal that retrying cannot fix, such as most 4xx answers (not 408, 425 or 429) or a redirect, fails at once. If a newer update for the same lead has already been delivered, an older queued one is skipped so stale data does not overwrite fresh. After 25 failed deliveries in a row Revvly switches the webhook off and the Status column shows Switched off with the reason; deliveries queued meanwhile wait up to seven days for you to turn it back on, which also clears the count. The other statuses are Active, Failing and Off. Activity on a row lists recent deliveries with a Retry button for failed ones, and the log is kept for 30 days. Open a delivery to see the exact JSON body Revvly posted and its headers, with a Copy body button; the per-attempt timestamp and signature headers are not shown.

What happens to one delivery
  1. A lead changes
    Created, updated or deleted.
  2. Signed POST to your URL
    The envelope id stays the same across retries.
  3. Any 2xx answer
    Delivered.
    or
    Other failure
    Retried, up to seven attempts in all.
    or
    Cannot be fixed by retrying
    Most 4xx answers or a redirect fail at once.
Only a 2xx answer counts as delivered; most 4xx answers are not retried.
Retry schedule for lead webhooks
  1. On the event
    Attempt 1
  2. 30 seconds later
    Attempt 2
  3. 2 minutes later
    Attempt 3
  4. 10 minutes later
    Attempt 4
  5. 1 hour later
    Attempt 5
  6. 6 hours later
    Attempt 6
  7. 12 hours later
    Attempt 7
  8. After attempt 7
    Delivery fails
    25 failures in a row switch the webhook off.
Seven attempts spread over about 20 hours, then the delivery fails.
Where
  1. Org Settings
  2. Integrations & developers
  3. Developers
  4. Webhooks
  5. Activity

Turn off, Turn on, Edit and Delete are in the row menu. Delete also removes its log.

Feature None to switch on.

Permission integrations.webhook.manage, held by admins and owners.

08Verify a lead webhook signature

Each request carries X-Revvly-Timestamp (unix seconds), X-Revvly-Delivery and X-Revvly-Signature, which is v1= followed by the hex HMAC-SHA256 of the timestamp, a full stop and the raw request body, keyed with your signing secret. Check it against the raw bytes, not re-serialised JSON, and reject timestamps older than a few minutes. Rotate signing secret in the row menu replaces the secret and the old one stops working at once, so update your receiver first or at the same moment.

import { createHmac, timingSafeEqual } from 'node:crypto';

// rawBody: the exact bytes received, before any JSON parsing.
// secret: the whole signing secret, including the whsec_ prefix.
function verify(rawBody, headers, secret) {
  const t = Number(headers['x-revvly-timestamp']);
  if (!Number.isFinite(t) || Math.abs(Date.now() / 1000 - t) > 300) return false; // older than 5 min
  const expected = 'v1=' + createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex');
  const given = Buffer.from(headers['x-revvly-signature'] ?? '');
  const want = Buffer.from(expected);
  // timingSafeEqual throws on different lengths, so check that first.
  return given.length === want.length && timingSafeEqual(want, given);
}

09Support webhooks

Support webhooks send ticket events to your own backend, for instance to keep your product in step with a request. Choose Add endpoint, enter an https address and tick the events. The signing secret is shown once. Changing the URL later keeps the secret. Send test event posts a signed webhook.test. A workspace can have up to five endpoints, and the whole page needs Support.

ticket.created
Request opened: a user opens a request.
ticket.message
New message: one the user can see, from them, your team or the assistant.
ticket.status_changed
Status changed.
ticket.updated
Type or title changed.
ticket.closed
Request closed.
ticket.reopened
Request reopened.
ticket.progressed
Progress update: the client-facing stage moved, with the stage as you named it.
Where
  1. Org Settings
  2. Module settings
  3. Support
  4. Webhooks
  5. Add endpoint

Admins and owners only. Everyone else sees a notice that only admins can see webhooks.

Feature Support (switched on by a Revvly platform admin).

Permission integrations.webhook.manage, held by admins and owners.

10What a Support delivery contains

Bodies carry ids, not content. Only events the end user could see are sent, so internal notes never produce one, and only for requests that have an end-user requester. data holds ticketId, ticketNumber, messageId (set for ticket.message, otherwise null), by (end_user, agent, ai or system) and the requester’s endUser.externalUserId. ticket.progressed adds data.stage with a key and a label. Fetch the content through your own tools if you need it.

POST https://api.example.com/webhooks/revvly
Content-Type: application/json
Revvly-Event-Id: 6ac49cd2866904b09b303383
Revvly-Signature: t=1791270098,v1=5f2c...e1

{
  "id": "6ac49cd2866904b09b303383",
  "type": "ticket.message",
  "createdAt": "2026-10-06T07:01:38.486Z",
  "data": {
    "ticketId": "6ac49cd2866904b09b30337c",
    "ticketNumber": "AA-42",
    "messageId": "6ac49cd2866904b09b30337d",
    "by": "agent",
    "endUser": { "externalUserId": "user_8412" }
  }
}

11Retries, replay and verification for Support webhooks

Revvly waits five seconds for an answer, does not follow redirects, and treats any non-2xx as a failure. It retries after 10 seconds, 1 minute, 5 minutes, 30 minutes, 2 hours and 6 hours, then marks the delivery Gave up; anything still owed 24 hours after it was queued is skipped as stale. After 10 deliveries in a row give up, the endpoint is turned off with a reason and nothing is queued for it until you turn it on. Deliveries lists each event with its status (Delivered, Waiting, Gave up or Skipped), kept for 30 days, and Replay sends a finished one again with the same event id and a fresh signature. Delivery is at least once and may arrive out of order, so ignore an event id you have already handled. The signature header is Revvly-Signature: t=unix seconds,v1=hex HMAC-SHA256 of t, a full stop and the raw body.

Retry schedule for Support webhooks
  1. On the event
    First try
    Waits five seconds for an answer.
  2. 10 seconds later
    Retry 1
  3. 1 minute later
    Retry 2
  4. 5 minutes later
    Retry 3
  5. 30 minutes later
    Retry 4
  6. 2 hours later
    Retry 5
  7. 6 hours later
    Retry 6
  8. After retry 6
    Gave up
    Replay sends it again.
Six retries after the first try, then Gave up; ten give-ups in a row turn the endpoint off.
Where
  1. Org Settings
  2. Module settings
  3. Support
  4. Webhooks
  5. Deliveries

Feature Support (switched on by a Revvly platform admin).

Permission integrations.webhook.manage, held by admins and owners.

import { createHmac, timingSafeEqual } from 'node:crypto';

// rawBody: the exact bytes received, before any JSON parsing.
function verify(rawBody, header, secret) {
  const parts = Object.fromEntries(String(header ?? '').split(',').map((p) => p.split('=')));
  const t = Number(parts.t);
  if (!Number.isFinite(t) || Math.abs(Date.now() / 1000 - t) > 300) return false; // older than 5 min
  const expected = createHmac('sha256', secret).update(`${parts.t}.${rawBody}`).digest('hex');
  const given = Buffer.from(parts.v1 ?? '');
  return given.length === expected.length && timingSafeEqual(Buffer.from(expected), given);
}

12The cash flow forecast webhook

Revvly sends cash_flow.forecast_changed when an invoice, subscription, renewal or deal changes what one of the next 13 weeks is expected to bring in. That includes a deal’s close date, probability or value, a subscription’s price, plan, billing period, auto-renew or end date, a discount, reported usage, a component price, and a client’s or the workspace’s payment terms. Exchange-rate movements alone do not send it; they show in the next event. Changes that arrive together are checked once, and each week that changed is sent as its own event with that week alone in periods (moving an expected payment from one week to the next sends two). A change that cancels itself sends nothing. Add it in the same Add webhook dialog as the billing events (see Add a billing webhook above): choose Cash flow forecast changed under Send when and leave Pipelines empty. An endpoint limited to pipelines is never sent it, because the forecast is for the whole workspace. Each cash flow webhook also has a Minimum deal probability (%), from 0 to 100: pipeline deals whose close probability is below it are left out of the forecast that webhook is sent, in both the weighted and the full deal figures. Leave it empty or 0 to include every deal, including those with no probability set. Two webhooks can use different minimums; each is compared with its own previous forecast, so a change is sent only to the webhooks whose figures it moved. Changing a webhook’s minimum records a fresh forecast for it and sends nothing for that change.

periods
Only the weeks whose figures moved, cash received included. Each has previous and current with collected (the cash received in that week; an invoice that is paid leaves receivables and appears here), receivables, subscriptions, renewals and deals (both weighted and full), and byCurrency, the same week in each currency, unconverted.
year and weekNumber
On each period: the year the week belongs to and its number in that year. With weeks starting on Monday this is the ISO 8601 week; for another start day the same rule is used (a week belongs to the year its fourth day falls in). Around New Year the year can differ from the year of periodStart: the week starting 31 December 2029 is week 1 of 2030.
minDealProbability
The minimum close probability (0 to 100) this webhook is set to. Deals below it are not in any figure of the event; 0 means every deal.
weekStartsOn
The weekday every periodStart falls on, 1 for Monday to 7 for Sunday: the workspace setting under Settings, General, Working days. A periodStart is always the first day of a week, never the day the event was sent.
currency and rates
The reporting currency and every exchange rate the figures relied on, so you can convert to another currency yourself.
totals
The expected total for the next 4 and the next 13 weeks.
triggers
The kinds of change that led to this event, for example invoice.issued, lead.updated, deal.changed, subscription.changed, discount.changed, usage.changed, invoice.changed, price.changed, pipeline.changed, client.payment_terms_changed or workspace.billing_settings_changed. Two are not changes at all: reconcile is the hourly check described below, and backfill marks the weeks you asked to be sent (then previous is null, since there is no earlier figure to compare with). Treat it as a hint: new names can be added.

The first time an endpoint listens, Revvly only records the current forecast and sends nothing. The same happens after the last listening endpoint is switched off, edited so it no longer takes the event, or deleted: the next one to listen starts from the forecast as it is then, and is not sent what changed while nobody was listening. If the workspace changes the day its weeks start on, the weeks are cut again, so Revvly records the forecast as it is then and sends nothing for that change. Signing, retries and replay work as for the other webhooks.

To bring a receiver up to date, for example a new workflow in n8n that has not heard anything yet, open Settings, Webhooks, choose the menu on the endpoint and pick Send current forecast. Every one of the next 13 weeks that has any figure is sent to that endpoint, one event per week, marked backfill; other endpoints are sent nothing, and weeks with no figure are skipped. Once an hour Revvly also rebuilds the forecast for every workspace with an endpoint listening and sends what moved since the last one, so a change that arrived as no event, or while a server was restarting, is still announced within the hour.