ByRecordDocs
byrecord.com›

Webhooks

The events the platform sends your systems as each deal moves, how they are delivered and retried, and how to verify their signatures.

The platform tells your systems as each deal in the programme moves. Endpoints are added on the API & webhooks page, by the same people who manage API keys, each with the event types it wants. None ticked means all of them.

Events

EventWhen
quote.viewedThe customer opened the proposal link. Once per version
quote.acceptedThe customer accepted; the agreement was generated
contract.signedThe customer signed the agreement
payment_method.savedThe customer saved a card or bank account
installation.recordedInstallation was recorded as complete
billing.liveThe first invoice went out
service.suspendedByRecord suspended the customer's service for non-payment
service.restoredService was restored
service.reversedYour side put back in service a location ByRecord had suspended

Each deal moment is sent once per deal; a service event once per occurrence. Every field of every payload is on Webhook events.

Delivery

A POST of JSON to the endpoint's URL:

HTTP

data always carries accountId, accountName, quoteId, quoteNumber, quoteVersion, contractId, opportunityUrl and opportunityId (any may be null), plus what the moment adds: the accepting or signing person's name and email, for instance.

Retries

Answer any 2xx within 10 seconds. Anything else (another status, a timeout, a redirect) is a failure, retried after 1, 5, 30, 120, 360, 720 and 1440 minutes: eight attempts over about a day and a half, after which the delivery is marked failed. The same page shows every delivery's attempts and last answer, and Send again, on a delivery that failed, sends it again as a new delivery with the same event id.

De-duplication

Deliveries can arrive more than once (a resend, or a retry after a timeout you did answer) and out of order. The X-ByRecord-Event-Id header and the body's id are the same for every delivery of one event: de-duplicate on it.

Verifying the signature

X-ByRecord-Signature is t=<unix seconds>,v1=<hex>, where the hex is HMAC-SHA256, keyed with the endpoint's signing secret, of the string

TEXT

To verify:

  1. Read the raw body bytes. Do not parse and re-serialise the JSON first: key order and whitespace would change, and so would the digest.
  2. Split the header on , into t and v1.
  3. Compute HMAC_SHA256(secret, t + "." + body) as lowercase hex.
  4. Compare it to v1 in constant time.
  5. Refuse a t more than five minutes from your clock, so a captured delivery cannot be replayed later.

The signing secret (whsec_…) is shown once, when the endpoint is created or its secret is rotated.

Worked example

With the secret

TEXT

the timestamp t=1792411200 (2026-10-19 12:00:00 UTC), and this 512-byte body, exactly as received (one line, no trailing newline):

JSON

the signed string is 1792411200. followed by that body, and its HMAC-SHA256 is

TEXT

so the header reads

TEXT

Step 5 would refuse this example today; skip it when checking the arithmetic.

Node

JavaScript

Python

PYTHON

Endpoint URLs

  • Production and the sandbox require https, and refuse URLs written as loopback, private or link-local addresses, or as localhost. A URL cannot carry a username or password: authenticate deliveries by their signature.
  • A hostname is checked again when each delivery connects: every address it resolves to must be public (not private, loopback, link-local such as a cloud metadata address, carrier-grade NAT, multicast or reserved), and the connection goes to the address that was checked, so a name cannot pass the check and then resolve elsewhere.
  • A delivery's recorded error is in our own words only ("Answered 405", "Could not connect to the endpoint", "No answer within 10 seconds", or why it was refused). What your endpoint answered is never stored or shown.

Rehearsing

Outside production, the platform has its own receiver at POST /api/partner/v1/webhook-echo. It verifies each signature exactly as above and answers 200 when it holds and 400 when it does not, so a delivery to it shows on the API & webhooks page as delivered or failed for the right reason.

© 2026 ByRecord · byrecord.com · Status