Webhooks are automated messages sent from AiX to a URL when something happens. They contain custom data and are sent to a unique URL defined by you.
Usage
- Login to the administration area and go to
Settings > Miscellaneous > Webhooks. - Enter the destination URL. AiX will send the data to this URL. This URL should point to a
PHPfile that can read the data received, you can use the code$response = json_decode(file_get_contents('php://input'), true);to get the data, the$responsevariable will be an array. - Enter in the
Secret keyfield a secret password of your choice. This key is included in all the Webhooks, you can use it to validate the Webhook and make sure it is sent by AiX and not from someone else. - Activate the Webhooks and save. AiX will now start sending the Webhooks of the list below to your URL.
- The key
sender-urlis included in all the Webhooks and contains the URL from which the webhook is sent. - The setting
Active webhooksdefines what webhooks are active. Enter names of the webhooks separated by commas. Leave it empty to enable all webhooks.