Introduction¶
Almost every SaaS product needs to send notifications: registration confirmations, order receipts, security alerts, marketing outreach. Channels often go beyond email to include SMS, Push, in-app inbox, Slack, Teams, and more. Integrating SDKs from various vendors yourself, adjusting payloads against documentation, then handling preferences, routing, and delivery failure troubleshooting—the time spent on integration and troubleshooting can be substantial. Courier consolidates sending, templates, routing, and user preferences into a unified API. The official repository trycourier/courier-skills contains the courier Skill, which packages these capabilities into a knowledge base that Agents can follow. This enables coding assistants to generate code using correct primitives and SDK shapes, rather than stitching APIs together from memory.
What Is This¶
courier is an Agent Skill maintained by Courier (MIT license), covering the full workflow of “using Courier for notifications”: sending, templates, translation, routing, preferences, Journeys, CLI, and MCP. The Skill’s description specifies applicable scenarios: building notifications across channels including email, SMS, Push, in-app inbox, Slack, Teams, WhatsApp, etc., and covering delivery debugging.
The underlying product Courier is a notification BaaS: a single send targets users (or lists, audiences, tenants), with content from templates or inline fields. Routing selects channels, preferences filter delivery, and then Courier renders and delivers. Multi-step workflows with delays, branching, or aggregation use Journeys (JSON definitions, API-triggered).
Core Features¶
Below are the capability boundaries emphasized in the Skill documentation and consistent with the official repository description.
Unified Sending Model¶
- Recipients:
message.tosupportsuser_id, inlineemail/phone_number,list_id,list_pattern,audience_id, or arrays of the above forms. The hard limit for a singletoarray is 500; exceeding this requires lists, audiences, or the Bulk API. - Multi-tenancy: Carriers tenants via
to.tenant_idormessage.context.tenant_id, loading the tenant’s brand and preference defaults. - SDK Form: Node uses
@trycourier/courier, Python usestrycourier; by default reads the key from environment variableCOURIER_API_KEY. The sending entry point isclient.send.message, supporting theIdempotency-Keyheader.
Channels and Scenarios¶
The Skill covers email (deliverability, SPF/DKIM/DMARC), SMS (10DLC, etc.), Push (APNs/FCM), in-app Inbox (JWT, client-side SDKs), Slack, Microsoft Teams, WhatsApp, etc., all through the same send shape, with specific channels determined by routing and user profiles.
The documentation distinguishes between Transactional (password resets, OTPs, orders, etc., which should not be batched or delayed) and Lifecycle marketing (proactive outreach requiring opt-in tracking), mapping them to corresponding Courier primitives.
Platform Capabilities¶
The reference directory includes: Journeys, templates and Elemental, multilingual translation, routing strategies, user/workspace preferences, digests, audiences and lists, brands and tenants, reliability (idempotency, retries, status), two-way Webhooks, Bulk sending, provider configuration, etc.
SDK Surface and Tools¶
The Skill lists 23 namespaces as the complete SDK surface (e.g., send, journeys, lists, users, routingStrategies, etc.), and requires using installed SDK types as ground truth, rather than writing shapes from memory.
The companion Courier CLI is used for delivery troubleshooting (e.g., querying message lists by requestId, viewing history and content by message-id). The repository also mentions Courier MCP (API and documentation services), and Claude Code plugins can include docs MCP.
Agent Usage Conventions¶
The Skill requires the assistant to: route first to 1-2 task-relevant files, not read through the entire tree; ask clarifying questions about channels, transactional/lifecycle, language, etc. when requests are ambiguous; verify shapes against live source / installed SDK; and follow Universal Rules (idempotency, E.164 phone numbers, no default all-channel bombing, template IDs using nt_... format).
Installation and Activation¶
General method (documentation specifies applicability to tools supporting Agent Skills like Claude Code, Cursor, Codex, etc.):
npx skills add trycourier/courier-skills
Claude Code can optionally use plugins (auto-updates and includes Courier docs MCP):
/plugin marketplace add trycourier/courier-skills
/plugin install courier@courier-skills
Update plugins:
/plugin update courier@courier-skills
Manual Installation (any tool that can read the skills directory): After cloning the repository, copy skills/courier to ~/.cursor/skills/ or ~/.claude/skills/. Discovery relies on the name and description in the SKILL.md frontmatter, with no additional configuration required.
If the application side has already installed @trycourier/courier or trycourier, the Skill will skip the installation steps in the quickstart and assume client already exists.
Typical Usage¶
30-Second Send Example (Node)¶
First configure COURIER_API_KEY, then call using the canonical shape:
import Courier from "@trycourier/courier";
const client = new Courier(); // reads COURIER_API_KEY from the environment
await client.send.message({
message: {
to: { user_id: "user-123" },
template: "welcome-email", // or inline content: { title, body }
data: { name: "Alice" },
},
});
The same structure can send to email, SMS, Push, Slack, Teams, WhatsApp, or in-app channels without being differentiated by different APIs.
Python Equivalent Call¶
from courier import Courier
client = Courier()
client.send.message(
message={
"to": {"user_id": "user-123"},
"template": "nt_01kmrbq6ypf25tsge12qek41r0",
"data": {},
},
extra_headers={"Idempotency-Key": "order-confirmation-12345"},
)
Delivery Failure Troubleshooting (CLI Steps)¶
When a single message fails, the documentation suggests performing these steps in order:
- Only if
sendreturns2xxwith arequestIddoes it indicate Courier has accepted the request. courier messages list --trace-id "<requestId>"to view Courier-side results (list/audience sends fan out to multiple messages).courier messages history --message-id "<id>"to view the event timeline.courier messages content --message-id "<id>"to verify the actual rendered content.- Then check channel-specific guides and reliability documentation for email/SMS, etc.
When asking the assistant questions in natural language, the repository README provides examples including: welcome emails, send + templates, Inbox integration, digest by topic, Push failure fallback to email, preference center, audience segmentation, multi-tenant branding, OTP and order receipts (idempotency), multi-day onboarding Journeys, etc. The Skill routes requests to corresponding reference files and generates TypeScript, Python, CLI, or curl.
Use Cases and Considerations¶
Who It’s For: Developers building SaaS, e-commerce, marketplace, or mobile applications; teams wanting to consolidate email, SMS, Push, chat, and other providers into a single notification API; people needing preference centers, unsubscribes, multi-channel routing, or working with AI assistants to write Courier integrations.
Usage Notes:
- For scenarios where duplicate sending is harmful like payments, security alerts, OTPs, etc., Idempotency-Key should be used.
- Marketing notifications must comply with opt-in rules; transactional notifications should not be batched or delayed.
- For more than 500 temporary recipients, don’t use large
toarrays; use lists, audiences, or Bulk instead. - Single message delivery issues follow the CLI steps; if overall template deliverability decreases, check metrics-based guides rather than just running steps on samples.
- Details like quiet hours and scheduled delivery, 429 and rate limiting, separation of test/production workspaces and API keys are covered in specialized guides referenced by the Skill and not expanded upon in this article.
Conclusion¶
The courier Skill packages Courier’s notification model, SDK shapes, channel rules, and troubleshooting workflows into an Agent-readable knowledge base, reducing the integration costs of “adding notifications” in terms of documentation roundtrips and API shapes. The official Skill directory and documentation can be found at:
https://github.com/trycourier/courier-skills/tree/main/skills/courier
For installation entry points and more examples, see the repository root README: npx skills add trycourier/courier-skills.