Skip to content
Rolling out

Outbound webhooks

Receive signed posts at your own HTTPS address when contacts, opportunities, tasks, bookings or forms change.

Who can do this
The account's owner or an admin with two-step sign-in and the Settings switch on. Adding a webhook or a new secret needs a two-step code from the last 10 minutes. Demo accounts can't add webhooks.
On this page

A webhook posts a small signed JSON message to your address when something happens in the account. The message names ids only, never a message body, a note's text, a person's details or a secret: read the record with the API if you need it.

Events

  • contact.created, contact.updated
  • opportunity.created, opportunity.stage_changed
  • task.created, task.completed
  • booking.created, booking.cancelled
  • form.submitted
  • webhook.test for a test send (one every 30 seconds per webhook).
Body
{ "id": "<delivery id>", "type": "contact.created", "test": false, "created_at": "2026-11-25T12:00:00Z", "data": { "contact_id": "<id>" } }

Events made by an AI app or an API key are not sent, so an integration can't loop on its own writes.

Your address

HTTPS only, a host name (no IP address or local name), no user name or password, port 443 only, at most 500 characters.

Verify the signature

Headers on every post
HeaderValue
X-IACompa-Signaturet=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>">, keyed with the whole whsec_… secret
X-IACompa-EventThe event type
X-IACompa-DeliveryThe delivery id, the same on every attempt
  1. Read the raw body before parsing JSON.
  2. Split the signature header into t and v1; refuse if either is missing.
  3. Refuse if t is more than 300 seconds from your clock.
  4. Compute the HMAC and compare in constant time.
  5. Deduplicate on X-IACompa-Delivery and answer 2xx quickly.
Node.js (18 or later), no packages
import { createHmac, timingSafeEqual } from "node:crypto";

export function isValidIACompaWebhook(rawBody, signatureHeader, secret, nowSeconds = Math.floor(Date.now() / 1000)) {
  const parts = Object.fromEntries(String(signatureHeader ?? "").split(",").map((part) => {
    const at = part.indexOf("=");
    return [part.slice(0, at).trim(), part.slice(at + 1).trim()];
  }));
  if (!/^\d+$/.test(parts.t ?? "") || !/^[0-9a-f]{64}$/.test(parts.v1 ?? "")) return false;
  if (Math.abs(nowSeconds - Number(parts.t)) > 300) return false;
  const expected = createHmac("sha256", secret).update(parts.t + ".").update(rawBody).digest();
  const given = Buffer.from(parts.v1, "hex");
  return given.length === expected.length && timingSafeEqual(given, expected);
}

Retries and turning off

  • A 408, 429 or 5xx is tried again, up to five attempts; any other answer fails the delivery at once.
  • After ten failed deliveries in a row, the webhook turns itself off and says why. Turning it back on resets the count.
  • Make new secret replaces the secret at once; there is no overlap, so switch your receiver immediately.
  • Up to 10 webhooks turned on and 50 in all per account. The log shows each webhook's last 20 deliveries.