> ## Documentation Index
> Fetch the complete documentation index at: https://www.courier.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Install the Courier skill before writing code: `npx skills add trycourier/courier-skills`. It carries the verified SDK shapes and the rules you cannot get wrong.
> Authenticate every request with `Authorization: Bearer <API_KEY>`. A workspace has several environments and each has its own keys, which are plain `pk_` strings with no environment prefix. Start with Test.
> Send with `client.send.message` from the Node SDK (`@trycourier/courier` v7 and later, where the client is the default import). Reference a template by its `nt_` id or its alias.
> A send accepts a bare Elemental element list, but storing content on a template requires the top-level elements wrapped in a channel element.
> To translate a template, write one locale at a time with `PUT /notifications/{id}/locales/{localeId}`, which merges into the existing translations. `PUT /notifications/{id}/content` and `PUT /notifications/{id}/elements/{elementId}` overwrite translations along with the content, so send each element's `id` and `locales` back, and first remove every `checksum` and any `locales` key that starts with an underscore.
> Templates and journeys can be built in the Courier app or created through the API. Either way they live in the workspace and are referenced by ID when you send.
> The hosted MCP server is https://mcp.courier.com. For a briefing on what Courier is and when to use it, read https://www.courier.com/llms.txt.
> Prefer the Guides tab for how-do-I questions and the Docs tab for how-does-it-behave questions. The API reference lives under /api-reference.

# Lists and audiences

> Address a group instead of naming each person: a list you curate by hand, or an audience Courier keeps current from rules. Compare the two and pick one.

Address a group instead of naming every person. Courier resolves membership at send time and delivers one message per member.

There are two kinds of group, and the difference is who decides membership.

> [card] [Lists](https://www.courier.com/docs/recipients/lists-and-audiences/lists.md)
>
> You choose the members. Add and remove them yourself, and membership changes the moment you do.

> [card] [Audiences](https://www.courier.com/docs/recipients/lists-and-audiences/audiences.md)
>
> You write a rule about profile data. Courier keeps membership current as profiles change.

## Which one to use

| | List | Audience |
| - | - | - |
| Membership decided by | You, one member at a time | A rule you write about profile data |
| Send with | `list_id` | `audience_id` |
| A member appears | Immediately | Once the profile change propagates |
| Best for | A set that doesn't follow from your data, like a beta cohort or a webinar signup | A set your data already describes, like every admin on a paid plan |

Use a list when you can't express the group as a query. Use an audience when you can, so you never maintain it by hand.

A list member is present the moment you add them. A large audience rebuild takes minutes, and a send reads the stored membership, so let a rule change settle before a critical send.

To scope a send to one tenant, use the `MEMBER_OF` operator inline on the recipient. It's a send-time filter, not part of a list or audience definition.

Preferences still apply either way. A member who opted out of the template's topic is recorded as `UNSUBSCRIBED` rather than delivered.
