Skip to main content

webhooks_snippets_py_2

request = yepcode.context.request

if request.get("headers", {}).get("yepcode-signature", "") != "yp_test_y4Fb38t5RngUZiZSzFC4c4lZHFKHcC":
return {
"status": 400,
"body": {
"error": {
"message":
"Invalid signature. Double check the 'YepCode-Signature' header",
},
},
};