Webhooks in Aliveforms
Aliveforms allows custom webhooks to send data in JSON format.
Aliveforms requires verification of domain. For this make sure
/aliveforms_webhook/ can accept POST request and sends the JSON with key, 'key' and value same to the key sent by Aliveforms for verification.
Here is sample PHP code.
<?php header('Content-Type: application/json'); $input = file_get_contents('php://input'); $data = json_decode($input); $return['key'] = $data->key; echo json_encode($return);
Setup in Aliveforms
In Aliveforms Integration Editor, Webhook integration setup requires webhook url to be entered.
Edit the form where you want to use webhook. In Applications sections, click on Integrations drop down and select your webhook integration and click apply.