Cheat sheet for sending requests with X-Signature header:
WEBHOOK_LISTENER_URL="https://example.org"
SECRET="secret"
PAYLOAD='{"type":"user.deleted","timestamp":"2025-01-01T00:00:00.000000Z","data":{"email":"user@example.org"}}'
SIGNATURE=$(printf '%s' "$PAYLOAD" | openssl dgst -sha256 -hmac "$SECRET" | sed 's/^.* //')
curl -i "$WEBHOOK_URL
-H "Content-Type: application/json"
-H "X-Signature: $SIGNATURE"
-d "$PAYLOAD"