1 Log into your
Spark Post account.
2 Go to "Account > Webhooks" and click "New Webhook".
3 Enter name for web hook. For target url, enter full http path to the spark post web hook in your installation.
web-hooks/sparkpost.php
(http://www.example.com/web-hooks/sparkpost.php)
Note: For security, you may rename the above file.
4 Leave authentication as none. For "Events" click the "Select" button and check the options you would like to receive a trigger for. Note that triggers will always delete the email from your database, so for example, you DO NOT want to receive
any triggers where emails have been sent ok, such as "Message Events > Delivery".
5 Next, click "Add Webhook" to finish.
Web hook is now set up.