Skip to content
API PlatformDevelopers

Webhook events · leads

lead.submitted/1

Lead submitted. A Meta (Facebook / Instagram) lead form was submitted and its answers fetched: form, page, ad / ad set / campaign, name, email, E.164 phone, every answer and the consent checkboxes.

Payload

We POST this JSON to your endpoint. Answer any 2xx within 30 seconds. The same id arrives again on a retry — skip ones you have handled.

Payload fields
FieldTypeWhat it is
idrequiredstringEvent id. The same on every retry: use it to skip duplicates.pattern ^evt_[0-9A-HJKMNP-TV-Z]{26}$
typerequiredstringEvent type.always lead.submitted
versionrequiredstringPayload version.always 1
api_versionrequiredstringThe endpoint's API version.
occurred_atrequiredstringWhen it happened.date-time
company_idrequiredintegerYour workspace id.
datarequiredobject
leadgen_idrequiredstringMeta lead id.1–∞ characters
page_idrequiredstringFacebook page id.1–∞ characters
form_idrequiredstringLead form id.1–∞ characters
form_namestring or nullForm name.
ad_idstring or nullAd id; null for an organic lead.
adset_idstring or nullAd set id.
campaign_idstring or nullCampaign id.
is_organicboolean or nullTrue when the lead did not come from an ad.
platformstring or nullWhere the form was filled in, as Meta reports it, e.g. fb or ig.
created_timerequiredstringWhen the lead was submitted, ISO 8601.
contact_idinteger or nullThe contact id, when the lead is linked to a contact.
namestring or nullName from the form.
emailstring or nullEmail address from the form.
phonestring or nullPhone number in E.164, when it could be read.
phone_rawstring or nullThe phone number as typed.
phone_country_hintstring or nullCountry used to read the phone number (ISO 3166-1 alpha-2), e.g. US.
fieldsrequiredobjectEvery answer, by the form's field key.
consentrequiredarray of objectThe consent checkboxes.
keyrequiredstringCheckbox key.
checkedrequiredbooleanTrue when ticked.

Example

{
  "id": "evt_01J8Z7BZQ4F6G8J2K5N7Q9S1VC",
  "type": "lead.submitted",
  "version": "1",
  "api_version": "2026-10-01",
  "occurred_at": "2026-09-24T09:20:00Z",
  "company_id": 1001,
  "data": {
    "leadgen_id": "1203456789012345",
    "page_id": "104857600000001",
    "form_id": "823456789012345",
    "form_name": "Free consultation — Sept",
    "ad_id": "120210000000000001",
    "adset_id": "120210000000000002",
    "campaign_id": "120210000000000003",
    "is_organic": false,
    "platform": "fb",
    "created_time": "2026-09-25T10:00:00.000Z",
    "contact_id": null,
    "name": "Jane Doe",
    "email": "jane.doe@example.com",
    "phone": "+15550100142",
    "phone_raw": "(555) 010-0142",
    "phone_country_hint": "US",
    "fields": {
      "full_name": "Jane Doe",
      "email": "Jane.Doe@example.com",
      "phone_number": "(555) 010-0142",
      "budget": "10k-50k",
      "when_to_start": "This month"
    },
    "consent": [
      {
        "key": "marketing_optin",
        "checked": true
      }
    ]
  }
}

Headers

  • Webhook-Signature: t=…,v1=… — how to check it
  • Webhook-Id (also Webhook-Event-Id): the event id, the same on every retry — skip ones you have handled
  • Webhook-Delivery-Id: this delivery attempt, new on every try