Blog
COURIER

First Look at Notifying Multiple Recipients using Lists

Aydrian Howard

September 30, 2020

Courier Live Header

Table of contents

Using Lists with the Courier Node.js Library

Check out the video below to watch us:

  • Give an overview of the Lists feature
  • Discuss list organization while creating a couple lists
  • Subscribe new and existing recipients to a list
  • Send to a list using the listId and pattern methods
  • View the List Sends in the Courier Logs

Be sure to Like the video and Subscribe to our YouTube channel.

Using Lists with the Courier Node.js Library

During the stream we used the newly updated Courier Node.js SDK to work with our lists. During this we ran into a few issues and shortly after the stream ended, we released a patch to address them. The following code uses v1.6.1 of the SDK which can be installed using yarn or npm.

Copied!

> npm install @trycourier/courier

Creating a List

A list can be created ahead of time or when a recipient subscribes to a list that doesn't exist. We created a couple lists using both methods. List IDs are composed of up to 4 parts separated by a dot. For our example, we are creating a list for Courier Live Alerts so we'll use courier.devrel.live. You can learn more about List ID Pattern guidelines in our help center.

Copied!

const { CourierClient } = require("@trycourier/courier");
const courier = CourierClient({ authorizationToken: "<AUTH_TOKEN>" });
const listId = "courier.devrel.live";
const main = async () => {
  await courier.lists.put(listId, {
    name: "Weekly Product Updates"
  });
  const list = await courier.lists.get(listId);
  console.log(list);
};
main();

Because the list.put method doesn't return anything, I also added a call to the list.get method to show the list had been added.

Subscribing to a List

To add a recipient to a list, you first need to make sure they have a Profile stored in Courier. Here is how you would add a new recipient to a list that will be created on the fly.

Copied!

const { CourierClient } = require("@trycourier/courier");
const courier = CourierClient({ authorizationToken: "<AUTH_TOKEN>" });
const listId = "courier.product.live";
const main = async () => {
  const { status } = await courier.mergeProfile({
    recipientId: "CUSTOMER94107",
    profile: {
      email: "customer@company.com",
      given_name: "Customer",
      custom: {
        twitter: "https://twitter.com/company"
      }
    }
  });
  console.log(status);
  await courier.lists.subscribe(listId, "CUSTOMER94107");
  const { results } = await courier.lists.findByRecipientId("CUSTOMER94107");
  console.table(results);
};
main();

Here we created a new recipient profile using the Profiles API and then subscribed them to a new list. Because the lists.subscribe method doesn't return anything, I also added a call to the list.findByRecipientId method to show that the recipient was added to the newly created list.

Sending to a List

Now that we have a couple lists, we can send a notification to them. We can target a specific list by sending using its List ID

Copied!

const { CourierClient } = require("@trycourier/courier");
const courier = CourierClient({ authorizationToken: "<AUTH_TOKEN>" });
const listId = "courier.devrel.live";
const data = {
  title:
    "Courier Live: First Look at Notifying Multiple Recipients using Lists",
  hosts: [
    {
      name: "Aydrian",
      twitter: "https://twitter.com/itsaydrian"
    },
    {
      name: "Danny",
      twitter: "https://twitter.com/DannyDouglass"
    }
  ]
};
const main = async () => {
  try {
    const { messageId } = await courier.lists.send({
      event: "COURIER_LIVE_ALERT",
      list: listId,
      data
    });
    console.log(messageId);
  } catch (e) {
    console.log(e.message);
  }
};
main();

We can target multiple lists by using a pattern. We could send to all subscribers under courier by using the pattern courier. or we could target all the live lists with the pattern courier.*.live. You can learn more about patterns in our help center. Let's send to every list under courier.

Copied!

const { CourierClient } = require("@trycourier/courier");
const courier = CourierClient({ authorizationToken: "<AUTH_TOKEN>" });
const pattern = "courier.**";
const data = {
  title:
    "Courier Live: First Look at Notifying Multiple Recipients using Lists",
  hosts: [
    {
      name: "Aydrian",
      twitter: "https://twitter.com/itsaydrian"
    },
    {
      name: "Danny",
      twitter: "https://twitter.com/DannyDouglass"
    }
  ]
};
const main = async () => {
  try {
    const { messageId } = await courier.lists.send({
      event: "COURIER_LIVE_ALERT",
      pattern,
      data
    });
    console.log(messageId);
  } catch (e) {
    console.log(e.message);
  }
};
main();

Courier will handle gathering and de-duping all the recipients that satisfy the pattern. Check out the Lists API Reference documentation to learn about all that can be done with lists.

Is there something you’d like to see us do using Courier? Let us know and it might be the subject of our next Courier Live. We stream a new Courier Live every Wednesday at noon Pacific. Follow us on Twitch to be notified when we go live.

-Aydrian

Similar resources

healthcare messaging
Notifications LandscapeCourier

The $5.9 Billion Rebuild: Why Healthcare Is Replacing Its Notification Infrastructure

The clinical alert and notification market will reach $5.9 billion by 2032, growing at 12.3% annually. That number represents hardware, software, and services combined. It also represents healthcare's admission that pagers and overhead speakers aren't enough anymore. Healthcare organizations are rebuilding how critical information moves through their systems. Regulatory pressure, workforce shortages, and value-based care economics are forcing the investment. The software layer is where outcomes are won or lost.

By Kyle Seyler

February 02, 2026

a guide for ai assisted development: Notification infrastructure
CourierNotifications LandscapeEngineering

Vibe Coding Notifications: How to Use Courier with Cursor or Claude Code

Courier's MCP server lets AI coding tools like Cursor and Claude Code interact directly with your notification infrastructure. Unlike Knock and Novu's MCP servers that focus on API operations, Courier's includes embedded installation guides for Node, Python, Flutter, React, and other platforms. When you prompt "add Courier to my app," your AI assistant pulls accurate setup instructions rather than relying on outdated training data. OneSignal's MCP is community-maintained, not official. Courier supports 50+ providers, native Slack/Teams integration, drop-in inbox and preference components, and a free tier of 10,000 notifications/month. Configure in Cursor with "url": "https://mcp.courier.com" and "headers": { "api_key": "YOUR_KEY" }.

By Kyle Seyler

January 22, 2026

b2b customer engagement guide
Notifications LandscapeCourier

The Complete Guide to B2B Customer Engagement

Courier provides the notification infrastructure layer for B2B customer engagement, routing messages across email, SMS, push, in-app, Slack, and Teams based on user preferences and product events. Unlike building notification systems in-house—which takes months of engineering time for features like multi-channel routing, preference management, and delivery tracking—Courier handles this infrastructure so product teams can focus on engagement strategy. B2B customer engagement requires multiple layers: notification infrastructure (Courier), customer data platforms (Segment), product analytics (Mixpanel/Amplitude), and channel-specific tools. Companies with strong engagement programs see 15-25% churn reduction. The key is connecting product events to customer communication at the right moment through the right channel, handling complexity like multiple users per account with different notification needs across work channels.

By Kyle Seyler

January 20, 2026

Multichannel Notifications Platform for SaaS

Products

Platform

Integrations

Customers

Blog

API Status

Subprocessors


© 2026 Courier. All rights reserved.