# Python webhook signing ```python import hashlib import hmac def sign(raw_body: bytes, secret: str) -> str: return hmac.new(secret.encode("utf-8"), raw_body, hashlib.sha256).hexdigest() ``` Set `X-Platform-Signature` to the lowercase result. Test vector: secret `test-secret`, body `b'{"status":"delivered"}'`, signature `bfebae765b7f20464b4b64d37314fc073a178a293762aaf32920be724d5fde18`.