# How do webhooks work?

Webhooks push conversation events from Help.Center to your systems as they
happen — a new conversation, a status change, a message, a discussion entry.
Every delivery is a signed HTTPS POST, so you can verify it came from us before
trusting it.


SET UP AN ENDPOINT

 1. In your dashboard, go to Settings > General > Developer.
 2. Add a webhook endpoint: enter your HTTPS URL, choose the events to subscribe
    to (or all events), and optionally add a description.
 3. Copy the endpoint's signing secret (whsec_...) — you'll use it to verify
    signatures. It stays retrievable in the dashboard.
 4. Click Send test to deliver a webhook_test event and confirm your endpoint is
    reachable.

Endpoint URLs must use https and may not point to localhost or private network
addresses. Endpoints can be enabled and disabled from the dashboard at any time.


WHAT A DELIVERY LOOKS LIKE

Every event is a POST with a JSON body, wrapped in a common envelope:

POST /your/endpoint HTTP/1.1
Content-Type: application/json
User-Agent: Helpcenter-Webhooks/1.0
Helpcenter-Event: conversation_updated
Helpcenter-Event-Id: evt_6b4a9c2e1f0d8a7b6c5e4d3f2a1b0c9d
Helpcenter-Signature: t=1783948573,v1=5257a869e7...

{
  "event": "conversation_updated",
  "id": "evt_6b4a9c2e1f0d8a7b6c5e4d3f2a1b0c9d",
  "created_at": 1783948573,
  "changed": ["status"],
  "data": { ... }
}

FieldDescription eventThe event type — see the event reference
[https://developers.help.center/article/1026-which-webhook-events-can-i-subscribe-to].
idUnique event ID (evt_...), also sent as the Helpcenter-Event-Id header. Use it
to deduplicate. created_atUnix timestamp (seconds) when the event was created.
changedOnly on conversation_updated: the names of the fields that changed. Read
their new values from data. dataThe event payload — the same object shapes the
REST API returns, with full untruncated content.


VERIFY THE SIGNATURE

Each request carries a Helpcenter-Signature header:

Helpcenter-Signature: t=<unix-seconds>,v1=<signature>

v1 is the hex HMAC-SHA256 of "{t}.{raw_body}", keyed with your endpoint's whsec_
secret. Recompute it over the raw request body — before any JSON parsing — and
compare with a timing-safe comparison:

const crypto = require("crypto");

// signatureHeader = req.headers["helpcenter-signature"]
function verifyHelpcenterSignature(rawBody, signatureHeader, secret) {
  const parts = Object.fromEntries(signatureHeader.split(",").map((kv) => kv.split("=")));
  const expected = crypto
    .createHmac("sha256", secret)
    .update(parts.t + "." + rawBody)
    .digest("hex");
  return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1 || ""));
}

The dashboard's Verifying webhooks dialog has equivalent snippets for Python,
Ruby, and Go. Reject any request whose signature doesn't verify.


DELIVERY SEMANTICS

 * Respond fast with a 2xx. Any 2xx status counts as delivered. Deliveries time
   out after 10 seconds — acknowledge first, then process asynchronously.
 * One attempt per event. Deliveries are currently not retried, so treat
   webhooks as a fast signal rather than the source of truth: reconcile by
   fetching current state from the REST API (e.g. GET /conversations/:id using
   the conversation_id in the payload).
 * Deduplicate by event ID. Use Helpcenter-Event-Id as an idempotency key in
   your ingestion.
 * Events fire for every source. Whether a change came from email, the widget,
   the website, the dashboard, or the API, subscribed endpoints are notified the
   same way.

Security Tip

> Treat your whsec_ secret like a password, and always verify signatures — an
> unverified webhook endpoint will accept payloads from anyone who discovers its
> URL.


NEXT STEPS

 * Which webhook events can I subscribe to?
   [https://developers.help.center/article/1026-which-webhook-events-can-i-subscribe-to]
 * How to read conversations via API?
   [https://developers.help.center/article/1018-how-to-read-conversations-via-api]
   — fetch full state when an event arrives.