Create Webhook
Mainly, there are 2 ways to create webhooks to specific events that occur on McEasy
Manual Request
This method is done via a request to McEasy’s customer service/developer. The required data for this method are:
- Company name/domain.
- URL (Company’s/Customer’s own endpoint).
- The valid URL format for registration is the typical URL containing scheme, domain name, path (if desired), and query if it needs to have them. And should look like something like these.
https://www.notify.co.uk/event
http://listen.com/event1
http://wh-event.company.co.it:3000/154
https://www.listeners.co.us/listen?token=eyAsdaksjbcaJJBashsfnvgpVs
- The valid URL format for registration is the typical URL containing scheme, domain name, path (if desired), and query if it needs to have them. And should look like something like these.
- Events to be listened to. The list of listenable events can be found here.
- (Optional) If signature verification is desired, a webhook secret.
McEasy Platform (web)
This method is done via the McEasy Platform's web.
- Go to the Settings tab.
- Click on the Webhook tab.
- Click on the Create button.
- In the URL field, enter the URL of the endpoint to which the webhook will send the data.
- Select the events that will be listened to.
- Click on the Next button.
- Select the vehicles that will be listened to. (some events are not restricted to specific vehicles. ex:
fleet-task
,route
) - Click on the Save button.
After you create a new webhook, McEasy will start sending data to the endpoint you specified.