Skip to content

Webhooks

Payload Format

{
  "eventType": "create",
  "entityType": "Contact",
  "entityId": "123abc",
  "data": {
    "id": "123abc",
    "name": "John Doe",
    "emailAddress": "john@example.com"
  },
  "changedFields": ["name", "emailAddress"],
  "previousData": {
    "name": "Jane Doe"
  }
}

Event Types

Event Description
create Record creation
update Record update
delete Record deletion
link Record linking
unlink Record unlinking

Signature Verification

$signature = hash_hmac('sha256', $payload, $secret);
if ($signature !== $_SERVER['HTTP_X_SIGNATURE']) {
    throw new Exception('Invalid signature');
}