What is a Webhook?
Webhooks are automated messages sent from Happierleads when we Identify a new Lead. They have a message—or payload—and are sent to a unique URL.
Webhooks are almost always faster than polling and require less work on your end.
This way you can build an API that Accepts POST requests and insert this URL into our system.
How to setup webhooks in Happierleads
First, go to your Happierleads account and select the automation icon on the left-hand side -
Once you are on the dashboard of Automations, click Add new Automation -
A pop-up window will appear where you'll create a path for your automation.
Once you've selected an option on the 'When' path, the 'Then' path will appear where you'll select Trigger Webhooks (Last option).
From there, the path choice will be up to you. You will need to complete the path as you'll enter the webhook url on the final step. Here's an example -
Quick notes:
- We use POST method only
- Webhooks do not work in Localhost because your API must be in a production server (LIVE)
- We are not returning all the data every time. Some of the data will be null as is impossible to have all the data especially for small startups (e.g. revenue, employee size) The data you will always going to receive is the domain, createdAt, session, and contacts when this is possible.
Sample Webhook Request
3 Major objects
sessions: All the information about the session
company: All the info about the company (firmographics, technographics e.t.c)
contacts: All the employee contacts
If you've got any questions or concerns, please contact our web chat for support.