Features
- Real-time delivery when events occur
- Custom endpoints - send to any URL
- Flexible payload with full company data
- Retry logic for failed deliveries
- Secret authentication for security
- Delivery logs for debugging
Setup
- Go to Settings → Integrations → Webhooks
- Click Create Webhook
- Enter a name and your endpoint URL
- Optionally add a secret for signature verification
- Save and activate
Webhook Events
Configure which events trigger your webhook via Automations:Payload Format
Automation webhooks send one of two events:new_lead when a company enters the segment, and new_session when a company in the segment starts a new session. Both use the same payload; only event differs.
profiles also carries crunchbase, facebook, twitter, instagram and youtube, each with a handle and url.
recent_sessions holds the company’s 10 most recent sessions, each with up to 30 pageviews.
Matching sessions to a visitor
Every entry inrecent_sessions has a visitor_uuid: the ID of the visitor (browser) the session belongs to. It is the same value the REST API returns as visitor_uuid on its sessions endpoints, so you can join a webhook to your own records without a second API call.
A common use is attribution: read the visitor ID in the browser when a form is submitted, store it with the form submission, and match it against recent_sessions[].visitor_uuid when the webhook arrives.
Contact Revealed Payload
The
phone field is only included when a phone number has been revealed for the contact.Security
Signature Verification
If you add a secret, each webhook request includes aSignature header. The signature is an HMAC-SHA256 hash of the request body using your secret as the key, so it will be different for every request.
Retry Logic
Failed webhook deliveries are retried automatically:
After 5 failed attempts, the delivery is marked as failed and logged.
Viewing Logs
- Go to Integrations → Webhooks
- Click on your webhook
- Select View Logs
- Request payload
- Response status code
- Response body (if any)
- Error messages
- Timestamp
Testing
Send a test webhook to verify your endpoint:- Edit your webhook
- Click Send Test
- Choose an event type
- Check your endpoint for the test payload
Common Use Cases
Troubleshooting
Webhooks not firing
Webhooks not firing
- Verify you have an automation configured to trigger the webhook
- Check that the webhook is not archived
- Review webhook logs for errors
Signature verification failing
Signature verification failing
- Ensure you’re using the raw request body (not parsed JSON)
- Verify the secret matches exactly
- Check for any proxy/middleware modifying the request
Timeouts
Timeouts
Webhooks time out after 30 seconds. Ensure your endpoint responds quickly. For slow processing, respond immediately and process asynchronously.