Home/Help Center/Payload reference

Integrations

Webhook Events and Payload Reference

Every webhook event VGraple CRM can send, the envelope shape, and a real JSON example for message, contact, lead, broadcast, conversation, form and deal events.

By Chirag Darji · Updated 1 Dec 2026 · 10 min read

On this page
  1. Before you start
  2. The envelope every event shares
  3. Message events
  4. Contact events
  5. Lead events
  6. Broadcast events
  7. Conversation events
  8. Form events
  9. Deal events
  10. What you will see
  11. Settings and options
  12. Troubleshooting
Outbound webhooks settings in VGraple CRM with an endpoint, its subscribed events and the Enable, Test and delete actions

Every webhook delivery from VGraple CRM shares one envelope shape (an id, a type, a created timestamp and a data object) wrapped around 18 possible event types, from a message arriving to a broadcast finishing. This reference documents each event's trigger condition and its exact payload fields, so you can parse a delivery without guessing at field names.

Before you start

  • This page assumes you already have an endpoint receiving deliveries. See configuring outbound webhooks if you have not created one yet.
  • Every payload should be verified before you trust it, with the timestamped X-Webhook-Signature header or the original X-Signature-256; see verifying webhook signatures. The X-Delivery-Id header and the envelope's id are both unchanged when a delivery is retried or redelivered, so either one works as a de-duplication key.

The envelope every event shares

Every delivery, regardless of type, is a JSON object with this shape:

API keys settings in VGraple CRM with key creation, the access level and the REST API reference

{
  "id": "evt_9f2a7c1b4e8d0a3f",
  "type": "message.sent",
  "created": 1798329600,
  "data": { }
}

id is unique per delivery attempt (retries of the same underlying event reuse a related but distinct id). type matches the event name exactly, so you can route on it with a simple switch statement. created is a Unix timestamp in seconds. data holds the event-specific object described below.

Message events

message.received fires when a customer's inbound message is saved to a conversation. message.sent fires when an agent, an automation rule or an API call sends an outbound message; broadcast recipients do not fire individual message.sent events, subscribe to broadcast.completed for campaign-level confirmation instead.

{
  "id": "evt_9f2a7c1b4e8d0a3f",
  "type": "message.sent",
  "created": 1798329600,
  "data": {
    "message": {
      "id": "msg_01H...",
      "wa_message_id": "wamid.HBgL...",
      "body": "Your appointment is confirmed for Saturday at 3 PM.",
      "type": "text",
      "direction": "outbound",
      "status": "sent",
      "channel": "whatsapp",
      "template_name": null,
      "error": null,
      "is_forwarded": false,
      "media": null,
      "reply_to": null,
      "wa_timestamp": "2026-08-26T09:00:00.000Z",
      "created_at": "2026-08-26T09:00:00.000Z",
      "updated_at": "2026-08-26T09:00:01.114Z"
    },
    "contact": { "id": "con_01H...", "name": "Priya Sharma", "phone": "+919876543210" },
    "conversation_id": "conv_01H..."
  }
}

message.received uses the identical message shape with "direction": "inbound".

This is the same message object GET /api/v1/messages returns, so whatever parses one parses the other. Four of its fields are worth calling out:

FieldWhat it carries
statusDelivery state: sent, delivered, read, failed. Webhooks fire once, at send or receipt, so a later status change is not re-delivered; poll the API if you need the final state.
errornull unless the platform rejected the message, otherwise { "code", "message" } with the provider's own code.
medianull, or { "mime", "caption", "url", "stored" }. The url needs your API key as a Bearer token, it is not public. "stored": false means the file still lives on Meta's servers and expires roughly 30 days after the message.
reply_tonull, or the quoted message in both id spaces: { "message_id", "wa_message_id" }.

channel tells you which surface the message came from: whatsapp, messenger, instagram or web_chat. wa_timestamp is the messaging platform's own clock and created_at is ours; they differ by the delivery delay on live traffic.

Contact events

contact.created fires from every real contact-creation path: an inbound WhatsApp or Meta DM, a manual add, a CSV import, a lead auto-create, a Calendly booking, a comment DM, a template-send auto-create, or the public API. It deliberately does not fire for synthetic web-chat placeholder contacts that have not yet identified themselves. contact.opted_out fires when a contact opts out of messaging.

{
  "id": "evt_3c8f1a90bd42e771",
  "type": "contact.created",
  "created": 1798329600,
  "data": {
    "contact": {
      "id": "con_01H...",
      "wa_id": "919876543210",
      "name": "Priya Sharma",
      "phone": "+919876543210",
      "email": "[email protected]",
      "source": "import",
      "source_channel": "whatsapp",
      "opted_in": true,
      "created_at": "2026-08-26T09:00:00.000Z"
    }
  }
}

Lead events

