Blog

Notification Platform for Developers: API, CLI, and MCP

Kyle SeylerKyle SeylerJanuary 26, 2026
The Notification Platform Developers Choose — cover

TLDR

Courier is the customer messaging platform for humans and AI agents, not a dashboard with an API added later: everything in the UI is available via the API, CLI, and MCP server.

What matters:

  • One API, every channel: Single /send endpoint for email, push, SMS, Slack, in-app
  • API primitives that scale: /profiles, /lists, /audiences, /bulk, /journeys
  • 7 typed server SDKs: Node, Python, Ruby, Go, Java, PHP, C#
  • CLI and MCP for testing: Humans, CI/CD, and coding agents use the same tools
  • Batch, Throttle, Send to Digest: Built into Journeys as nodes
  • SOC 2 Type II: Plus HIPAA and PCI DSS programs
  • Localization on every plan: Not locked behind enterprise pricing

Who uses it: Twilio (a customer and an investor) and LaunchDarkly (feature release workflows).


AI agents changed what "notifications" means

AI agents don't wait for you to ask. They run tasks on their own, and when they finish, they have to tell someone: a morning briefing, a stock alert, a pull request ready for review.

That changes the infrastructure question. It used to be "how do I send a password reset email?" Now it's "how do I notify people across channels when an autonomous system finishes a task, without burying them in alerts?"


The API: one endpoint, every channel

Provider APIs make you think in channels: SendGrid for email, Twilio for SMS, Firebase Cloud Messaging and APNs for push. You write the routing logic, handle failover, and build the orchestration layer yourself.

Courier's API inverts this. One endpoint. Every channel.

Terminal
curl -X POST https://api.courier.com/send \
  -H "Authorization: Bearer $COURIER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "message": {
      "to": { "user_id": "user-123" },
      "template": "nt_01kx4h2jdafq8bk9aftxak4b40",
      "data": { "name": "Kyle" }
    }
  }'

That request can deliver to email, push, SMS, Slack, MS Teams, or in-app inbox. Same payload. The routing, channel selection, user preferences, and provider failover happen on Courier's side.

API primitives

EndpointWhat it does
/sendSingle endpoint for all channels. Templates or inline content.
/profilesCreate, merge, and update user profiles: contact details and custom attributes.
/listsSubscriber lists for broadcasts. Add and remove users, send to entire lists.
/audiencesSegments defined by a filter. The filter decides which users belong.
/messagesQuery delivery status, history, and rendered content. Debug why something didn't arrive.
/bulkHigh-volume sends with job tracking. Don't loop through /send 10,000 times.
/journeysInvoke multi-step workflows from your code, then inspect each run step by step.

7 typed SDKs

The server SDKs are generated from Courier's OpenAPI spec and fully typed, so they track the API as it changes. Full SDK documentation.

LanguagePackage
Node.js@trycourier/courier
Pythontrycourier
Rubytrycourier
Gogithub.com/trycourier/courier-go/v4 (strongly typed request structs)
Javacom.courier:courier-java
PHPtrycourier/courier
C#TryCourier

Plus client SDKs for iOS, Android, React Native, and Flutter.


CLI and MCP: how you test at scale

The Courier CLI and MCP server are direct interfaces to the API, so you and your coding agent can test notifications from a terminal or a chat instead of a dashboard.

CLI for humans and CI/CD

The CLI is a native binary, so there's no runtime to manage after you install it.

Install:

Terminal
npm install -g @trycourier/cli
export COURIER_API_KEY="YOUR_COURIER_API_KEY"

Then use it:

Terminal
# Send a notification
courier send message \
  --message.to '{"user_id": "user123"}' \
  --message.template "nt_01kx4h2jdafq8bk9aftxak4b40" \
  --message.data '{"name": "Kyle"}'

# Inspect what was sent
courier messages retrieve msg_abc123
courier messages history msg_abc123
courier messages content msg_abc123

# Manage profiles
courier profiles retrieve user123
courier profiles create user123 --profile '{"email": "kyle@example.com"}'

