Webhooks are HTTP notifications sent from Lago to your application.
POST
to the URL defined in the settings of your
Lago workspace.
If you return an error (other than a 2xx’s HTTP response) or if there is a network issue,
the webhook will be sent again. Lago will try to send the webhook 3 times.
POST __WEBHOOK_URL__
X-Lago-Unique-Key
. This key can be used
to ensure you process a webhook only once.
X-Lago-Signature
and X-Lago-Signature-Algorithm
HTTP header.
It is used to ensure the message is Coming from Lago and that the message has not been altered.
To verify the signature, you must decode the signature and compare the result with the body of the webhook.
You can choose between 2 differents signatures algorithm during your webhook endpoints creation, hmac
or jwt
.
Please note that jwt
is our original signature and is used by default.