Webhook Data
  • 1 Minute to read
  • Dark
    Light

Webhook Data

  • Dark
    Light

Article summary

Lead data is posted to the webhook as JSON.

The JSON body includes the data in the following format:

{
  "quiz_lead_id": 0,
  "quiz_id": 30075,
  "quiz_name": "List Test",
  "option_id": 0,
  "option_title": "Option Title",
  "action_id": 0,
  "first_name": "First Name",
  "last_name": "Last Name",
  "email": "test@test.com",
  "phone": "1800 160 401",
  "phone_e164": "+611800160401",
  "phone_international": "+61 1800 160 401",
  "phone_national": "1800 160 401",
  "phone_country_dialcode": "61",
  "phone_countryname": "Australia",
  "phone_countrycode_iso2": "au",
  "ip_address": "0.0.0.0",
  "webpage_url": "https://30075.domarketing.ca",
  "webpage_top_url": "https://30075.domarketing.ca",
  "loaded_in_frame": 0,
  "lead_custom_data": {
    "custom_key_1": "custom value 1",
    "custom_key_2": "custom value 2"
  },
  "date_created_string": "2022-07-26T13:16:40",
  "utc_date_created_string": "2022-07-26T20:16:40Z"
}


quiz_lead_id 

is the UNIQUE ID of the lead.


quiz_id 

is the widget id for which the lead was submitted


quiz_name 

is the widget name for which the lead was submitted


option_id 

is the option id clicked by the visitor which prompted the leadform

Note: Option id will be 0 if the visitor clicked on the 'Info', 'Request Information, 'Apply Now' button to submit their information


option_title

is the option's visible text clicked by the visitor clicked by the visitor which prompted the leadform


action_id

is the action id performed by the widget to get the lead

Note: Action id will be 0 if the visitor clicked on the 'Info', 'Request Information, 'Apply Now' button to submit their information


first_name

Firstname of the lead


last_name

Lastname of the lead


email

Email of the lead


phone

Phone of the lead, without any format


phone_e164

Phone number in E164 Format. Eg: +611800160401


phone_international

Phone number in international format. Eg: +61 1800 160 401


phone_national

Phone number in national format. Eg: 1800 160 401


phone_country_dialcode

Country code of the phone number. Eg: 61


phone_countryname

Country name of the phone number. Eg: Australia


phone_countrycode_iso2

Country code in ISO2 format of the phone number. Eg: au


webpage_url

Widget page url, where the leadform was shown


webpage_top_url

This will have the parent webpage URL if the widget was loaded in an iframe


loaded_in_frame

(0 or 1)

This will be 1 if the widget was loaded into another webpage in an iframe


lead_custom_data

This will have the array of custom data supplied to the widget for the lead during widget initialization

NOTE: This key (property) lead_custom_data would not be present(or will be removed) in the JSON data if no custom data was supplied to the widget during initialization.


date_created_string

Date time when the lead was created in the format of 2022-07-26T13:16:40

(No timezone specified)


utc_date_created_string

UTC Datetime when the lead was created in the format of 2022-07-26T20:16:40Z 

(Timezone specified)


Was this article helpful?