# Start a journey run
courier journeys invoke JOURNEY_ID --user-id user123 --data '{"name": "Kyle"}'

# Bulk operations
courier bulk create-job --message '{"event": "nt_01kx4h2jdafq8bk9aftxak4b40"}'
courier bulk add-users --job-id JOB_ID \
  --user '{"to": {"user_id": "user123"}, "profile": {"email": "kyle@example.com"}}'
courier bulk run-job JOB_ID

Each command maps to an API endpoint, so anything the API does, you can script in CI: send a test notification from your pipeline and check its history before you merge. View source on GitHub.

MCP for coding agents

Courier's MCP server connects Claude Code, Cursor, Codex, VS Code, Windsurf, and other MCP clients to your Courier workspace. It exposes 170+ tools that cover the API.

Terminal
claude mcp add --transport http courier https://mcp.courier.com --header api_key:YOUR_COURIER_API_KEY

Now your coding agent can:

  • Send a notification to test a flow it built
  • Pull a message's history and rendered content to debug why it didn't render correctly
  • Update profiles to set up test data
  • Invoke journeys that use batch, throttle, or digest logic

Your coding agent doesn't have to stop at writing notification code. It can send a real message, check delivery and the rendered output, and fix what's broken in the same conversation, before you review the PR. No switching to Postman or a dashboard.

Mintlify docs

Courier's documentation runs on Mintlify, the same documentation platform Perplexity and Anthropic use. The changelog tracks what ships.


Batch, Throttle, Digest: built into Journeys

Journeys are Courier's multi-step workflows. Batching, throttling, and digests are nodes on the canvas, so you configure them instead of writing the logic yourself:

Batch: Group multiple events into a single notification. A batch releases when it hits a max item count, after a quiet period with no new events, or at a max wait ceiling. An AI agent completing 50 tasks overnight doesn't send 50 notifications.

Throttle: Limit how many times a user, or everyone, passes a point in the journey within a time period. Prevent alert fatigue without rate limiting in your code.

Send to Digest: Add events to a digest that a subscription topic owns, released on the user's schedule. Daily activity digests, weekly reports, aggregated alerts.

These aren't enterprise add-ons. They're core Journeys nodes you build on the visual canvas or create through the API.


Compliance that doesn't slow you down

SOC 2 Type II means an auditor checked that Courier's security controls actually worked over a one-year audit period. A Type I report only covers how the controls were designed on a single day. Courier also maintains HIPAA and PCI DSS programs, and a HIPAA BAA is available through sales. Read more in how Courier became SOC 2 compliant.

For your vendor review:

If you're building in healthcare, fintech, or enterprise, your security team will ask for this. Courier has the paperwork.


Who builds on Courier

Twilio uses Courier for its own platform. Twilio is both a Courier customer and an investor.

Twilio's product teams were sending in-app updates through a mix of Segment, SendGrid, and hand-coded logic, on a platform that over 10 million developers depend on. Its team put it this way: "We chose Courier because the depth of the inbox and multi-channel integrations allowed us to choose one notification platform for all products and teams at Twilio."

Twilio Messaging API

LaunchDarkly powers feature releases with Courier.

LaunchDarkly's Feature Workflows product lets engineering teams automate flag releases with approvals and scheduling. When the right person doesn't know their approval is needed, the whole system breaks down.

Courier sends the notifications for these workflows. Adding Slack as a channel cut LaunchDarkly's internal approval times, and a webhook channel reaches customers through any Slack workspace with LaunchDarkly installed.


Handoff without losing control

Sending is the easy part. The hard part is the boundary between you and the product and marketing people who need to change the content.

Bad solutions make you a bottleneck for copy changes. Worse solutions give non-technical users tools that bypass code review and break things in production.

Multi-channel template editor

Courier's Design Studio lets you build templates for email, push, SMS, and in-app in one place.

Drag-and-drop content blocks. Per-channel content. Test-data previews. Product managers and marketers can update notification content without filing engineering tickets, and you can also manage the same templates as code through the Templates API.

Template WYSIWYG

Localization on every plan

