Using webhooks provides a mechanism to be sent consensus responses from your client without having to wait for consensus. Currently in development.
Using webhooks in the deployment
In your Vercel deployment set WEBHOOK_URL to the POST route that you wish to send all messages and redeploy your API.
Make sure that your POST route **responds with the status code of 200.**
Proving the source of messages
The concern of webhooks combined with trust is proving that the message came from the correct source.
In the request there will be a header including an x-signature this will be a HMAC hash of the body and the API_SECRET_KEY using the SHA256 algorithm.
To trust the source of the message you'll need to match the signature by creating a hash of the body and API_SECRET_KEY in your server and comparing.
Without verifying the signature at this step you cannot be sure that the message you received is valid. Otherwise anyone that knew your webhook route could fake a consensus response.