The webhook service is designed to integrate alerts into your workflow or information system It pushes event notifications using HTTP POST requests to a specified third-party registered URL listener. This URL can be from a Third Party webhook service provider or it can be a listening URL configured by a customer created web application. |
The same WebHook URL can be used for multiple locations since notifications can be distinguished by a unique location identifier.
In the Occupancy Load Alert case, the Party Squasher platform monitors real-time detection of occupancy load (High / Low) for a configured location and will push an event when the occupancy is above capacity and when the occupancy drops below the max count.
Multiple sensors can be configured to the same Webhook URL because a unique identifier (location_uuid) is provided with the notification. Below find sample data delivered in the push notification:
notification_type |
location_uuid |
location_occupancy_threshold |
location_occupancy_load |
LOCATION_OCCUPANCY_LOAD_NOTIFICATION |
7A145025-6C0D-4099-BAD0-2AC4F1451A94 |
64 |
LOW |
Zapier Slack Channel Example
Zapier is a web-based service that enables you to connect various Apps in order to automate your workflow. In this example, we detail how to send a message on slack every time that an occupancy event occurs. You could also leverage Zapier to trigger actions in other Apps such as Gmail or amongst the hundreds of other Apps that they have connectors for.
Once you have created your Zapier Premium account, Create a Zap with Webhook as a trigger, select Catch Hook. On the destination select Slack with Send Channel Message as an action. Click on “Use Zap”.
On the next screen, copy the Webhook URL and click on Continue.
On the Party Squasher dashboard side, paste the URL into the Webhook Management screen. Then, click on “Test Webhook”.
You will get an OK message. On its end, Zapier will confirm to you that the request was successfully received. With the Location UUID.
Click on Continue to configure the Slack side of the Zap.
Choose your Account and Channel as well as your bot messaging. As an example:
Then, test your Webook and see the result in Slack:
Use this Zap template to create your own!
If you have any additional questions or wish to get the Webhook documentation, contact us!