Contexts
Define tenant, app, or workspace context once, and Novu automatically scopes every notification, Inbox feed, preference, and delivery path to that context. No duplicated workflows, no custom filters, and no risk of cross-tenant leaks.

- Contributors
- Details
This feature is currently in beta. If you'd like to access Contexts, please email our support team at [email protected]
A Context in Novu is a structured object that describes the environment or scope to which a notification belongs. Instead of embedding metadata (like tenant ID or app name) into every trigger payload, you can now store it once and reference it everywhere.

Context object schema
When defining contexts, Novu supports multiple formats per key-value pair, allowing you to store and reference metadata relevant to your workflows and templates.
How it works
1. Create reusable contexts
Contexts are stored with unique environment and organization indexes, ensuring clean separation across projects.
2. Reference them in workflow triggers
- Contexts can be passed as simple strings or rich objects.
- Missing contexts are created automatically.
- All related notifications, messages, and jobs store the context keys for traceability.
3. Resolved automatically at runtime
During message delivery, the worker reconstructs the context from its stored key(s), exposing all context data in your templates:
4. Manage through API or Dashboard
- GET /v2/contexts/:type/:id — retrieve
- PATCH /v2/contexts/:type/:id — update data
- GET /v2/contexts — list & search
- DELETE /v2/contexts/:type/:id — remove
Visit the documentation to learn how to create, update, and retrieve a Context.
<Inbox /> with Contexts
Requires <Inbox /> version 3.11.0 or higher
As products mature, they typically shift from serving a single user group to supporting multiple groups.
Each organization, environment, or workspace has its own unique data, brand, and set of rules.
Most notification systems regard users as a single group with the same feeds, which leads teams to create weak filters and have duplicate subscribers across different tenants.
This is where <Inbox /> with Contexts excels for managing multi-tenancy. It offers built-in support directly at the notification layer, providing each tenant with a dedicated Inbox setup. This approach keeps your subscriber model and workflows intact without requiring any duplication.
Inbox Scoped by Context
When you render the Inbox, merely pass the same context:
The <Inbox /> knows precisely which messages to load, filtered by context.
Subscribers can switch between tenants or workspaces. Each one shows its own separate feed and settings.
- Inbox A →
tenant:org-acme - Inbox B →
tenant:org-globex - Inbox C →
tenant:org-novu
Each has its own unread counts, archived messages, and rules. They all use a single subscriber ID (user-123).
Improvements (2)
- feat(dashboard,api-service, worker): include inbox unread count in the FCM and Expo messages available on the app badge
- feat(worker): device token invalidation logic for FCM and Expo is now enabled, in active tokens will be removed and notified via the message.failed webhook
Fixes (4)
- fix(api-service,application-generic): Passing null values when updating subscriber will now properly recognize and persist them
- fix(api-service): translation keys escaping bug caused \"\ fields when used escaped fields in the i18n files
- fix(js): notification count display for 99+ was properly fixed, where previously 100 was shown.
New Providers (1)
- iSendPro - SMS Provider