Use service hooks to receive HTTP webhooks from Sentry when events are created or alerts fire, with HMAC signature verification.
Service hooks let you register HTTP endpoints to receive webhook payloads from Sentry. When a matching event occurs in a Sentry project, Sentry sends a POST request to your URL.
Service hooks are for raw events at the project level. For broader event subscriptions (issues, comments, metric alerts, installations), use Sentry Apps instead.
Every webhook request includes an X-Sentry-Hook-Signature header containing an HMAC-SHA256 signature. Verify this signature to confirm the request came from Sentry.The signature is computed as:
HMAC-SHA256(secret, request_body)
where secret is the token shown in the service hook settings.
Your endpoint must return a 2xx HTTP status code within the request timeout. If Sentry receives a non-2xx response or the request times out, it does not retry the delivery.
Accept the webhook immediately and process it asynchronously. This prevents timeouts if your processing logic is slow.