Thomas Schiavone
January 22, 2026

Table of contents
Who this guide is for
The mental model (and how to map your platform)
Tenant hierarchy: modeling real org structure (and why you’ll care)
What data belongs on a tenant (and why you’d actually store it)
The one rule that prevents tenant leaks: always send with tenant context
Targeting groups inside a tenant (roles, teams, segments)
Preferences: stop treating them as global
Tenant-scoped inbox (optional, but huge if you have in-app)
Common mistakes (and how to avoid them)
Key takeaways
Next steps
Most B2B SaaS teams don’t plan to build multi-tenant notification infrastructure. They get there when customers start asking for “our branding,” “our routing rules,” “our Slack workspace,” and “our default preferences.”
The challenge isn’t sending more notifications—it’s sending notifications with the right customer context, every time, without threading a bunch of per-customer logic through your codebase.
Courier Tenants lets you set customer-level defaults once (branding, preferences, metadata, credentials) and have Courier apply them automatically whenever you send with tenant context.
This is for developers building multi-tenant B2B platforms—where your customers are businesses, and you send notifications on their behalf to their users (employees, admins, managers).
If you’ve ever heard:
The easiest way to think about Courier Tenants is: you’re not just sending notifications to users. You’re sending notifications to users in a specific customer context.
In a multi-tenant platform, the same user can belong to multiple orgs. Their identity isn’t just “User 123.” It’s:
Those contexts have different expectations:
tenant_acme)The important part: you only get the value of Tenants when you send with tenant context consistently. See: Sending with tenants.
Real customers aren’t flat. They have departments, teams, projects, and environments—and notifications often need to respect that structure.
Courier Tenants support parent → child relationships (up to four layers) so you can model org structure directly. (Tenants overview, Tenant deep dive)
Copied!
tenant_acme (Company)├─ tenant_acme_hr (Department)│ ├─ tenant_acme_hr_recruiting (Team)│ └─ tenant_acme_hr_peopleops (Team)└─ tenant_acme_eng (Department)├─ tenant_acme_eng_platform (Team)└─ tenant_acme_eng_product (Team)
Hierarchy is less about “pretty structure” and more about inheritance:
It also keeps your model sane when customers ask for “department-level” behavior without you duplicating configuration everywhere.
A tenant shouldn’t just be “an ID.” It’s the customer context you want Courier to apply automatically whenever you send notifications on that customer’s behalf.
brand_id: make it look like them by defaultAttach a tenant’s brand once so you don’t have to pass branding choices on every send.
Value:
default_preferences: customer defaults, before users customizeSet tenant-level defaults so new users start with sensible behavior for that customer.
Value:
properties: template-friendly tenant metadataArbitrary tenant metadata that templates can reference at render time.
Value:
Common examples:
companyName, companySlugtimezone, localesupportEmail, helpCenterUrluser_profile: tenant-scoped recipient defaultsThink “defaults you want merged into the recipient profile when sending within this tenant context.”
Value:
In real white-label setups, different customers often want different delivery plumbing. Tenants can store provider credentials (like a Slack workspace token, a Microsoft Teams webhook URL, or custom SMTP credentials) so Courier can load them automatically when you send with that tenant context.
That means you don’t have to thread “which Slack workspace is this?” through every send call—you attach it to the tenant once.
parent_tenant_id: org structure + inheritanceUse this to build hierarchies and inherit shared defaults.
Value:
When a user can belong to multiple customers, a notification isn’t just “to user X.” It’s “to user X as a member of tenant Y.” Tenant context is what keeps branding, preferences, and inbox visibility scoped correctly.
See: Sending with tenants.
Copied!
import Courier from "@trycourier/courier";const courier = new Courier({apiKey: process.env.COURIER_API_KEY,});await courier.send({message: {to: {user_id: "customer_123",context: {tenant_id: "tenant_acme",},},content: {title: "Invoice available",body: "Your invoice from Acme Corp is ready.",},},});
A practical way to make this reliable in your codebase: treat tenantId as a required parameter anywhere you send notifications. If you don’t have a tenant context, you shouldn’t be sending a tenant-scoped notification.
Tenants define the customer boundary. But “groups” inside that boundary (roles, teams, segments) can live in a few places—what matters is where your source of truth is and whether you want Courier to handle fan-out.
Here are three common approaches:
Option 1: Your own DB
user_ids with to.context.tenant_id.Option 2: Courier Lists
acme.admins, acme.beta-testers) and send to the list.Option 3: Sub-tenant
Rule of thumb: if it’s authorization logic → keep it in your DB (and optionally sync to Lists). If it’s organizational structure → use sub-tenants. If it’s a segment you want Courier to fan out to → use Lists.
For more detail on higher-level targeting patterns (tenant members, nested hierarchies), see: Sending with tenants.
Most apps start with “query users in my DB, then send,” but Courier also supports tenant-level fan-out patterns that are perfect for org-wide announcements.
If you want to notify everyone in a tenant, you can send directly to the tenant:
Copied!
{"to": {"tenant_id": "tenantA"}}
Courier will fan out the send to all users who have a membership in that tenant—while applying tenant-scoped defaults (branding, preferences, metadata, and provider credentials).
include_childrenIf tenant_acme has child tenants (departments/teams), you can target everyone under the company with:
Copied!
{"to": {"tenant_id": "tenant_acme","include_children": true}}
This is the “company-wide announcement” button.
include_parentSometimes you’re sending from a sub-tenant but want to include parent members too (like a department notifying the whole company):
Copied!
{"to": {"tenant_id": "tenant_acme_hr","include_parent": true}}
In multi-tenant platforms, preferences are contextual. Users don’t have one preference profile—they have preferences per tenant context.
Courier supports tenant-scoped defaults users can override:
A pragmatic rollout:
If you’re using hierarchy, this becomes even more useful: a company-level default can apply across the org, while departments/teams override where needed.
If you provide an in-app notification feed, tenant context keeps inbox experiences from collapsing into one blended stream.
Start here: Inbox with tenants.
This pairs naturally with an org switcher:
One easy gotcha: messages sent with tenant context only show up when your Inbox SDK is initialized with the same tenantId. And if you’ve created tenant memberships (and especially if auto-infer is enabled), you still need to set tenantId when you initialize the SDK—otherwise messages can “disappear” because the SDK is looking at a different tenant inbox.
You’re probably not sending with tenant context consistently. Start here: Sending with tenants.
You probably modeled preferences globally. Make them tenant-aware: User tenant preferences.
Branding is being handled ad-hoc (per send, per template, per channel). Move the defaults into tenant configuration: Tenants overview.
Use tenant-scoped inbox rendering and tenant-scoped sends: Inbox with tenants.
tenant_id on every send to prevent branding mismatches, preference leaks, and inbox blendingA solid order of operations for implementation:
And if you want an example of a platform scaling notifications without turning it into a maintenance sink, Side’s story is a good read: How Side unified notifications.

