Sending a webhook to an external system
With a webhook, you can automatically call another system from your automation. As soon as a subscriber reaches the ‘Webhook’ block in your automation, Laposta calls the specified address. Along with this, Laposta sends information about the event (which automation, which step) and, if you tick the option, the subscriber’s details (email address and any other fields).
You can read how to build an automation and place actions in Start your first automation.
Processing the call and verifying the secret
The call is an HTTP POST with the data as JSON in the body.
With every call, Laposta sends a secret: this is the long green code in the block’s settings. Verify this value in the script that receives the call. This way, you know that the call comes from Laposta and not from someone else, such as a spambot.