Why am I getting a 401 error with Shopify webhook notifications?

Hello, when I try to send a notification through webhook admin button I am getting error 401.

The receiver is a flask app using the shopify python api.

How to properly test the webhook?

Thanks.

Hi Antonio,

Can you provide more information on how you’re handling webhooks? Are you validating the HMAC?

Check out the docs for information about this: https://shopify.dev/apps/webhooks/configuration/https#step-5-verify-the-webhook