Using our rules engine, you can configure our platform to call a third-party API whenever a particular event occurs. For example, you can tell the platform to call an API on your own servers whenever a student completes a particular course.
To activate Webhooks, first install them from the App Center.
Then a new "" option will appear whenever you add a rule action. You can add rules for courses, groups, modules, sections, assignments, and accounts. For more details, visit the Rules topic.
A requires an endpoint and parameters, which will be invoked using an HTTP POST. The endpoint can be HTTP or HTTPS. The parameters can accept variables of the form @xxx, just like our message templates.
Webhook jobs allow a full 10 seconds for a webhook to respond to the call from our job servers. If the server that is called by a webhook does not respond within 10 seconds, the connection will terminate with the remote service, wait for five seconds, then attempt to invoke the webhook again. The system will repeat this retry logic up to 10 times, doubling the delay each time (5s, 10s, 20s, 40s, 80s, etc.) before registering the entire operation as failed due to timeout.
Administrators can add the webhooks widget to the admin dashboard. To add the widget go to the dashboard and click the "Edit widgets" button.
Then select "Center Panel" from the pop-up.
From the "Available widgets" area you can add the Webhooks widget to the center panel using drag-and-drop, then click Save.
The Webhooks widget shows the number of webhook calls and the number of errors.
To learn more about dashboard widgets visit the Widgets topic.