How to Send Node-Level API Requests Using JavaScript

PLEASE NOTE: This script is provided to help you get started. Unfortunately, our free support does not include custom scripts. Any competent JS developer should be able to manipulate this script for your needs. Please contact us if you need help to find a developer. Please thoroughly test before use. BACKGROUND In some cases you […]

Read More

The API response variable

In some use cases you might want to test if the API node is working (before setting up the real live API call). We can use webhook.site to test a request and its response. First go to:https://www.webhook.site And click “New” up the top rightFill out the dialog like so: You can see we have created […]

Read More

Ontraport API

Its possible to send a webhook or API call from LH into the Ontraport API. They have quite a large set of functions. In this example we will be creating a new contact with data about them. The official documentation is located here: http://api.ontraport.com/doc/#create-a-contact Get your API key Get your App ID These credentials can […]

Read More

Need Your Webhook & API Requests from a Static IP Address?

Every so often your integration will require API calls to come from a static IP address. Unfortunately, this method of authentication is dated and is also not scalable to use 1 IP address. LeadsHook offers redundancy across data centres and regions so there is no ‘one’ IP address as such. The solution is for you […]

Read More

Using Google Sheets as a Lookup Table

In this article you’ll learn how to use Google Sheets as an external database. You can make API calls from LeadsHook using the API node and SAVE the returning data into custom fields. There are 2 methods available… METHOD #1: Easy Method Using a 3rd Party App (Developer NOT Required) In method 1, you use […]

Read More

API Node – Response Errors

The API node allows you to pass your data collected in LeadsHook to your CRM/endpoint. The advantage to using the API node vs the Webhook node is that it supports return variables ( responses ). In this example we will see how to throw an error by passing a bad request through. And collect the […]

Read More

LH direct to Google Sheets

If you’re using Zapier to populate a Google Sheet and want to cut out the middleman. Its possible to just go straight from LH to Google sheets. It should be much more reliable, as Zapier can miss a few calls from time to time. This is a test sheet with working code.1. You need to […]

Read More

Generate JSON for webhooks

Here’s a little tool for you to cut down the coding time and minimize failure with the JSON code. With this you can easily write down your custom fields and it will generate the JSON Code for you. All you have to do is, copy and paste that code inside the webhook node. https://docs.google.com/spreadsheets/d/1CipXL-M0oBEs43Crx28_mzbSfUKpg-bRFditdBo2RLw/edit?usp=sharing To […]

Read More

Troubleshooting Webhooks & API calls

Headers Often when setting up a webhook or API call in LeadsHook the request will fail even though it looks 100% The reason for this in many cases is that the content-type request header is missing. The content-type request header tells the server what format we are using for our payload. The most common formats […]

Read More

The Complete Leads Distribution Training

Video 1: 7 Ways to Distribute Your Leads Video 2: Distribution Rules and Decision Tree Setup Video 3: How to Randomly Distribute Leads Video 4: How to Sequentially Distribute Leads (round robin) Video 5: How to Distribute Leads Based on Responses & Answers. Video 6: How to Setup Notifications To Control The Number of Leads […]

Read More