Webhooks

Send every lead to your CRM, Zapier, Make or your own system.

Add an endpoint

  1. Open Quote & Size, then Automations.
  2. Under Webhooks, select Add endpoint.
  3. Paste the address your tool gives you (it must start with https), pick the events and add any headers your system needs, such as an API key.
  4. Select Save endpoint, then Send test payload.

You can add up to 3 endpoints. Business plan.

Events

  • lead_submitted: a visitor sent the form.
  • high_value_quote: a lead at or above your high value amount, or in a price band marked Urgent. An endpoint that takes both gets this one instead of lead_submitted, so each lead is sent once.
  • quote_calculated: a visitor reached a price on your live site.

What is sent

Each delivery is a POST with a JSON body like this:

{
  "id": "6f1c…",
  "event": "lead_submitted",
  "createdAt": "2026-12-01T09:30:00.000Z",
  "test": false,
  "calculator": { "id": "…", "name": "Interior painting quote" },
  "lead": { "id": "…", "name": "Sam Taylor", "email": "sam@example.com", "phone": "+1 555 010 0123", "message": "Can you start next month?", "urgent": false, "pageUrl": "https://www.example.com/quote", "details": [] },
  "quote": { "headline": "Your estimate: $2,345", "total": 2345, "currency": "USD", "answers": [ { "label": "How many rooms?", "value": "3 rooms" } ] }
}

quote_calculated sends visit instead of lead, with the email only when the visitor gave it before the price.

Check the signature

Every delivery has an X-QS-Signature header such as t=1764581400,v1=5d2a…. Work out an HMAC SHA-256 of the timestamp, a full stop and the raw body, using your endpoint's signing secret, and compare it with v1. In Node.js:

const crypto = require('crypto');

function isFromQuoteAndSize(rawBody, header, secret) {
  const parts = Object.fromEntries(header.split(',').map(p => p.split('=')));
  const expected = crypto.createHmac('sha256', secret).update(`${parts.t}.${rawBody}`).digest('hex');
  const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300;
  return fresh && crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));
}

The headers X-QS-Event and X-QS-Delivery give the event name and the delivery id.

Delivery log and retries

The delivery log shows the last 30 days: when each delivery was sent, the endpoint, the event, the HTTP status your system answered with and how long it took. Your endpoint has 2.5 seconds to answer with a 2xx status. Select Retry on any that failed to send it again with a fresh signature.