> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bbrands.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Feature flags that affect notifications

> The feature flags that turn notification behaviour on or off, their default value, what changes when you switch them and who can do it.

## What it is for

A feature flag is a switch that turns a behaviour on or off without a new version of the system. Some flags decide
whether a notification goes out at all, so when a notification you expected does not exist, check this list before
looking for a bug.

Flags are managed in Horizon Enterprise under **Permissions › Capabilities**
(`/{locale}/permission/feature-flags`), with the permission `feature-flag:update`.

> [!WARNING]
>
> The notification module itself has no flag that hides it: the event catalog, rules and templates always apply.
> Turning off a single event or channel is done in the [**Event catalog**](https://docs.bbrands.io/enterprise/notifications/catalog/list.md), not with a flag.

## Flags of the Notifications module

| Flag | Default | On | Off |
| - | - | - | - |
| `notification-api` | Off | Integrations with an API key can send notifications through the notification API | API keys get "403 feature-disabled". Horizon's own notifications are not affected |
| `notification-contactability-scheduling-link` | Off | The maintenance scheduling events accept a missing `url`: Horizon puts a 14-day portal link that signs the account owner in on Schedule maintenance | A missing `url` answers 422 (`data.url`), and links already sent open the portal login |
| `notification-cron-alert-evaluate-disabled` | Off | Kill switch: the alert job stops evaluating (each run is skipped) and no alert reaches Slack or Better Stack | Alerts are evaluated every 5 minutes |
| `notification-cron-retention-purge-disabled` | Off | Kill switch: the retention job stops deleting old notifications | Old inbox items, sends, events and occurrences are deleted on schedule |

The two kill switches are server-only: they exist for incidents and are turned back off as soon as the incident is
over.

## Flags of other modules that send notifications

| Flag | Default | What it decides |
| - | - | - |
| `club-notifications` | Off | Club sends email and push when a coupon is obtained, is about to expire and is redeemed. Off: the Club events are never fired |
| `payment-debt-reconcile-notify` | On | The debt reconciliation job notifies the customer about each settlement it finds. Off: a silent pass, with no email or push |
| `maihuego-application-notifications-inbox` | Off | MaihueGO shows the notification inbox and the preference matrix. Off: both are hidden in the app; in-app sends are still stored |
| `platform-cron-pause` | Off | Pauses every scheduled job of the platform, the notification jobs included (release of scheduled sends, metrics, alerts, purges) |

> [!NOTE]
>
> When a producer's flag is off, the event is not fired: there is no occurrence and nothing appears in
> [**Traceability**](https://docs.bbrands.io/enterprise/notifications/operation/traceability.md). That is the difference with an event turned off in the catalog, which leaves an occurrence with
> the reason **Event inactive**.

## What is not a flag

| Looks like a flag | What it really is |
| - | - |
| "Fallback to Spanish" | A field of each send (`locale_fallback`): it is marked when the recipient's language had no translation and Spanish was used |
| Turning an event or a channel off | The switches of the [**Event catalog**](https://docs.bbrands.io/enterprise/notifications/catalog/list.md) |
| Pausing a channel | Pausing its lane in [**Queues**](https://docs.bbrands.io/enterprise/notifications/operation/queues.md) |
| Business-unit scope | A separate initiative in design; it will come behind the flag `notification-business-unit-scope` |

## Technical detail

| Aspect | Detail |
| - | - |
| Flag registry | `backend/horizon-api/database/database.feature-flag.ts` (`NOTIFICATION_FEATURE_FLAG_KEYS`, category `module-notification`) |
| Notification API | `backend/horizon-api/app/api/v3/notification/route.ts` |
| Crons | `backend/horizon-api/app/api/v3/cron/notification/alert/evaluate/route.ts`, `…/retention/purge/route.ts`; global pause in `lib/common/cron/assert-cron.ts` |
| Producers | `backend/horizon-api/lib/notification/producers/club.producer.ts`; `lib/endpoint/payment-debt-reconcile-schedule/` |
| MaihueGO | `mobile/maihuego-application/constants/notifications-inbox-feature-flag.ts` |

## Related and history

* [Operations runbook](https://docs.bbrands.io/enterprise/notifications/reference/operations-runbook.md)
* [States and reasons](https://docs.bbrands.io/enterprise/notifications/reference/states-and-reasons.md)

| Date | Change |
| - | - |
| 2026-11-11 | First version |
| 2026-11-23 | `notification-contactability-scheduling-link` (contactability-events REQ-09) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.