Lead webhooks
Send your leads to your own systems as they change — a lead added, its stage or owner changed, the AI's update after a conversation. The events, the body, and checking the signature.
Graine can post each change to your leads to an address of yours as it happens —
your CRM, a sheet, your own app. Set it up in Leads → Sources, under Send
leads to your systems. Only people who manage leads (leads.manage) can.
Set it up
- Choose Add an address and paste an
https://address of yours. - Pick what it receives — one or more of the events below. Nothing is sent by default: each address gets only what you pick.
- Choose Save.
You can have up to five addresses, each with its own events. The address must be one the internet can reach: as for every Graine webhook, private and internal addresses are refused — see Endpoint requirements.
Lead events are separate from your call webhooks. They never go to an agent's Custom Webhook, and a call webhook subscription never receives them.
Events
| Event | Sent when |
|---|---|
lead_created | A lead is added — by a conversation, a lead source, the API, an import or by hand. |
lead_stage_changed | A lead moves to another stage — by a person, a rule or the AI. |
lead_owner_changed | A lead gets another owner, or none. |
lead_ai_updated | The AI updates a lead after a conversation: its summary, score, interest, next step. |
The body
Every delivery is a POST with a JSON body:
| Field | What it is |
|---|---|
event | One of the events above. |
event_id | The event's own ID — the same on every retry of it. |
occurred_at | When the change happened, in UTC. |
organization_id | Your workspace. |
lead | The lead as it is after the change, as the API returns it. |
change | For lead_stage_changed and lead_owner_changed: what it was (from) and what it is now (to) — stage IDs or member IDs; null for none. |
The lead is your own data sent to your own address, in full. New fields may appear over time: ignore the ones you don't know.
Check the signature
Each delivery is signed like every Graine webhook: an X-Graine-Signature
header, t=<timestamp>,v1=<signature>, where the signature is an HMAC-SHA256 of
the timestamp, a dot and the raw body, keyed with your organization's webhook
signing secret.
- Read the secret once with Get the webhook signing secret and keep it in your endpoint's configuration.
- Verify every delivery on its own header, against the raw body — the recipe, with runnable Node and Python, is in Verifying the signature.
Deliveries are retried — keep each event once
A delivery that fails is tried again on the same schedule as every Graine
webhook, with the same event_id. Store each event_id you've handled and
skip it the second time — see
Duplicate deliveries.

