Webhooks overview
Receive event notifications when your Impel Merchandising widgets change.
Impel supports sending event notifications to a custom webhook endpoint. You can use these events to trigger specific callback functions within your backend system.
A webhook endpoint is a URL that can receive HTTP POST requests and respond with an appropriate HTTP status code.
Impel notifications are event objects that contain all the relevant information about what just happened, including the type of event and the data associated with it. Your webhook endpoint uses the event details to take any required actions, such as calling the WD API to retrieve the Impel widget URL so you can add the widget to the vehicle detail page.
When to use webhooks
Impel recommends using webhooks to notify your application when an event happens in your account. This is more efficient than polling Impel APIs on a schedule, particularly if you want to reduce the time it takes to respond to events.
The actions your endpoint takes differ by event. Some examples:
- Adding an Impel widget to your web page when it is updated
- Updating an image in your system when a new version of the image becomes available
- Removing an Impel widget from your system when a vehicle was sold
Getting started
You can begin using webhooks with your Impel integration in two steps:
- Build a webhook endpoint on your server. See the event types and schema it will receive.
- Register the endpoint with Impel.