Working with Webhooks

Modified on Wed, 24 Jun at 2:52 PM

Webhook Actions

This guide covers:

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

Setting Up Webhook Actions

Webhooks can be set up in lead types and workflows.

Lead Type Webhooks

  1. Go to Settings - Lead Groups - Lead Types
  2. Select Edit on the lead type you want to add a webhook to
  3. Click Add New Action
  4. Select Webhook from the list and click to configure
  5. Enter the custom URL - the endpoint the webhook will send to
  6. Once saved, the webhook appears in the lead type's action list

Workflow Webhooks

  1. Go to Settings - Workflows and open or create a workflow
  2. Click to add an action, then configure the webhook with your endpoint and trigger event

Webhook Data Format

Webhooks send data via HTTP POST with these 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 StreetAddress Line 1
address2This AreaAddress Line 2
address3This VillageAddress Line 3
towncityThis TownTown
postcodeBB12 1BCPostcode
emailjoe.bloggs@example.comEmail Address
phone101282123456Phone Number
phone201282654321Alternative Phone Number
fax01282321654Fax Number
dob1990-12-15Full Date of Birth (YYYY-MM-DD)
dobday15Birth Day
dobmonth12Birth Month
dobyear1990Birth Year
companyABC Ltd.Company
jobtitleManagerJob Title
leadgroupnameMortgagesLead Group Name
leadgroupid12345Lead Group ID
leadtypeGeneralLead Type Name
sitenameABC Ltd.Site Name
siteid123Site ID
statusQuotedLead Status
usernameJoe BloggsAssigned User Name
userid1234Assigned User ID
progressQualifiedBilling Point
sourceGoogleMarketing Source
mediumPPCMarketing Medium
termLoansMarketing Term
cost10Lead Cost
value20Lead Value
received2019-10-08 08:50:09Date and Time Lead Received (YYYY-MM-DD HH:MM:SS)
buyernamePartner Co.Referral Partner Name
buyerid1234Referral Partner ID
buyerreferencePassed to JoeTelephone Transfer Reference
transferdatetime2019-10-11 14:23:02Telephone Transfer Date/Time (YYYY-MM-DD HH:MM:SS)
transfersuccessfulYesTelephone Transfer Success Result (Yes or No)
subid1234-1234Sub Lead ID
xmldatetime2019-10-11 14:23:02Internet 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.netLead Dropbox Address
ipaddress62.123.456.789IP Address Lead Was Submitted From
data# (1 to 50)User-definedAdditional Field Data
type# (1 to 50)User-definedAdditional Field Label
taskexistsYesWhether there is an active task on the lead (Yes or No)
workflowexistsNoWhether there is an active workflow on the lead (Yes or No)
lastnoteCalled CustomerLast note left on the lead - New > Telephone Call or New > Note
lastnotedatetime2019-10-11 15:00:49Date and Time of last note (YYYY-MM-DD HH:MM:SS)
eventtypestatusEvent type that triggered the webhook
eventusernameJoe BloggsName of user that triggered the event
eventuserid123ID of user that triggered the event
eventdatetime2019-10-20 15:00:00Date and Time of the event that triggered the webhook
appointmentdatetime2019-10-20 15:00:00Date and Time of referral appointment (YYYY-MM-DD HH:MM:SS)*
appointmentnotesCall landline numberNotes associated with referral appointment*
jUser-definedJourney field data - format is j followed by the field name

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article