Skip to main content
Moonshadow notification rules let you define when and how your team gets alerted about events from connected integrations. You can create rules that match specific event types, apply filters, and deliver notifications through Slack, email, or custom webhooks.

Create a Notification Rule

A notification rule connects event triggers to delivery channels. When an event matches the rule conditions, Moonshadow sends the notification through every configured channel.
Response:
string
required
The workspace that owns this notification rule.
string
required
A human-readable name for the rule.
array
required
List of trigger conditions. Each trigger specifies an event type and optional filters.
array
required
List of delivery channels. Moonshadow sends to all channels when triggers match.

Trigger Conditions

Triggers define which events activate the notification rule. Each trigger has an event_type and optional filters that narrow down matching events.

Event Types

You can trigger on any event type that occurs in your workspace:
  • event.created - any event from a connected integration
  • automation.completed - an automation workflow finished
  • integration.connected - a new integration was added
  • integration.disconnected - an integration was removed
  • user.invited - a new user was invited to the workspace

Filters

Filters use dot notation to match values inside the event payload. Only events that satisfy all filters trigger the notification.
Filters support exact matching, arrays for OR conditions, and nested dot notation. Use them to avoid noisy notifications.

Delivery Channels

Each rule can deliver to one or more channels. Moonshadow supports Slack, email, and webhook channels.

Slack

Sends a formatted message to a Slack channel. Requires a connected Slack integration.

Email

Sends an email to one or more recipients.

Webhook

POSTs the event payload to a custom URL.

Muting and Snoozing

You can temporarily disable a rule without deleting it. This is useful during maintenance windows or when a service is down.

Disable a Rule

Snooze a Rule

Snoozing disables a rule for a fixed duration and re-enables it automatically.
Snoozed rules show a countdown in the dashboard. You can cancel a snooze early by re-enabling the rule manually.

Full Example: GitHub Pull Request Alerts

This complete example creates a rule that alerts the team when a non-draft pull request is opened in GitHub.
Notification rules apply at the workspace level. Every event in the workspace is evaluated against all enabled rules, so keep filter specificity high to prevent redundant notifications.

Next Steps

  • First Integration

    Connect Slack or another integration to enable Slack notifications
  • Webhooks

    Build custom delivery pipelines with webhook channels
  • API Reference

    Explore all notification rule endpoints and parameters