Skip to main content
Squasher sends five kinds of events: incidents, monitor state, new issues, regressed issues, and anomalies. An agent can receive them in two ways:
  • Push. Add a webhook destination and a route that lists the events. Squasher posts each event to your HTTPS endpoint and signs it.
  • Poll. Read the event feed with a cursor. Use it when your agent has no public endpoint.
Both ways use the same event id and type. If you use both, drop an id that you already handled.

Event types

Route issues and anomalies

A route receives issue_created, issue_regressed, and anomaly_detected only when its conditions.events lists them. The default route never receives them. These events go to Slack, email, and webhook destinations; other destination types skip them. Owners and admins get new and regressed issues in their inbox and by email without a route; see Issue alerts.
One Slack or email destination gets at most 10 issue alerts in a rolling hour. The tenth alert says that alerts pause. It also skips a regression of an issue that it alerted in the last 30 minutes. Webhooks and the event feed get every event, and anomaly alerts have no limit. conditions.severities filters issues by level (error, fatal, warning) and anomalies by severity (warning, error). conditions.environments filters both by environment. A route receives security_finding_detected and action_proposal_pending only when its conditions.events lists them. conditions.severities filters security findings by severity (high, critical) and pending actions by risk (low, medium, high). Each pending action waits for a person: nothing runs until an owner or admin approves it. When the Squasher Agent finishes its automatic triage of an issue or a security finding, it posts the result as a reply to the Slack alert of that issue or finding. Mention the Squasher app in that thread to ask a follow-up question or to ask it to open a fix pull request.

Webhook body of an issue or anomaly

data.subject_id is the issue id for issue.*, the finding id for anomaly.detected and security_finding.detected, and the action id for action.pending. data.release is the service.version of the event that opened or reopened the issue, or null. Verify the signature as described in Headers and signatures.

Poll the event feed

GET /v1/projects/{project_id}/notifications/events (notifications.listEvents, scope notifications:read) returns events in order, oldest first.
  • Store next_cursor after you handle a page, and send it on the next call. The cursor moves past every row it read, also rows that are not public events, so a page can be empty while has_more is true.
  • When has_more is false, wait before the next call. 15 to 60 seconds is enough.
  • The feed shows an event about 5 seconds after it happens. This delay keeps the order complete.

From a terminal or an agent

--follow never stops. A long-running agent (for example Claude Code with a background monitor or OpenClaw) can read its output line by line and start an investigation for each event. Keep the last id that you handled, and start again with --cursor <id> after a restart. From TypeScript, client.notifications.listEvents({ cursor, types }) calls the same endpoint.