payment.succeeded to your endpoint — you activate a subscriptionpush event — your CI triggers a buildThe external service signs the request body with a secret key (HMAC-SHA256). Your handler verifies the signature before taking any action — to confirm the request genuinely came from the trusted source, not an attacker.
A webhook handler must respond quickly (200 OK) and push real work to a queue — otherwise the external service may consider delivery failed and retry the request.