lead.created fires from all six lead sources: Meta lead ads, WhatsApp forms, VGraple web forms, web chat, comments, and the API. lead.stage_changed fires when a lead moves to a different pipeline stage, whether by dragging it on the Kanban board or editing it in the detail panel; bulk housekeeping moves (like a fallback move after a stage is deleted) intentionally do not fire it.

{
  "id": "evt_7d21fa30ce998c11",
  "type": "lead.created",
  "created": 1798329600,
  "data": {
    "lead": {
      "id": "lead_01H...",
      "name": "Asha Patel",
      "phone": "+919876543210",
      "email": "[email protected]",
      "source": "meta_lead_ad",
      "stage_id": "stage_01H...",
      "stage_name": "New",
      "pipeline_id": "pipe_01H...",
      "contact_id": "con_01H...",
      "form_name": "Monsoon Offer Form",
      "campaign_name": "Monsoon Sale 2026",
      "created_at": "2026-08-26T09:00:00.000Z"
    }
  }
}

Broadcast events

Broadcast events are campaign-level, not per-recipient. A campaign reaching 10,000 contacts still fires exactly one broadcast.completed event, so your endpoint never absorbs a burst sized to the audience.

EventFires when
broadcast.startedA broadcast campaign begins sending
broadcast.pausedA broadcast auto-parks (template pause, portfolio pacing, red quality rating, quota reached, or a high early failure rate)
broadcast.completedA broadcast finishes, including crash-recovery completion after a deploy
broadcast.failedA broadcast ends in a failed state
{
  "id": "evt_a1f9c02de5b73401",
  "type": "broadcast.completed",
  "created": 1798329600,
  "data": {
    "broadcast": {
      "id": "bc_01H...",
      "name": "Monsoon Flash Sale",
      "status": "completed",
      "total_recipients": 3200,
      "sent": 3180,
      "delivered": 3050,
      "failed": 20
    }
  }
}

Conversation events

conversation.assigned fires on a manual assignment or an SLA-driven auto-assign. conversation.resolved fires when an agent marks a conversation resolved (CSAT survey mechanics do not re-fire it). conversation.reopened fires on an agent reopening a resolved conversation, or a customer sending a new message that reopens one (a CSAT rating tap does not count).

{
  "id": "evt_5b0e21ac8f34d902",
  "type": "conversation.assigned",
  "created": 1798329600,
  "data": {
    "conversation_id": "conv_01H...",
    "contact": { "id": "con_01H...", "name": "Priya Sharma" },
    "assigned_to": { "id": "usr_01H...", "name": "Rohan" }
  }
}

Form events

form.submitted fires when a VGraple web form is submitted, the same form-builder feature covered in building web forms.

{
  "id": "evt_e40b19c3a276f508",
  "type": "form.submitted",
  "created": 1798329600,
  "data": {
    "form_id": "form_01H...",
    "form_name": "Contact Us",
    "lead_id": "lead_01H...",
    "is_new_lead": true,
    "name": "Asha Patel",
    "email": "[email protected]",
    "phone": "+919876543210",
    "page_url": "https://example.com/contact",
    "submitted_at": "2026-08-26T09:00:00.000Z"
  }
}

Deal events

deal.logged fires when a deal is logged in the inbox, and when a paid payment link logs one. deal.voided fires when a deal is voided, once, however many people press Void at the same moment. Deals moved between workspaces fire nothing.

{
  "id": "evt_4f1c0a8e2b7d9e3a5c6b1d20",
  "type": "deal.logged",
  "created": 1796119800,
  "data": {
    "deal": {
      "id": "cmq3x9k2a0001abcd1234efgh",
      "amount": "1500.5",
      "currency": "INR",
      "order_id": "ORD-2041",
      "source": "manual",
      "broadcast_id": null,
      "appointment_id": null,
      "logged_at": "2026-12-01T09:30:00.000Z",
      "voided_at": null
    },
    "conversation": { "id": "cmq3x8w1p0000abcd9876ijkl", "channel": "whatsapp" },
    "contact": {
      "id": "cmq3x7d4m0000abcd5555mnop",
      "name": "Asha Patel",
      "phone": "+919876543210",
      "wa_id": "919876543210",
      "wa_user_id": null,
      "wa_username": null
    }
  }
}
FieldMeaning
deal.idThe deal's id. The same id in deal.voided and in GET /api/v1/deals.
deal.amountThe exact amount as a string: "12.345" for a three decimal currency, "1500" for one with none, "1500.5" for 1,500.50. It is never rounded, and trailing zeros are not added, so read it as a decimal, not a float.
deal.currencyA three letter currency code, upper case.
deal.order_idYour order reference, or the payment id for a deal a payment link logged. May be null.
deal.sourcemanual for a deal logged in the inbox, or the gateway for a payment link: cashfree, stripe or razorpay.
deal.broadcast_id, deal.appointment_idThe broadcast or appointment the deal is attributed to, or null.
deal.logged_at, deal.voided_atISO 8601 times. voided_at is null in deal.logged and set in deal.voided.
conversationThe conversation the deal belongs to and its channel.
contactThe contact, like the contact in message events, with wa_user_id and wa_username. phone is "" for a person known only by their WhatsApp username. null when the conversation has no contact. For a deleted contact only id is filled and the other fields are null.

