Developer reference

Custom webhook

Last updated: November 21, 2026

On the Pro plan you can point Janus at an HTTPS endpoint you control. Every lead captured through your intake form is POSTed there as a signed JSON envelope — one immediate attempt the moment the lead comes in, then automatic retries if that fails. Push only: Janus never reads from your endpoint.

Add it in Settings → Integrations → Webhook destinations. You get a signing secret, shown once.

Destinations

An account can have several destinations (up to 5), so each kind of request can go to the system that should have it: for example Sales and Service to a CRM, job applicants to a hiring system, Submissions to a database. Each destination has its own:

  • name and HTTPS URL;
  • signing secret. Verify each endpoint with the secret of the destination that points at it. Secrets are never shared between destinations;
  • request types (lead.created, ticket.dispatched, submission.received, applicant.applied) and Sales lead filter;
  • status, retries and Attempts log.

The payload, the headers and the signature are the same as before, and the same for every destination. A request that two destinations both subscribe to is sent to each as a separate delivery with its own deliveryId, so dedupe per endpoint. One destination failing, or being switched off, never delays or stops another. An account that had one webhook before destinations keeps it as its first destination, with the same URL and secret.

Changing a destination's URL keeps its secret: the new endpoint needs the existing one. Disconnecting a destination is final for that secret: Janus cancels anything still waiting to be retried and never signs with it again.

What fires a delivery

Each destination receives only the request types ticked for it. For Sales and Service requests, each destination also has a What is sent choice:

  • Every lead (default) — an event: "lead.created" delivery the moment a lead is captured.
  • Hot & warm only — same, but cold-scored leads are skipped.
  • Won deals only — nothing on capture; an event: "deal.won" delivery when a deal first moves to the Won stage. Its data is the deal (dealId, title, estimatedValue, contact fields, servicesInterested, score, wonAt).

Routing by trade

Every event's data also carries two tags for the business's trade, set from its industry in Janus, so you can route incoming jobs by vertical:

  • group — home-property, exterior-grounds, auto, personal-services, and so on.
  • industry — the trade within it, for example plumbing, hvac, roofing, mobile-mechanic, pet-grooming-boarding.

Both are lowercase, hyphenated, and stable. A business whose industry is "Other" sends industry: "other" and group: null; one with no industry set sends both as null. The tags describe the business, not the individual job.

Request

POST your HTTPS URL

  • Content-Type: application/json
  • X-Janus-Timestamp — Unix seconds when the attempt was made.
  • X-Janus-Signature — hex HMAC-SHA256(secret, "{X-Janus-Timestamp}.{raw body}").
  • X-Janus-Delivery-Id — equals the envelope's deliveryId; stable across retries, so dedupe on it.

Payload

See the payload

Treat data as the lead. The envelope around it is versioned — schemaVersion bumps only on a breaking change to data. New optional fields can appear without a bump, so don't reject on unknown keys.

Verify every request

  1. Read the raw bytes. Take the request body exactly as it arrived — do not re-serialize it.
  2. Check the timestamp. Reject if X-Janus-Timestamp is more than 300 seconds from your clock (bounds replay).
  3. Recompute the HMAC. Over {X-Janus-Timestamp}.{raw body}, and constant-time compare to X-Janus-Signature.
  4. Then parse. Only now parse and trust the payload.

See it in Node, Python or PHP.

Responding

  • Return 2xx within 10 seconds to acknowledge. Anything else — or no response in time — counts as a failed delivery.
  • 5xx, 408, 429, a connection error, or a timeout are retried.
  • Any other 4xx is treated as permanent — Janus does not retry it.
  • 401, 403, or 410 also switch that destination off (other destinations carry on). You'll get an email; once the endpoint is fixed, open the destination in Settings, choose Edit and save to switch it back on. The secret stays the same.

Retry schedule

Immediate attempt on capture, then, if it failed retryably: +1m → +5m → +30m → +2h → +6h. Six attempts total over roughly nine hours. After the last one, the delivery is marked gave up and the account owner is emailed — the lead is still safe in Janus, only the webhook copy failed.

Retries reuse the same deliveryId with an incremented attempt. Your endpoint should be idempotent on deliveryId: a delivery can arrive more than once if your 2xx was lost in transit.

Rotating the secret

Each destination has a Roll signing secret button (Edit → More). You get a new secret for that destination only, shown once. For 24 hours the old secret keeps working: Janus signs each delivery with the new secret in X-Janus-Signature and the old one in X-Janus-Signature-Previous. Accept a request if either header verifies. Deploy the new secret within the window, then you can drop the fallback check.

Testing

Each destination has a Send test event button. It POSTs an envelope with event: "test" and a synthetic dataobject, and shows you exactly what your endpoint returned. Test events show in that destination's Attempts list with the real ones.

Need technical support? Open a ticket in our Help Portal