Courier's localization system stores each translation on the element it belongs to. You export the strings through the API, send them to your translation tool, and write them back one locale at a time. Checksums tell you which strings changed since the last export, so you only re-translate what moved.

Localization is on every plan, including the free Developer plan.

Journeys for product managers

Journeys give product managers a visual canvas for notification workflows. Branches. Delays. Throttles. Timing controls.

You set up the trigger and the data your code passes in. Product managers adjust the flow. A change like "can we add a 24-hour delay before the follow-up?" doesn't need a deploy.

product notifications


Observability that helps you debug

Dashboards are for demos. Logs are for debugging.

When a notification doesn't deliver, you need to know why. Not only that it failed, but which step failed, what the provider returned, and what the payload looked like.

Datadog and New Relic integrations

Send Courier's metrics and logs to Datadog, New Relic, or any OpenTelemetry endpoint. Notification delivery lives alongside application performance, not in a separate dashboard you forget to check. Observability integrations are on the Enterprise plan.

Filterable logs

Filter message logs by:

  • Recipient (an email address or user ID: what happened to this person?)
  • Notification (what happened to this template?)
  • Status (show me everything undeliverable)
  • Errors (messages with an error anywhere in their timeline)
  • Provider (are SendGrid failures spiking?)
  • Date range

Each message's detail view has a timeline of every event, including the provider's raw response. To debug a single send from your terminal, pass its message ID to courier messages history.

Provider failover visibility

When a provider fails, Courier retries transient errors and then moves to the next provider on the channel. Every attempt shows in the message's log. You see what failed and what delivered, not an abstracted "delivered" status.


What this looks like in practice

Setup

Terminal
# Install the CLI
npm install -g @trycourier/cli
export COURIER_API_KEY="YOUR_COURIER_API_KEY"

# Add MCP to Claude Code
claude mcp add --transport http courier https://mcp.courier.com --header api_key:YOUR_COURIER_API_KEY

Send your first notification

Python
from courier import Courier

client = Courier()  # reads COURIER_API_KEY from your environment

response = client.send.message(
    message={
        "to": {"user_id": "user_123"},
        "template": "nt_01kx4h2jdafq8bk9aftxak4b40",
        "data": {
            "name": "Kyle",
            "action_url": "https://app.example.com/get-started",
        },
    },
)

print(f"Request ID: {response.request_id}")

Check delivery from the CLI

For a single recipient, the request ID is also the message ID, so you can pass it straight to the CLI:

Terminal
courier messages history msg_abc123

Let your AI assistant build and test it

With MCP configured, your coding agent can do more than send messages. It can build notification workflows and check that they work:

"Create a journey that sends a welcome email, waits 24 hours, then sends an in-app inbox message with setup tips. Invoke it for user_123."

Claude Code creates the journey, invokes it, and checks the run and the message logs. You review the implementation, not the process.

"The onboarding email isn't rendering the user's company name. Debug it."

Claude pulls the message content and history, finds that company_name is null in the payload, and suggests the fix. Testing and debugging happen in the same conversation where you're writing code.


What you get with Courier

If you're comparing notification platforms, here's what Courier covers:

FeatureCourier
Template editorMulti-channel (email, push, SMS, in-app)
LocalizationAll plans
Batch, Throttle, DigestJourneys nodes
MCP server170+ tools that cover the API
SDKsSeven typed server SDKs, generated from the OpenAPI spec
SOC 2Type II, plus HIPAA and PCI DSS programs
Provider failoverAutomatic, with every attempt in the message log

If you're evaluating Knock, Novu, or building in-house, run your own comparison. Check each one's localization pricing, template editor, SDK types, and SOC 2 report. On MCP depth, Courier's server has 170+ tools and Novu's has 23.


The bottom line

Notification infrastructure should work like the rest of your stack: CLI-first, type-safe, observable, compliant, and designed so you build it and product managers iterate on it.

Get started with Courier or add the MCP server to your AI coding assistant.

The Developer plan is free and includes 10,000 sends a month, and pricing is public. No sales call required.