I use smooch whatsapp
integration and smooch webhook
to create a bot in whatsapp.
I want to authenticate the posts that come from my webhook.
I saw in the documents that there is a variable in the headers: x-api-key
, that should be used exactly for that:
I can not find any explanation of how this variable is used. I realized that it contained the secret key of the webhook
. But what else?
How do I create from the data/body another signature to check if it's match to what sent in the header?