Webhooks
Last updated
Last updated
Webhooks allow you to subscribe to events triggered on a Falkor Pathway. When an event is triggered to the webhook's configured URL, an HTTP POST payload is sent along with an HMAC sha256 signature.
Step 1 When a pathway is created, webhooks are automatically registered in a disabled state. To set up a webhook, go to the API & Webhooks section of the pathway. From there, select the MPI Manager options icon and choose Setup.
Step 2
Provide a secure URL and Webhook Secret. A secrets is used to create a signature of the payload data and is sent in the <Platform Name>-Webhook-Signature
header. This ensures that you can validate that the payload is in fact from the platform. We do recommend you provide a strong cryptographic token.
<Platform Name>
will be the name of the platform being used. For example: ByteKast-Webhook-Signature
, TrainiApp-Webhook-Signature
OR Falkor-Webhook-Signature
Step 3 Once your chosen webhook is set up, you can enable it by clicking the switch to on. Once enabled, you can begin to manually send deliveries to test integrations on your server.
During a webhook setup, your provided secret is used to sign the payload with an HMAC SHA256 signature. This signature is available in the payload header as Falkor-Webhook-Signature
To validate this signature you will use the same secret to along with the sent payload to recreate the matching signature. For example, in PHP this would simply be:
Triggered when enrolments for a pathway change. This can be when a user enrols, or completes a pathway or activity.
EnrolmentsTriggered when attendance for a classroom or event changes. This is when the user registers their attendance or checks-in to the activity.
Classroom & EventsTriggered when rewards are obtained by users, i.e. is when the user receives/unlocks the reward on a pathway.
Rewards