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

# Send SMS with Bird through Courier

> Connect Bird (formerly MessageBird) with an access key and originator number, then override the access key or any message body field per send.

Keep Bird as your SMS provider. Courier sends through your Bird account and adds [templates](https://www.courier.com/docs/design/templates/overview.md), [user preferences](https://www.courier.com/docs/recipients/preferences/overview.md), [failover to a backup provider](https://www.courier.com/docs/send/routing.md#failover), [message logs](https://www.courier.com/docs/monitor/logs.md), and more channels like email, push, and [in-app Inbox](https://www.courier.com/docs/in-app/overview.md).

Bird bills you for SMS delivery, and Courier [bills per send](https://www.courier.com/docs/workspaces/billing.md).

## Prerequisites

* [A Bird account](https://bird.com/)
* Your Bird access key
* An originating phone number in Bird

## Setup

**1. Get your Bird access key**

In Bird, open your [workspace](https://app.bird.com/) and copy an access key. The originator is the number or sender ID you send from.

**2. Configure in Courier**

Open the [Bird integration](https://app.courier.com/integrations/catalog/messagebird-sms) in Courier, enter your access key and originator number, then click "Save."

Addressing a recipient and sending are the same on every SMS provider, so they are documented once: [profile requirements](https://www.courier.com/docs/integrations/sms/overview.md#profile-requirements) and [send to a recipient](https://www.courier.com/docs/integrations/sms/overview.md#send-to-a-recipient).

## Overrides

[How overrides work](https://www.courier.com/docs/send/overrides.md#how-overrides-work) covers the two levels and which one wins.

Overrides change the request body and config Courier uses to send through Bird. `config` overrides the `accessKey`. `body` overrides any message body field.

Bird was called MessageBird when this integration shipped, so its provider key is still `messagebird-sms`.

```javascript Node.js highlight={8-17} theme={null}
const { requestId } = await courier.send.message({
  message: {
    template: "nt_01kx4h2jdafq8bk9aftxak4b40",
    to: {
      phone_number: "+12345678901",
    },
    providers: {
      "messagebird-sms": {
        override: {
          body: {
            originator: "MyCompany",
          },
          config: {
            accessKey: "<override access key>",
          },
        },
      },
    },
  },
});
```

```python Python highlight={8-17} theme={null}
response = client.send.message(
    message={
        "template": "nt_01kx4h2jdafq8bk9aftxak4b40",
        "to": {
            "phone_number": "+12345678901",
        },
        "providers": {
            "messagebird-sms": {
                "override": {
                    "body": {
                        "originator": "MyCompany",
                    },
                    "config": {
                        "accessKey": "<override access key>",
                    },
                },
            },
        },
    },
)
```

```bash cURL highlight={11-20} wrap theme={null}
curl -X POST https://api.courier.com/send \
  -H "Authorization: Bearer $COURIER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "message": {
      "template": "nt_01kx4h2jdafq8bk9aftxak4b40",
      "to": {
        "phone_number": "+12345678901"
      },
      "providers": {
        "messagebird-sms": {
          "override": {
            "body": {
              "originator": "MyCompany"
            },
            "config": {
              "accessKey": "<override access key>"
            }
          }
        }
      }
    }
  }'
```

```ruby Ruby highlight={8-17} theme={null}
response = courier.send_.message(
  message: {
    template: "nt_01kx4h2jdafq8bk9aftxak4b40",
    to: {
      phone_number: "+12345678901"
    },
    providers: {
      "messagebird-sms": {
        override: {
          body: {
            originator: "MyCompany"
          },
          config: {
            accessKey: "<override access key>"
          }
        }
      }
    }
  }
)
```

```go Go highlight={10-19} theme={null}
response, err := client.Send.Message(context.TODO(), courier.SendMessageParams{
	Message: courier.SendMessageParamsMessage{
		To: courier.SendMessageParamsMessageToUnion{
			OfUserRecipient: &shared.UserRecipientParam{
				PhoneNumber: courier.String("+12345678901"),
			},
		},
		Template: courier.String("nt_01kx4h2jdafq8bk9aftxak4b40"),
		Providers: shared.MessageProvidersParam{
			"messagebird-sms": shared.MessageProvidersTypeParam{
				Override: map[string]any{
					"body": map[string]any{
						"originator": "MyCompany",
					},
					"config": map[string]any{
						"accessKey": "<override access key>",
					},
				},
			},
		},
	},
})
```

```java Java highlight={6-13} theme={null}
SendMessageParams params = SendMessageParams.builder()
    .message(SendMessageParams.Message.builder()
        .to(UserRecipient.builder().phoneNumber("+12345678901").build())
        .template("nt_01kx4h2jdafq8bk9aftxak4b40")
        .providers(MessageProviders.builder()
            .putAdditionalProperty("messagebird-sms", JsonValue.from(java.util.Map.of("override", java.util.Map.of(
                    "body", java.util.Map.of(
                        "originator", "MyCompany"
                    ),
                    "config", java.util.Map.of(
                        "accessKey", "<override access key>"
                    )
                ))))
            .build())
        .build())
    .build();
SendMessageResponse response = client.send().message(params);
```

```php PHP highlight={8-17} theme={null}
$response = $client->send->message(
  message: [
    'template' => 'nt_01kx4h2jdafq8bk9aftxak4b40',
    'to' => [
      'phone_number' => '+12345678901',
    ],
    'providers' => [
      'messagebird-sms' => [
        'override' => [
          'body' => [
            'originator' => 'MyCompany',
          ],
          'config' => [
            'accessKey' => '<override access key>',
          ],
        ],
      ],
    ],
  ],
);
```

```csharp C# highlight={9-26} theme={null}
SendMessageParams parameters = new()
{
    Message = new()
    {
        To = new UserRecipient { PhoneNumber = "+12345678901" },
        Template = "nt_01kx4h2jdafq8bk9aftxak4b40",
        Providers = new Dictionary<string, MessageProvidersType>()
        {
            {
                "messagebird-sms",
                new()
                {
                    Override = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(
                        """
                        {
                          "body": {
                            "originator": "MyCompany"
                          },
                          "config": {
                            "accessKey": "<override access key>"
                          }
                        }
                        """
                    ),
                }
            },
        },
    },
};

var response = await client.Send.Message(parameters);
```

```bash CLI highlight={5} wrap theme={null}
courier send message \
  --api-key "$COURIER_API_KEY" \
  --message.to '{"phone_number": "+12345678901"}' \
  --message.template nt_01kx4h2jdafq8bk9aftxak4b40 \
  --message.providers '{"messagebird-sms": {"override": {"body": {"originator": "MyCompany"}, "config": {"accessKey": "<override access key>"}}}}'
```

```text MCP theme={null}
With Courier MCP, send my template to +12345678901 through Bird with a different access key.
```

Overrides are deep-merged into the request. Fields you set replace their counterparts, and everything you leave out is still sent. The full field list is in the [Bird SMS API docs](https://developers.messagebird.com/api/sms-messaging/).

## Provider details

```text theme={null}
messagebird-sms
```

Courier recommends routing to the channel. Naming this key in `routing.channels` instead is supported, and sends through just this provider.

> [card] [Send to a specific provider](https://www.courier.com/docs/send/send-to-a-provider.md)
>
> When that is worth doing, and what you give up: failover, channel priority, and providers you add later.

> [card] [Set a send rate limit](https://www.courier.com/docs/integrations/send-rate-limits.md)
>
> Control how fast Courier sends to this provider. Sends above the rate are queued.
