FLG Support

Working with Webhooks

This guide covers two things:

How to set up webhook actions in FLG
The format that webhook data is sent in

How to Set Up Webhook Actions

Webhook actions can be set up in lead types and workflows.

Lead Type Webhooks

Go to Settings > Lead Groups > Lead Types.
Select Edit on the lead type you'd like to add the webhook action to.
Click Add New Action.
Select Webhook from the list of actions and click to configure.
In the configuration, specify the custom URL (the endpoint you want the webhook to send to)
Once saved, the webhook action will appear in the list of actions for the lead type.

Workflow Webhooks
Go to Settings > Workflows. Use an existing workflow or create a new one.
Just like with lead actions, click to add an action and then configure the webhook with your desired endpoint and trigger event.

Webhook Data Format
Webhooks send data using an HTTP POST with the following headers:

content-type: application/x-www-form-urlencoded
content-length: <varies based on data sent>

Fields

FieldSampleNotes
id123456789Lead ID / Reference 
titleMr.Title
firstnameJoeFirst Name 
lastnameBloggsLast Name 
fullnameJoe BloggsFull Name 
address1 High Street Address line 1 
address2This Area Address line 2 
address3This Village Address line 3 
towncityThis Town Town 
postcodeBB12 1BC Postcode
emailjoe.bloggs@example.com Email Address 
phone101282123456 Phone Number 
phone201282654321Alternative Phone Number 
fax01282321654Fax Number 
dob1990-12-15 Full Date of Birth
YYYY-MM-DD
dobday15Birth Day 
dobmonth12Birth Month 
dobyear1990Birth Year 
companyABC Ltd. Company
jobtitleManagerJob Title 
leadgroupnameMortgagesLead Group Name 
leadgroupid12345 Lead Group ID 
leadtypeGeneralLead Type Name 
sitenameABC Ltd. Site Name 
siteid123Site ID 
statusQuotedLead Status 
usernameJoe Bloggs Assigned User Name 
userid1234Assigned User ID 
progressQualifiedBilling Point 
sourceGoogleMarketing Source 
mediumPPCMarketing Medium 
termLoansMarketing Term 
cost10Lead Cost 
value20Lead Value 
received2019-10-08
08:50:09
Date & Time Lead Received
YYYY-MM-DD HH:MM:SS
buyernamePartner Co. Referral Partner Name 
buyerid1234Referral Partner ID 
buyerreferencePassed to Joe Telephone Transfer Reference 
transferdatetime2019-10-11
14:23:02
Telephone Transfer Date/Time
YYYY-MM-DD HH:MM:SS
transfersuccessfulYesTelephone Transfer Success Result (Yes or No) 
subid1234-1234 Sub Lead ID 
xmldatetime2019-10-11
14:23:02 
Internet Delivery Date/Time
YYYY-MM-DD HH:MM:SS
xmlfails0Internet Delivery Outcome (0 = Success, 1 = Failed) 
xmlreference123456Returned Reference (if captured) 
xmlresultSuccessReturned Result (if captured) 
introducernameIntroducer Co. Introducer Name 
introducerid4321Introducer ID 
reference12345Introducer Reference.
Text input specified by the Introducer.
contactemailYesPermission to Email 
contactphoneYesPermission to Phone 
contactsmsYesPermission to SMS 
contactmailNoPermission to Mail 
contactfaxNoPermission to Fax 
contacttimeAnytimeContact Time Preference 
dropboxabc123@msrvr.net Lead Dropbox Address 
ipaddress62.123.456.789 IP Address Lead Was Submitted Fr om 
data# (1 to 50)User-defined Additional Field Data 
type# (1 to 50)User-defined Additional Field Label 
taskexistsYesSignifies whether or not there is an active task on the lead. Yes or No. 
workflowexistsNoSignifies whether or not there is an active workflow on the lead. Yes or No. 
lastnoteCalled Customer Last note left on the lead. New > Telephone Call OR New > Note 
lastnotedatetime2019-10-11
15:00:49
Date & Time of last note.
YYYY-MM-DD HH:MM:SS
eventtypestatusEvent type that triggered the webhook 
eventusernameJoe Bloggs Name of user that triggered the event 
eventuserid123ID of user that triggered the event 
eventdatetime2019-10-20
15:00:00
Date & Time of the event that triggered the webhook 
appointmentdatetime2019-10-20
15:00:00
Date & Time of referral appointment.
YYYY-MM-DD HH:MM:SS *
appointmentnotesCall landline number Notes associated with referral appointment *
jUser-defined Journey field data. The format is j followed by the field name.