Notes on a deal, the reason for a void, and the names of your team members are never sent.

The event is saved in the same step as the deal, so it survives a restart, and the envelope, headers and retry rules of every other event apply: a retry or a redelivery repeats the same body under the same event id, so dedupe on it. It is not a guarantee that every deal reaches you: the event can be dropped if our database cannot record it, and a delivery stops after three automatic attempts. Reconcile with GET /api/v1/deals?updated_since=.

Order is not guaranteed. A retry of deal.logged can arrive after deal.voided for the same deal, and its body is the one from when the deal was logged (voided_at is null). A void is final: never revive a voided deal because a late deal.logged arrived. Compare deal.voided_at, or check the deal with the API.

A void does not withdraw the sale from an ad platform that already received it.

An endpoint subscribed to * receives these events, with the contact's phone number, like it receives message events.

What you will see

A well-formed delivery always parses as the envelope above; data's inner shape depends only on type, and shares fields consistently across events for the same underlying resource (every message-related event uses the same message object, for instance). There is no versioning field in the envelope today, so treat any new field VGraple CRM adds to an existing payload as additive rather than a breaking change.

Settings and options

FieldApplies toNotes
idEvery eventUnique per delivery attempt, prefixed evt_
typeEvery eventMatches one of the 18 catalog names exactly
createdEvery eventUnix timestamp, seconds
dataEvery eventEvent-specific object, documented above per event family
source (Settings > Webhooks list, not in the payload)Endpoint metadata"zapier" if created by a Zap turning on, otherwise unset

Troubleshooting

SymptomLikely causeFix
A field you expected is missing from a payloadThe field is only present when applicable (for example template_name is null on a non-template send)Handle null and missing optional fields defensively rather than assuming every field is always populated
Two deliveries for what looks like the same eventWebhooks are delivered at-least-once; a retry after a transient failure can occasionally overlap with a fresh deliveryDeduplicate on id in your own system if exact-once processing matters to you
contact.created never fires for your web chat widget visitorsThis is by design, not a bugWait for the visitor to identify themselves (name, phone or email); a placeholder web-chat contact never fires the event

Once you can parse a payload, confirm it is authentic with signature verification, and see configuring webhooks to manage which endpoints receive which events.

Frequently asked questions

What does the outer envelope of every webhook payload look like?
A JSON object with four fields: id (prefixed evt_), type (matching the event name exactly, for example contact.created), created (a Unix timestamp in seconds), and data (an object holding the event-specific payload, for example a contact or message record).
How many event types are there in total?
18, across messages, contacts, leads, broadcasts, conversations, forms and deals. Every one can be ticked in the Settings > Webhooks endpoint form.
Do broadcast events fire once per recipient?
No. A campaign reaching 10,000 contacts fires one broadcast.completed event at the campaign level, not 10,000 individual events. broadcast.started, broadcast.paused, broadcast.completed and broadcast.failed are all campaign-level.
Does contact.created fire for every visitor who opens my website chat widget?
No. Synthetic web-chat placeholder contacts (created before a visitor identifies themselves) deliberately do not fire this event, since they are not yet a real, contactable person. It fires from every real creation path: an inbound WhatsApp message, a manual add, a CSV import, a lead auto-create, a Calendly booking, a comment DM, or the public API.
What fields does a lead.created payload carry?
id, name, phone, email, source, stage_id, stage_name, pipeline_id, contact_id, form_name, campaign_name and created_at. The source field tells you which of the six lead sources produced it: Meta lead ads, WhatsApp forms, VGraple web forms, web chat, comments, or the API.
Are message.received and message.sent payloads the same shape?
Yes. Both carry the identical message object, differing only in the direction field, plus the same contact and conversation_id alongside it. It is the same object GET /api/v1/messages returns, so an integration built against a polled sample behaves the same on a live delivery.
How do I get the image or document attached to a message?
The message object carries a media block whose url is an authenticated download link. Fetch it with your API key as a Bearer token; it is not a public URL. When media is stored is false the file is still on Meta servers and expires about 30 days after the message, so download it promptly.
Can I tell from a webhook that a send failed?
Yes. status carries the delivery state and error is populated only when the platform rejected the message, with the provider code and message. A null error with a non-final status means still in flight, not failed.

Run your WhatsApp on VGraple CRM

Free forever plan, official Meta WhatsApp Business API, set up in 15 minutes. No card needed.