Product
Docs
Resources
Log InSign Up

Start Routing Notifications Today!

Courier is a notification service that centralizes all of your templates and messaging channels in one place which increases visibility and reduces engineering time.

Sign-up

List API hero
COURIERPRODUCT NEWS

Introducing the Lists API: Notify Lists of Users With One API Call

Nate Munger

October 13, 2020

Companies today send user notifications across a growing number of platforms and channels. To help you send the right notification on the right channel at the right time, Courier lets you define your user preferences and store them on a recipient profile via our Profiles API.

But there’s another challenge: many times there are groups of users you want to message with the same notification triggered by the same event.

In the past, this meant tens or sometimes thousandsof API calls triggering the same notification over and over. But now, with the release of Courier’s Lists API, you’re able to create lists, subscribe recipient profiles to them, and notify every user on the list with a single Send API call.

Courier handles the message fanout – following user preferences and your channel priorities – to deliver across email, SMS, mobile push, messaging apps, and more.

1
curl --request POST \
2
--url https://api.courier.com/send/list \
3
--header 'accept: application/json' \
4
--header 'content-type: application/json' \
5
--data '{"list":"webapp.new_feature.alpha_users","event":"alpha_access_granted"}'

With the Lists API, you can easily do things like:

  • Reach every user in a shared workspace.
  • Notify all users who follow a specific project.
  • Message users who opt in to select notifications.

Wildcard Sends: Notify subscribed users, across multiple lists, with one API call

The Lists API accepts List IDs with up to four parts. Giving you plenty of flexibility to create lists for almost any use case.

  • part1
  • part1.part2
  • part1.part2.spart3
  • part1.part2.part3.part4

Following this basic pattern when defining List IDs will enable wildcard sending. This means you can send to multiple list parts within a related pattern using a single API call.

1
curl --request POST \
2
--url https://api.courier.com/send/list \
3
--header 'accept: application/json' \
4
--header 'content-type: application/json' \
5
--data '{"pattern":"webapp.new_feature.*","event":"new_feature_access_granted","brand":"W50NC77P524K14M5300PGPEK4JMJ","data":"{\"name\": \"Jane Doe\",\"age\": 27}"}'

When sending to a Pattern that matches multiple Lists, Courier will send only one notification to any user with multiple matching subscriptions.

Get started with the Lists API

For more details on how to create and send to lists, check out the Lists API reference doc. You can read more about how to name your lists and use wildcards in our Lists API help article.

Read more

Courier Live: First Look at Notifying Multiple Recipients using Lists

Start Routing Notifications Today!

Courier is a notification service that centralizes all of your templates and messaging channels in one place which increases visibility and reduces engineering time.

Sign-up

More from Courier

automate-slack-msteams-nodejs-thumbnail
COURIER

Automate Slack and MS Teams Notifications using Node.js

Automate messages via Slack, MS Teams, and any other channel of your choice from your Node.js applications.

Shreya Gupta

Shreya Gupta

March 22, 2023

automate-slack-msteams-thumbnail
COURIER

Automate Slack and Microsoft Teams Notifications using Python

How to send and automate notifications via Slack and Microsoft Teams, using Courier to make these tools a seamless part of how your app communicates with users.

Shreya Gupta

Shreya Gupta

March 15, 2023

Build your first notification in minutes

Send up to 10,000 notifications every month, for free.

Get started for free

Email & push notification

Build your first notification in minutes

Send up to 10,000 notifications every month, for free.

Get started for free

Email & push notification

Product

Pricing

Providers

Developers

Documentation

API

Libraries

Status

© 2023 Courier. All rights reserved.