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.
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.updatedopportunity.created,opportunity.stage_changedtask.created,task.completedbooking.created,booking.cancelledform.submittedwebhook.testfor a test send (one every 30 seconds per webhook).
{ "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
| Header | Value |
|---|---|
X-IACompa-Signature | t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>">, keyed with the whole whsec_… secret |
X-IACompa-Event | The event type |
X-IACompa-Delivery | The delivery id, the same on every attempt |
- Read the raw body before parsing JSON.
- Split the signature header into
tandv1; refuse if either is missing. - Refuse if
tis more than 300 seconds from your clock. - Compute the HMAC and compare in constant time.
- Deduplicate on
X-IACompa-Deliveryand answer 2xx quickly.
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.
Related articles
- REST API guideRolling outAuthenticate with API keys and use scopes, errors, rate limits, idempotency, pagination and the OpenAPI document.
- REST API referenceRolling outEvery endpoint of the IA Compa REST API v1 with its method, path, scope, parameters and examples.
- Security and limits for agentsLeast privilege, per-person switches, approvals, logging, rate limits, per-plan connection limits and what agents can never do.