Developers

Guide

Webhooks from HelpWell

Have a journey call your endpoint with a signed JSON event when someone reaches a step.

A journey can call your server: add a Webhook step (Journeys → a journey → add step → Webhook) with your endpoint's URL. When someone reaches the step, HelpWell sends one signed JSON event. Use it to update a CRM, provision something, or alert your team.

#The request

POST to your URL with Content-Type: application/json:

{
  "id": "run:4f8a…:2",
  "type": "journey.step",
  "createdAt": "2026-10-05T14:03:00.000Z",
  "journey": {
    "id": "wf_…",
    "name": "Trial to paid onboarding",
    "version": 3
  },
  "step": {
    "id": "notify-crm",
    "label": null
  },
  "contact": {
    "id": "6f1c2b8e-…",
    "email": "ada@example.com",
    "name": "Ada Lovelace",
    "consent": "subscribed",
    "attributes": {
      "plan": "trial",
      "seats": 3
    }
  },
  "ticketId": null,
  "trigger": {
    "name": "trial_started"
  }
}

Headers:

  • HelpWell-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>">, with the workspace's journey signing secret.
  • HelpWell-Delivery: the event id, the same as id in the body.
  • User-Agent: HelpWell-Journeys/1.0.

#Verify the signature

Admins see the signing secret on the webhook step (Show signing secret). Keep it in your server's environment, for example as HELPWELL_WEBHOOK_SECRET. Verify the raw body before parsing it, and reject timestamps more than five minutes old:

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

// secret: the journey signing secret, from your server's environment (HELPWELL_WEBHOOK_SECRET).
export function verifyHelpWell(rawBody, header, secret) {
  const parts = Object.fromEntries(header.split(',').map((part) => part.split('=')));
  if (!parts.t || !parts.v1 || Math.abs(Date.now() / 1000 - Number(parts.t)) > 300) return false;
  const expected = createHmac('sha256', secret).update(`${parts.t}.${rawBody}`).digest('hex');
  const given = Buffer.from(parts.v1);
  return given.length === expected.length && timingSafeEqual(given, Buffer.from(expected));
}
import hashlib, hmac, os, time

def verify_helpwell(raw_body: bytes, header: str) -> bool:
    parts = dict(part.split("=", 1) for part in header.split(","))
    if "t" not in parts or "v1" not in parts or abs(time.time() - int(parts["t"])) > 300:
        return False
    secret = os.environ["HELPWELL_WEBHOOK_SECRET"].encode()
    expected = hmac.new(secret, f"{parts['t']}.".encode() + raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, parts["v1"])

#Delivery

  • Answer 2xx within 10 seconds. Anything else is retried after 1, 4, 16 and 64 minutes with the same bytes, so deduplicate by id.
  • The journey does not wait for your answer.
  • Each later visit of a looping journey is a new event: run:<run id>~<jumps>:<step index>.
  • The URL must be a public HTTP(S) address; private and loopback addresses are refused and redirects are not followed.
  • Rotate the secret on the webhook step. Calls already queued are signed with the new secret.

Events going the other way, from your app into HelpWell, are covered in Track events.