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

# Migrate from Braze

> Move transactional flows from Braze canvases and campaigns to Courier journeys and templates, with concept and API mappings and a step-by-step plan.

Plan and run a migration of your transactional notification flows from Braze to Courier.

Still deciding? Read [Courier vs Braze](https://www.courier.com/guides/courier-vs-braze).

> [!NOTE]
>
> Braze is a marketing automation platform: campaigns, analytics, and customer engagement. Only the transactional and product notification workflows move to Courier. Marketing campaign orchestration is outside its scope.

## Map Braze concepts to Courier

| Braze | Courier |
| - | - |
| [Campaigns](https://www.braze.com/docs/user_guide/engagement_tools/campaigns/) | [Templates](https://www.courier.com/docs/design/templates/overview.md) + [Send API](https://www.courier.com/docs/send/overview.md) |
| [Canvas](https://www.braze.com/docs/user_guide/engagement_tools/canvas/) | [Journeys](https://www.courier.com/docs/journeys/overview.md) |
| [Segments](https://www.braze.com/docs/user_guide/engagement_tools/segments/) | [Audiences](https://www.courier.com/docs/recipients/lists-and-audiences/audiences.md) |
| [User Profiles](https://www.braze.com/docs/user_guide/data/unification/user_data/) | [Users / Profiles](https://www.courier.com/docs/recipients/overview.md) |
| [Subscription Groups](https://www.braze.com/docs/user_guide/message_building_by_channel/sms_mms_rcs/subscription_groups/) | [Preferences](https://www.courier.com/docs/recipients/preferences/overview.md) |
| [Content Cards](https://www.braze.com/docs/user_guide/message_building_by_channel/content_cards/) | [Inbox](https://www.courier.com/docs/in-app/overview.md) |
| [Connected Content](https://www.braze.com/docs/user_guide/personalization_and_dynamic_content/connected_content/) | `data` on send + [Fetch data node](https://www.courier.com/docs/journeys/nodes/fetch-data.md) |
| [Currents](https://www.braze.com/docs/user_guide/data/distribution/braze_currents/) | [Outbound Webhooks](https://www.courier.com/docs/monitor/webhooks/outbound.md) |
| [Liquid templating](https://www.braze.com/docs/user_guide/personalization_and_dynamic_content/liquid/) | [Handlebars variables](https://www.courier.com/docs/design/templates/variables.md) |

### Campaigns and templates

Braze [campaigns](https://www.braze.com/docs/user_guide/engagement_tools/campaigns/) bundle content, audience targeting, scheduling, and delivery into one resource. Courier splits them: [templates](https://www.courier.com/docs/design/templates/overview.md) own the content, and the [Send API](https://www.courier.com/docs/send/overview.md) or [Journeys](https://www.courier.com/docs/journeys/overview.md) handle delivery.

Your product team updates copy in Design Studio without touching delivery logic. Your engineers change routing or timing without breaking template content.

One template holds content for every channel (email, SMS, push, chat, inbox). Build it with drag-and-drop blocks, or define it in [Elemental](https://www.courier.com/docs/design/elemental/overview.md) JSON.

### Canvas and Journeys

Braze [Canvas](https://www.braze.com/docs/user_guide/engagement_tools/canvas/) is a visual builder for multi-step, multi-channel journeys. Courier [Journeys](https://www.courier.com/docs/journeys/overview.md) do the same for transactional flows: [delays](https://www.courier.com/docs/journeys/nodes/delay.md), [branching](https://www.courier.com/docs/journeys/nodes/branch.md), [batching](https://www.courier.com/docs/journeys/nodes/batch.md), [digests](https://www.courier.com/docs/journeys/nodes/digest.md), and [cancellation](https://www.courier.com/docs/journeys/nodes/cancel.md).

| Canvas Step | Courier Equivalent |
| - | - |
| Message step | [Send node](https://www.courier.com/docs/journeys/nodes/send.md) (references a template) |
| Delay step | [Delay node](https://www.courier.com/docs/journeys/nodes/delay.md) |
| Decision split | [Branch node](https://www.courier.com/docs/journeys/nodes/branch.md) |
| Action paths | [Branch node](https://www.courier.com/docs/journeys/nodes/branch.md) with conditions |
| Audience paths | [Audiences](https://www.courier.com/docs/recipients/lists-and-audiences/audiences.md) + [branch](https://www.courier.com/docs/journeys/nodes/branch.md) conditions on profile data |

Canvas entry criteria become [journey triggers](https://www.courier.com/docs/journeys/invoke.md): an API invoke, an inbound webhook, a Segment event, or a user joining an audience. Build journeys [in the UI](https://www.courier.com/docs/journeys/build.md) or through the [Journeys API](https://www.courier.com/docs/journeys/build.md).

### Segments and audiences

Braze [segments](https://www.braze.com/docs/user_guide/engagement_tools/segments/) filter on user attributes, behaviors, and events. Courier [Audiences](https://www.courier.com/docs/recipients/lists-and-audiences/audiences.md) group users dynamically by profile attributes. Define the filter rules once and Courier keeps membership current as profiles change.

You can also target a [List](https://www.courier.com/docs/api-reference/lists/list-lists.md), a static subscriber group, or send to individual users.

### Users and profiles

Courier [profiles](https://www.courier.com/docs/recipients/overview.md) store a recipient's email, phone, push tokens, and any custom properties you personalize with. Profiles accept nested JSON, so structured data like account tiers, team roles, or feature flags fits as-is.

Create profiles ahead of time through the API, or identify users inline at send time. Pass a `user_id` that doesn't exist yet and Courier creates the profile.

### Subscription groups and preferences

Braze [subscription groups](https://www.braze.com/docs/user_guide/message_building_by_channel/sms_mms_rcs/subscription_groups/) manage opt-in and opt-out per channel. Courier [Preferences](https://www.courier.com/docs/recipients/preferences/overview.md) go further. Users opt out by channel, category, or notification topic, and Courier enforces that at send time.

Courier also ships a [hosted preference page](https://www.courier.com/docs/guides/build-a-preference-center.md#hosted-page) and embeddable [React components](https://www.courier.com/docs/guides/build-a-preference-center.md#embedded-component) for a preference center inside your app.

### Content Cards and Inbox

Braze [Content Cards](https://www.braze.com/docs/user_guide/message_building_by_channel/content_cards/) deliver persistent in-app content. Courier [Inbox](https://www.courier.com/docs/in-app/overview.md) is a real-time in-app notification center, with drop-in components for [React](https://www.courier.com/docs/sdk-libraries/courier-react-web.md), [iOS](https://www.courier.com/docs/sdk-libraries/ios.md), [Android](https://www.courier.com/docs/sdk-libraries/android.md), and [Web Components](https://www.courier.com/docs/sdk-libraries/courier-web-components.md).

Inbox runs on the same delivery pipeline as email, push, and SMS. There's no separate provider to configure. You get read/unread state, archiving, per-user history, [toast notifications](https://www.courier.com/docs/in-app/add-toasts.md), and [tab-based organization](https://www.courier.com/docs/in-app/customize-the-inbox.md).

### Connected content and dynamic data

Braze's [Connected Content](https://www.braze.com/docs/user_guide/personalization_and_dynamic_content/connected_content/) pulls external data into templates at render time. In Courier, you pass the data a template needs in the `data` field on the send request. To fetch data mid-journey, the [Fetch data node](https://www.courier.com/docs/journeys/nodes/fetch-data.md) calls an external API and passes the response to later nodes.

### Templating language

Braze uses [Liquid](https://www.braze.com/docs/user_guide/personalization_and_dynamic_content/liquid/) to personalize messages. Courier uses [Handlebars variables](https://www.courier.com/docs/design/templates/variables.md) and `{{variable}}` syntax. Both support conditionals, loops, and helpers for date formatting, string manipulation, and conditional rendering.

## Why Courier

* **API-first for developers.** Courier is built for transactional and product notifications. A single API call sends to any channel. No campaign setup required.
* **Content and logic stay separate.** Templates and journeys are independent resources. Your product team updates copy in Design Studio while your engineers tune journey timing.
* **Design Studio.** Build email, SMS, push, and chat content with drag-and-drop blocks. Preview across channels, personalize with variables, and publish without deploying code.
* **Built-in in-app channel.** Courier Inbox works without a third-party provider. Drop in a React, iOS, or Android component and send on the same pipeline as email and push.
* **Automatic failover.** Configure multiple providers per channel. If your primary email provider goes down, traffic shifts to the backup without a code change.
* **The providers you already use.** Email, SMS, push, chat, webhooks, CDPs, and observability tools. Switch providers without changing your send code.
* **Full delivery observability.** [Message Logs](https://www.courier.com/docs/monitor/overview.md) track every message from API request to provider delivery, with a timeline, error details, and the rendered content.

## Migrate step by step

**1. Create your Courier workspace**

[Sign up](https://app.courier.com/signup) and create a workspace. Test and Production [environments](https://www.courier.com/docs/workspaces/environments.md) have independent API keys, so you can migrate without touching live traffic.

**2. Configure integrations**

Go to **Platform → Integrations** in the Courier dashboard and connect the same providers you use in Braze (SendGrid, Twilio, FCM). Each provider maps to a channel type (email, SMS, push, chat). Configure multiple providers per channel for [failover](https://www.courier.com/docs/send/routing.md).

If you use Braze Content Cards for in-app messaging, [Courier Inbox](https://www.courier.com/docs/in-app/overview.md) is already set up in production and test. No external provider needed.

**3. Recreate templates**

Braze campaigns bundle content and delivery config. Extract the content into [templates](https://www.courier.com/docs/design/templates/overview.md) in Design Studio:

1. Create a new template for each transactional notification type
2. Add content blocks for each channel (email, SMS, push, etc.)
3. Convert Liquid variables (`{{user.first_name}}`) to [Handlebars syntax](https://www.courier.com/docs/design/templates/variables.md) (`{{data.first_name}}`), or `{{profile.first_name}}` for a value stored on the user's profile. Send data comes from the request's `data` field
4. Publish the template to make it available for sending

Recreate multi-step Canvas flows separately in [Journeys](https://www.courier.com/docs/journeys/overview.md).

**4. Migrate user data**

Create profiles with the same identifiers you use in Braze, through the [Profiles API](https://www.courier.com/docs/api-reference/user-profiles/create-a-profile.md) or inline at send time.

```json theme={null}
{
  "user_id": "user_123",
  "profile": {
    "email": "sarah@acme-corp.com",
    "phone_number": "+15551234567",
    "custom": {
      "name": "Sarah Bennett",
      "plan": "enterprise"
    }
  }
}
```

**5. Set up preferences**

If you use Braze subscription groups, recreate your preference structure in Courier:

1. Define [subscription topics](https://www.courier.com/docs/recipients/preferences/overview.md) that map to your Braze subscription groups
2. Configure default channel routing per topic
3. Migrate user preference selections via the [Preferences API](https://www.courier.com/docs/api-reference/user-preferences/get-users-preferences.md)

Courier also provides a [hosted preference page](https://www.courier.com/docs/guides/build-a-preference-center.md#hosted-page), or [React components](https://www.courier.com/docs/guides/build-a-preference-center.md#embedded-component) for embedding preferences in your app.

**6. Update your send calls**

Replace Braze's campaign trigger or Canvas trigger API calls with Courier's [Send API](https://www.courier.com/docs/send/overview.md):

```javascript Node.js theme={null}
const { requestId } = await client.send.message({
  message: {
    to: { user_id: 'user_123' },
    template: 'nt_01kx4h2jdafq8bk9aftxak4b40',
    data: {
      order_id: 'ORD-456',
      total: 79.99,
    },
  },
});
```

```python Python theme={null}
response = client.send.message(
    message={
        "to": {"user_id": "user_123"},
        "template": "nt_01kx4h2jdafq8bk9aftxak4b40",
        "data": {
            "order_id": "ORD-456",
            "total": 79.99,
        },
    },
)
```

```bash cURL theme={null}
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": {
        "order_id": "ORD-456",
        "total": 79.99
      }
    }
  }'
```

```ruby Ruby theme={null}
response = courier.send_.message(
  message: {
    to: { user_id: "user_123" },
    template: "nt_01kx4h2jdafq8bk9aftxak4b40",
    data: { order_id: "ORD-456", total: 79.99 }
  }
)
```

```go Go theme={null}
response, err := client.Send.Message(context.TODO(), courier.SendMessageParams{
	Message: courier.SendMessageParamsMessage{
		To: courier.SendMessageParamsMessageToUnion{
			OfUserRecipient: &shared.UserRecipientParam{
				UserID: courier.String("user_123"),
			},
		},
		Template: courier.String("nt_01kx4h2jdafq8bk9aftxak4b40"),
		Data: map[string]any{
			"order_id": "ORD-456",
			"total": 79.99,
		},
	},
})
```

```java Java theme={null}
SendMessageParams params = SendMessageParams.builder()
    .message(SendMessageParams.Message.builder()
        .to(JsonValue.from(java.util.Map.of("user_id", "user_123")))
        .template("nt_01kx4h2jdafq8bk9aftxak4b40")
        .data(JsonValue.from(java.util.Map.of(
            "order_id", "ORD-456",
            "total", 79.99)))
        .build())
    .build();
client.send().message(params);
```

```php PHP theme={null}
$response = $client->send->message(
  message: [
    'to' => ['userID' => 'user_123'],
    'template' => 'nt_01kx4h2jdafq8bk9aftxak4b40',
    'data' => ['order_id' => 'ORD-456', 'total' => 79.99],
  ],
);
```

```csharp C# theme={null}
SendMessageParams parameters = new()
{
    Message = new()
    {
        To = new UserRecipient { UserID = "user_123" },
        Template = "nt_01kx4h2jdafq8bk9aftxak4b40",
        Data = new Dictionary<string, JsonElement>()
        {
            { "order_id", JsonSerializer.SerializeToElement("ORD-456") },
            { "total", JsonSerializer.SerializeToElement(79.99) },
        },
    },
};

await client.Send.Message(parameters);
```

```bash CLI theme={null}
courier send message \
  --api-key "$COURIER_API_KEY" \
  --message '{"to":{"user_id":"user_123"},"template":"nt_01kx4h2jdafq8bk9aftxak4b40","data":{"order_id":"ORD-456","total":79.99}}'
```

```text MCP theme={null}
With Courier MCP, send my nt_01kx4h2jdafq8bk9aftxak4b40 template to user_123 with the order details.
```

Courier handles routing, preferences, and failover from your template and workspace configuration.

**7. Set up event streaming**

If you stream delivery events with Braze Currents, configure [Outbound Webhooks](https://www.courier.com/docs/monitor/webhooks/outbound.md) to forward message events (sent, delivered, opened, clicked) to your data warehouse or analytics pipeline.

**8. Test and cut over**

1. Send test messages in your Test environment and verify delivery in [Message Logs](https://app.courier.com/logs)
2. Validate that preferences, routing, and template rendering match your Braze setup
3. Switch your production code to use Courier's Production API key
4. Monitor [Message Logs](https://www.courier.com/docs/monitor/overview.md) and [Analytics](https://www.courier.com/docs/monitor/overview.md) for delivery confirmation

## Migrate with an AI agent

Most of this migration is mechanical: read a campaign definition, create the equivalent Courier template, rewrite the call site. A coding agent handles that well.

Three things to set up first:

* **[Courier Skills](https://www.courier.com/docs/resources/skills.md)** teaches the agent Courier's real APIs and patterns so it stops guessing at endpoints:

  ```bash theme={null}
  npx skills add trycourier/courier-skills
  ```

  In Claude Code, install it as a plugin instead. The plugin self-updates and ships the Courier docs MCP server.

* **[Courier's MCP server](https://www.courier.com/docs/resources/mcp.md)** gives the agent direct access to your workspace: create templates, build journeys, upsert users, and read send logs. See [Build with AI](https://www.courier.com/docs/get-started/build-with-ai.md) for setup in Claude Code, Cursor, Codex, and VS Code.

* **Docs for agents.** Point it at [llms-full.txt](https://www.courier.com/docs/llms-full.txt) when it needs API detail beyond this page.

Then start it with a prompt like this one. Fill in the bracketed parts.

```text theme={null}
Help me migrate our notifications from Braze to Courier.

Read first:
- https://www.courier.com/docs/guides/migrate/from-braze
  (concept mapping and the migration steps you should follow)
- https://www.courier.com/docs/llms-full.txt
  (full Courier docs, for API detail as you need it)

Our setup:
- Codebase: [path]
- Braze API credentials: [env var]
- Courier: connected through the Courier MCP server

Work in this order. Stop after step 3 and wait for my review
before you create anything in Courier.

0. Setup. Install Courier Skills so you build against Courier's real
   APIs and patterns rather than guessing:
   npx skills add trycourier/courier-skills
   Then confirm the Courier MCP server is connected. If either one is
   missing, stop and tell me before going further.

1. Inventory. Use the Braze REST API to list every active campaign
   and Canvas. For each, record: name, entry trigger (API-triggered,
   scheduled, or action-based), channels, target segment, and whether
   it is a single send or a multi-step flow.

2. Classify each as:
   - transactional (an action in our product must produce it)
   - marketing (campaign or lifecycle)
   - in-app guidance (Content Cards, in-app messages)

3. Find the send sites. Grep the codebase for Braze
   POST /messages/send, POST /campaigns/trigger/send, and
   POST /canvas/trigger/send calls, plus POST /users/track calls that
   only exist to set an attribute a campaign triggers on. Map each to
   the campaign or Canvas it fires.

   Report the inventory, the classification, and the send-site list.
   Then wait.

4. Transactional first. For each transactional campaign: create the
   Courier template with the channels it needs, convert its Liquid
   personalization to Courier variables, then rewrite the call site to
   a Courier /send that names the template and passes data. Leave the
   Braze call in place behind a flag so we can run both and compare.

5. Canvases become journeys. Recreate each multi-step Canvas through
   the Courier journeys API. Delay steps become delay nodes, decision
   splits become branch nodes, message steps become send nodes, and
   exit criteria become cancel nodes.

6. Preferences. Map each Braze subscription group to a Courier
   subscription topic and import the opt-out state before any
   marketing send.

Rules:
- Never send to a real user. Use a test profile in the Test
  environment for every verification send.
- Never pause, disable, or delete anything in Braze. That is my call.
- If something in Braze has no Courier equivalent, say so in your
  report rather than approximating it.
```

Review the Liquid conversion in step 4 closely. Braze resolves `{{user.*}}` against its own user store. Each one becomes either a Profile attribute you sync or a value you pass in `data`. Decide that before the Templates exist, not after.

## Map the API

| Operation | Braze | Courier |
| - | - | - |
| Send a notification | `POST /messages/send` | [`POST /send`](https://www.courier.com/docs/api-reference/send/send-a-message) |
| Trigger a workflow | `POST /canvas/trigger/send` | [`POST /journeys/{templateId}/invoke`](https://www.courier.com/docs/api-reference/journeys/invoke-a-journey) |
| Create/update a user | `POST /users/track` | [`PUT /profiles/{user_id}`](https://www.courier.com/docs/api-reference/user-profiles/replace-a-profile) |
| Get a user | `POST /users/export/ids` | [`GET /profiles/{user_id}`](https://www.courier.com/docs/api-reference/user-profiles/get-a-profile) |
| Manage subscriptions | `POST /subscription/status/set` | [`PUT /users/{user_id}/preferences/{topic_id}`](https://www.courier.com/docs/api-reference/user-preferences/update-or-create-user-preferences-for-a-subscription-topic) |
| Get message status | Campaign analytics endpoints | [`GET /messages/{message_id}`](https://www.courier.com/docs/api-reference/messages/get-message) |
| Bulk operations | `POST /users/track` (batch) | [`POST /bulk`](https://www.courier.com/docs/api-reference/bulk/create-a-bulk-job) |
