HTTP endpoints allow you to trigger your Jobs from any webhooks.
defineHttpEndpoint
to receive webhooks, verify them, and create an HTTP Trigger.
verify
function is compulsory and is automatically called when a webhook is received. It’s required to return a result from this function – 90% of the time you can use our verifyRequestSignature
helper function.
.env
file. When you deploy you’ll need to put it in relevant section of your cloud provider’s dashboard. In the code above we’re using CALDOTCOM_SECRET
as the environment variable name.