Skip to main content
Use the generic alert webhook when your tool has no connector of its own. Send a small JSON body with a status of firing, acknowledged, or resolved, and Squasher opens, acknowledges, or resolves the matching incident.

What you need

  • A script or tool that can send an HTTPS POST with a custom header.
  • The Squasher CLI, signed in with write access to the project. See Alert sources.

Connect a sender

1

Create the connector

Save setup.endpoint and setup.secret from the output. In the examples below, they are in SQUASHER_ALERT_ENDPOINT and SQUASHER_ALERT_SECRET.
2

Send a firing alert

The response is {"action": "opened", ...}.
3

Resolve the alert

Send the same alert_id with "status": "resolved", a new event_id, and a later occurred_at. The response is {"action": "resolved", ...}.

Fields

Squasher rejects a body with any other field, with 422. An acknowledged event marks an open incident as acknowledged. If no incident is open for the alert_id, Squasher ignores it and does not open one.

Limits

  • Send the secret only in the Authorization: Bearer header or in the x-squasher-alert-secret header. Never put it in the URL or the body.
  • Each request carries one alert. For many alerts, send many requests.
  • Squasher ignores an event whose occurred_at is older than the last event it applied for the same alert_id. A time more than 5 minutes in the future is replaced by the receive time.

Next steps

Alert sources

Limits, response codes, and secret rotation.

Route incidents

Send these incidents to the people on call.