Webhooks
A webhook sends a POST request to your URL when something happens, such as a new lead or a new order. Use it with Zapier, n8n, Make, Google Sheets scripts or your own server.
Add a webhook
Section titled “Add a webhook”- Open Dashboard → API & Webhooks → Webhooks.
- Paste your URL (it must be
https://). - Tick the events you want, or leave all unticked to get every event.
- Click Add Webhook Endpoint and copy the signing secret.
- Click Send test to check it works.
Screenshot coming soonWebhooks section with a saved endpoint
public/screenshots/developers/webhooks.pngYou can have up to 5 webhooks. A webhook that fails 20 times in a row is paused; click Resume once it is fixed.
Events
Section titled “Events”| Event | When |
|---|---|
lead.created |
A new lead is added |
lead.updated |
A lead changes |
enquiry.created |
Someone sends your contact form |
order.created |
A new online or counter order |
booking.created |
A new booking |
wholesale.trade_created |
A wholesale trade is recorded |
manufacturing.work_order_created |
A work order is created |
agency.task_created |
An agency task is created |
creator.campaign_created |
A creator campaign is created |
fleet.trip_dispatched |
A trip is dispatched |
construction.log_created |
A site log or muster is added |
real_estate.lease_created |
A lease is created |
education.enrollment_created |
A student enrolls |
legal.case_created |
A case is created |
healthcare.prescription_created |
A prescription is written |
What you receive
Section titled “What you receive”{ "id": "evt_3f9c...", "type": "lead.created", "createdAt": "2026-11-30T10:15:00.000Z", "data": { "id": "...", "name": "Priya", "status": "new" }}Headers: X-GHS-Event (the event type), X-GHS-Delivery (the event id) and X-GHS-Signature.
Check that it really came from us
Section titled “Check that it really came from us”X-GHS-Signature looks like t=TIMESTAMP,v1=SIGNATURE. Compute HMAC-SHA256 of TIMESTAMP + "." + raw body with your signing secret. It must equal SIGNATURE, and TIMESTAMP should be recent (within 5 minutes).
import crypto from 'node:crypto';
function isFromGetHubService(rawBody, header, secret) { const { t, v1 } = Object.fromEntries(header.split(',').map((p) => p.split('='))); const expected = crypto.createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex'); const fresh = Math.abs(Date.now() / 1000 - Number(t)) < 300; return fresh && crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(v1));}