# Notification rules: get pushed only for what matters · Ahem

Source: https://useahem.com/features/notification-rules

1.  [Home](https://useahem.com)
2.  Features
3.  Notification rules

# Get notified for what matters. Keep the rest.

In Ahem every channel has a notification rule, and every person sets their own. A payments channel can buzz for every event while signups stay silent and errors always get through. Events that don’t notify are still stored and searchable.

The bell of a #signups channel in the web app, set to warnings and errors. New signups wait quietly in the inbox; a blocked signup would buzz. Example data.

Rules

## The four rules

Pick one per channel with its bell, in the web app or the phone app. A project has a rule too, for its channels that don’t have their own. With neither, you hear about every event.

| Rule | Why |
| --- | --- |
| Every event  
`#payments` | Rare and worth hearing about every time. This is the default. |
| Warnings and errors  
`#signups` | New signups can wait. A blocked or failing signup can’t. |
| Errors only  
`#jobs` | A finished background job can wait. A failed one can’t. |
| Off  
`#deploys` | You read it in the inbox when you want to. Nothing buzzes. |

Levels are set by your code when it sends the event: `info`, `success`, `warning` or `error`. A rule applies to all your devices: browsers, iPhone and Android.

How it works

## How Ahem decides whether your phone buzzes

For every event and every person in the project, Ahem asks these questions in this order. The first one with an answer decides.

1.  ### Over your monthly quota?
    
    Notifications pause. Events are still stored.
    
2.  ### Did the sender say `silent`?
    
    No notification. Good for backfills and events you send by the hundred.
    
3.  ### Is the channel off for you?
    
    No notification. Nothing overrides this, not even `loud`.
    
4.  ### Did the sender say `loud`?
    
    Notify, whatever the level.
    
5.  ### Do you watch the person it is about?
    
    On Maker you can [watch a customer](https://useahem.com/features/user-timeline): notify for all their events, or for their errors.
    
6.  ### Does the level pass your rule for this channel?
    
    Notify if it does. If not, the event waits in your inbox.
    

```
curl https://api.useahem.com/v1/channels/habitpocket/payments \
  -H "Authorization: Bearer $AHEM_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Refund requested: order 1182",
    "level": "info",
    "notify": "loud"
  }'
```

An `info` event that still buzzes: `"notify": "loud"` skips the level check. Leave `notify` out and the rule decides.

On your phone

## When it does buzz

### Errors get through Focus

On iPhone, errors are delivered as time-sensitive, so Focus modes let them through unless you turn that off. Everything else respects Focus.

### A sound per level on Android (Beta)

Each level has its own Android notification channel (Errors, Warnings, Successes, Info), so you can choose a sound or silence per level in Android settings.

### Stacked per project

On iPhone, a project’s notifications group together, so a busy morning reads as a few piles, not forty banners.

## Not there yet

These are not in Ahem today. I list them so you know what to expect, not as a promise of a date.

-   Burst grouping: "9 new signups" instead of 9 pushes (Soon)
-   Quiet hours that still let errors through (Soon)
-   Rules per event type (payment.failed loud, invoice.\* silent) (Soon)
-   Custom sounds (cha-ching for payments) (Planned)
-   Daily digest (Planned)

## Compared with a push service or a Telegram bot

Pushover, ntfy and a Telegram bot deliver every message you send them, and what doesn’t buzz is simply not sent. With Ahem your code sends everything, and the rule decides what reaches your phone. The rest stays in the inbox, searchable, for 7 days on Free and 365 days on Maker. Changing your mind is a tap on a bell, not a deploy.

[Compare Ahem with six other tools](https://useahem.com/compare)

FAQ

## Questions

**How do I stop getting notified for every event?**

Open the channel’s bell, in the web app or the phone app, and choose warnings and errors, errors only, or off. To quiet a whole project at once, set the project’s rule; channels with their own rule keep it. Nothing is deleted: the events still land in your inbox.

**Do my rules affect my teammates?**

No. Rules are per person. Everyone you invite to a project sets their own, per channel and for the project as a whole. Inviting people is on Maker.

**Can my code force a notification?**

Yes. Send `"notify": "loud"` and the event notifies whatever its level, unless you turned the channel off. Off always wins.

**Does a silent event still count towards my quota?**

Yes. Every stored event counts, whether it notified anyone or not.

**What happens to the events that don’t notify?**

Nothing is lost. They land in the inbox and their channel as usual, and stay searchable for as long as your plan keeps events.

**Can I set a rule per event type, like payment.failed?**

Not yet; rules per event type are coming soon. Today you can split those events into their own channel, or send them with a level or `notify` that fits.

## Related

[Guide · **A notification when a cron job fails**](https://useahem.com/guides/cron-job-failure-notification) · [Feature · **Count signups and sum revenue**](https://useahem.com/features/counters) · [Pricing · **What Free and Maker include**](https://useahem.com/pricing)

## Send everything. Hear about what matters.

[Start free](https://app.useahem.com/sign-in) · [Read the API docs](https://app.useahem.com/docs)
