> ## 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.

# Workspaces

> Courier's top-level container for brands, providers, templates, API keys, and users, and how to choose between a workspace, an environment, and a tenant.

A workspace is the top-level container for everything in Courier.

It holds brands, providers, templates, API keys, user profiles, and analytics, and shares none of them with other workspaces. Environments inside a workspace separate release stages, so you build and test without touching live traffic.

## Workspace, environment, or tenant

Courier has three isolation layers, and they stack: a workspace contains environments, and within an environment you send to tenants. Pick the layer whose boundary you need. Choosing a workspace where you needed a tenant means maintaining two of every template.

| Layer | What it isolates | Use it when | ID |
| - | - | - | - |
| **Workspace** | Everything: brands, providers, templates, API keys, users, analytics | You need separate billing | `wrk_` |
| **Environment** | Config and data within a workspace (templates, integrations, keys, logs) | You want test and production (or staging) separated in one workspace | `env_` |
| **Tenant** | A recipient segment's brand, default preferences, and templates | You serve multiple customer organizations (B2B SaaS, white-label) from one account | a string you choose |

[Tenants](https://www.courier.com/docs/tenants/overview.md) covers when and how to use them.

## Environments and API keys

Every workspace starts with Production and Test environments, and you can add up to 18 custom ones, for 20 in total. Each API key belongs to one environment. [Environments and API keys](https://www.courier.com/docs/workspaces/environments.md) covers which key to use and how to move templates between environments.

## US and EU workspaces

If you use both the US and EU datacenters, you have a separate workspace in each. Each one keeps its own data in its own datacenter, and nothing is shared between them. See [Regional datacenters](https://www.courier.com/docs/workspaces/datacenters.md).

[Billing](https://www.courier.com/docs/workspaces/billing.md) covers what Courier bills for, including how a new workspace joins your plan.

## FAQ

> [accordion] Can I copy templates between workspaces?
>
> The **Migrate template** flow copies a template and its dependencies to another environment or another workspace in the same datacenter. Provider integrations aren't copied, so configure them in the destination. [Migrate a template](https://www.courier.com/docs/workspaces/environments.md#migrate-a-template-between-environments) has the details.
>
> To copy a template between your US and EU workspaces, use the [Templates API or the CLI](https://www.courier.com/docs/design/templates/api.md#manage-templates-as-code). Read it with a key from one workspace, then create it with a key from the other.
