SIGNED EVENT DELIVERY

Verify HMAC signatures

Receive owner-scoped HomeAutoPro events at a validated public HTTPS endpoint.

Verify the exact raw body

Python
import hashlib, hmac
expected = "sha256=" + hmac.new(WEBHOOK_SECRET.encode(), raw_body, hashlib.sha256).hexdigest()
if not hmac.compare_digest(expected, signature):
    raise ValueError("invalid signature")