Graine AI

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

  1. Choose Add an address and paste an https:// address of yours.
  2. Pick what it receives — one or more of the events below. Nothing is sent by default: each address gets only what you pick.
  3. 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

EventSent when
lead_createdA lead is added — by a conversation, a lead source, the API, an import or by hand.
lead_stage_changedA lead moves to another stage — by a person, a rule or the AI.
lead_owner_changedA lead gets another owner, or none.
lead_ai_updatedThe AI updates a lead after a conversation: its summary, score, interest, next step.

The body

Every delivery is a POST with a JSON body:

{
  "event": "lead_stage_changed",
  "event_id": "9f2c41a0-7d3b-4e58-a6c1-2b8e5f0d7a93",
  "occurred_at": "2026-11-27T10:42:07.000Z",
  "organization_id": "organization-live-0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
  "lead": {
    "id": "lead_6a1f0c9e2b7d4f3a8e5c1b2d",
    "name": "Asha Rao",
    "phone": "+919876543210",
    "email": "asha@example.com",
    "company": "Example Traders",
    "stage_id": "qualified",
    "owner_id": "member-live-5e6f7a8b-9c0d-1e2f-3a4b-5c6d7e8f9a0b",
    "tags": ["website"],
    "fields": { "city": "Pune" },
    "ai": { "summary": "Wants a demo for a team of 40 next week.", "interest": "hot", "score": 82 },
    "value": 45000,
    "expected_close_at": "2026-12-15",
    "last_contact_at": "2026-11-27T10:31:52.000Z",
    "created_at": "2026-11-25T08:14:03.000Z",
    "updated_at": "2026-11-27T10:42:07.000Z",
    "external_id": "crm-1042"
  },
  "change": { "from": "interested", "to": "qualified" }
}
FieldWhat it is
eventOne of the events above.
event_idThe event's own ID — the same on every retry of it.
occurred_atWhen the change happened, in UTC.
organization_idYour workspace.
leadThe lead as it is after the change, as the API returns it.
changeFor 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.

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.

On this page