What's the Difference Between Omnichannel & Multichannel
Most teams say "omnichannel" when they mean "multichannel," and in most cases the distinction doesn't matter much. But if you truly want to provide an exceptional customer engagement experience you should know the difference. Both involve sending messages across email, push, SMS, Slack, and in-app. They terms diverge when those channels know about each other. Multichannel means you can reach users on multiple channels. Omnichannel means those channels share state, so a user who reads a push notification won't get the same message via email an hour later. This guide breaks down the real distinctions, when the difference actually matters, and which messaging platforms deliver true omnichannel coordination.
By Kyle Seyler
February 11, 2026

A Resilient Notification Strategy for Regulated Industries
Notification compliance isn't a legal checklist—it's an infrastructure problem. In 2026, Reg E deadlines, HIPAA content rules, and TCPA consent requirements dictate your system architecture. This guide breaks down the engineering constraints of regulated notifications for fintech, healthcare, and insurance. Learn why hard-coded deadlines fail, how "alert without disclosing" works in practice, and why the smart escalation pattern (Push → SMS → Email) is the only way to satisfy both user urgency and regulatory documentation. Build systems that absorb complexity, not application code that breaks every time a state law changes.
By Kyle Seyler
February 11, 2026

The Unsubscribe Paradox: Why Making It Easier to Leave Keeps People Around
Hiding the unsubscribe link doesn't keep people subscribed. It makes them mark you as spam, and spam complaints hurt your sender reputation roughly 1000x more than unsubscribes. The brands with the lowest unsubscribe rates don't achieve it by making the door hard to find. They achieve it by making people not want to leave. This guide covers the math behind why easy unsubscribes protect deliverability, how preference centers reduce list churn, and what your unsubscribe flow should actually look like.
By Kyle Seyler
February 09, 2026
© 2026 Courier. All rights reserved.