> ## 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 WhatsApp messages through Courier

> Send WhatsApp messages through Twilio with an approved template. Submit it for review, then set its Content SID in your Courier template or per send.

Courier uses the [Twilio API for WhatsApp](https://twilio.com/whatsapp) as the delivery partner.

## Prerequisites

* [A Twilio account with WhatsApp enabled](https://www.twilio.com/)
* [Your Twilio Account SID and Auth Token](https://console.twilio.com/)
* A WhatsApp-enabled "From" number in Twilio

## Setup

**1. Get your Twilio credentials**

In Twilio, open the [console](https://console.twilio.com/) and copy your Account SID and Auth Token. Your WhatsApp sender is the "From" number.

**2. Configure in Courier**

Open the [WhatsApp integration](https://app.courier.com/integrations/catalog/twilio-whatsapp) in Courier, enter your Twilio Account SID, Auth Token, and "From" number, then save.

## Profile requirements

WhatsApp addresses the recipient by phone number, so the profile you send to needs a `phone_number`. Store it once with [`POST /profiles/{user_id}`](https://www.courier.com/docs/api-reference/user-profiles/create-a-profile), which merges into the profile and creates it if it doesn't exist:

```javascript Node.js highlight={3} theme={null}
const profile = await client.profiles.create('user_123', {
  profile: {
    phone_number: '+15551234567',
  },
});
```

```python Python highlight={4} theme={null}
profile = client.profiles.create(
    user_id="user_123",
    profile={
        "phone_number": "+15551234567",
    },
)
```

```bash cURL highlight={7} theme={null}
curl --request POST \
  --url https://api.courier.com/profiles/user_123 \
  --header "Authorization: Bearer $COURIER_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
    "profile": {
      "phone_number": "+15551234567"
    }
  }'
```

```ruby Ruby highlight={4} theme={null}
profile = courier.profiles.create(
  "user_123",
  profile: {
    phone_number: "+15551234567"
  }
)
```

```go Go highlight={6} theme={null}
profile, err := client.Profiles.New(
	context.TODO(),
	"user_123",
	courier.ProfileNewParams{
		Profile: map[string]any{
			"phone_number": "+15551234567",
		},
	},
)
```

```java Java highlight={4} theme={null}
ProfileCreateParams params = ProfileCreateParams.builder()
    .userId("user_123")
    .profile(ProfileCreateParams.Profile.builder()
        .putAdditionalProperty("phone_number", JsonValue.from("+15551234567"))
        .build())
    .build();
ProfileCreateResponse profile = client.profiles().create(params);
```

```php PHP highlight={2} theme={null}
$profile = $client->profiles->create('user_123', profile: [
  'phone_number' => '+15551234567',
]);
```

```csharp C# highlight={6} theme={null}
ProfileCreateParams parameters = new()
{
    UserID = "user_123",
    Profile = new Dictionary<string, JsonElement>()
    {
        { "phone_number", JsonSerializer.SerializeToElement("+15551234567") },
    },
};
var profile = await client.Profiles.Create(parameters);
```

```bash CLI highlight={4} theme={null}
courier profiles create \
  --api-key "$COURIER_API_KEY" \
  --user-id user_123 \
  --profile '{"phone_number":"+15551234567"}'
```

```text MCP theme={null}
With Courier MCP, create a profile for user_123 with the phone number +15551234567.
```

Then send to `user_id` and Courier resolves the address.

For a one-off with no stored profile, pass it inline instead: `"to": { "phone_number": "+15551234567" }`.

> [card] [Send by user id](https://www.courier.com/docs/recipients/overview.md#send-by-user-id)
>
> The call in every language, and the rest of the profile object.

## Send to a recipient

> [tab] Send to user id
>
> Courier reads `phone_number` off the saved profile, so preferences apply and the value can change without touching this code.
>
> ```javascript Node.js highlight={4} theme={null}
> const { requestId } = await courier.send.message({
>   message: {
>     to: {
>       user_id: "user_123",
>     },
>     template: "nt_01kx4h2jdafq8bk9aftxak4b40",
>   },
> });
> ```
>
> ```python Python highlight={4} theme={null}
> response = client.send.message(
>     message={
>         "to": {
>             "user_id": "user_123",
>         },
>         "template": "nt_01kx4h2jdafq8bk9aftxak4b40",
>     },
> )
> ```
>
> ```bash cURL highlight={7} wrap 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"
>     }
>   }'
> ```
>
> ```ruby Ruby highlight={4} theme={null}
> response = courier.send_.message(
>   message: {
>     to: {
>       user_id: "user_123"
>     },
>     template: "nt_01kx4h2jdafq8bk9aftxak4b40"
>   }
> )
> ```
>
> ```go Go highlight={5} 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"),
> 	},
> })
> ```
>
> ```java Java highlight={3} theme={null}
> SendMessageParams params = SendMessageParams.builder()
>     .message(SendMessageParams.Message.builder()
>         .to(UserRecipient.builder().userId("user_123").build())
>         .template("nt_01kx4h2jdafq8bk9aftxak4b40")
>         .build())
>     .build();
> SendMessageResponse response = client.send().message(params);
> ```
>
> ```php PHP highlight={4} theme={null}
> $response = $client->send->message(
>   message: [
>     'to' => [
>       'user_id' => 'user_123',
>     ],
>     'template' => 'nt_01kx4h2jdafq8bk9aftxak4b40',
>   ],
> );
> ```
>
> ```csharp C# highlight={5} theme={null}
> SendMessageParams parameters = new()
> {
>     Message = new()
>     {
>         To = new UserRecipient { UserID = "user_123" },
>         Template = "nt_01kx4h2jdafq8bk9aftxak4b40",
>     },
> };
>
> var response = await client.Send.Message(parameters);
> ```
>
> ```bash CLI highlight={3} wrap theme={null}
> courier send message \
>   --api-key "$COURIER_API_KEY" \
>   --message.to '{"user_id": "user_123"}' \
>   --message.template nt_01kx4h2jdafq8bk9aftxak4b40
> ```
>
> ```text MCP theme={null}
> With Courier MCP, send my template to user_123 by email.
> ```

> [tab] Send to a phone number
>
> Pass it inline instead and nothing is stored. Swap this `to` object into the call on the other tab.
>
> ```javascript Node.js highlight={4} theme={null}
> const { requestId } = await courier.send.message({
>   message: {
>     to: {
>       phone_number: "+15551234567",
>     },
>     template: "nt_01kx4h2jdafq8bk9aftxak4b40",
>   },
> });
> ```
>
> ```python Python highlight={4} theme={null}
> response = client.send.message(
>     message={
>         "to": {
>             "phone_number": "+15551234567",
>         },
>         "template": "nt_01kx4h2jdafq8bk9aftxak4b40",
>     },
> )
> ```
>
> ```bash cURL highlight={7} wrap theme={null}
> curl -X POST https://api.courier.com/send \
>   -H "Authorization: Bearer $COURIER_API_KEY" \
>   -H "Content-Type: application/json" \
>   -d '{
>     "message": {
>       "to": {
>         "phone_number": "+15551234567"
>       },
>       "template": "nt_01kx4h2jdafq8bk9aftxak4b40"
>     }
>   }'
> ```
>
> ```ruby Ruby highlight={4} theme={null}
> response = courier.send_.message(
>   message: {
>     to: {
>       phone_number: "+15551234567"
>     },
>     template: "nt_01kx4h2jdafq8bk9aftxak4b40"
>   }
> )
> ```
>
> ```go Go highlight={5} theme={null}
> response, err := client.Send.Message(context.TODO(), courier.SendMessageParams{
> 	Message: courier.SendMessageParamsMessage{
> 		To: courier.SendMessageParamsMessageToUnion{
> 			OfUserRecipient: &shared.UserRecipientParam{
> 				PhoneNumber: courier.String("+15551234567"),
> 			},
> 		},
> 		Template: courier.String("nt_01kx4h2jdafq8bk9aftxak4b40"),
> 	},
> })
> ```
>
> ```java Java highlight={3} theme={null}
> SendMessageParams params = SendMessageParams.builder()
>     .message(SendMessageParams.Message.builder()
>         .to(UserRecipient.builder().phoneNumber("+15551234567").build())
>         .template("nt_01kx4h2jdafq8bk9aftxak4b40")
>         .build())
>     .build();
> SendMessageResponse response = client.send().message(params);
> ```
>
> ```php PHP highlight={4} theme={null}
> $response = $client->send->message(
>   message: [
>     'to' => [
>       'phone_number' => '+15551234567',
>     ],
>     'template' => 'nt_01kx4h2jdafq8bk9aftxak4b40',
>   ],
> );
> ```
>
> ```csharp C# highlight={5} theme={null}
> SendMessageParams parameters = new()
> {
>     Message = new()
>     {
>         To = new UserRecipient { PhoneNumber = "+15551234567" },
>         Template = "nt_01kx4h2jdafq8bk9aftxak4b40",
>     },
> };
>
> var response = await client.Send.Message(parameters);
> ```
>
> ```bash CLI highlight={3} wrap theme={null}
> courier send message \
>   --api-key "$COURIER_API_KEY" \
>   --message.to '{"phone_number": "+15551234567"}' \
>   --message.template nt_01kx4h2jdafq8bk9aftxak4b40
> ```
>
> ```text MCP theme={null}
> With Courier MCP, send my template to +15551234567 by SMS.
> ```

## Notification categories

WhatsApp allows these [notification categories](https://www.twilio.com/docs/whatsapp/tutorial/send-whatsapp-notification-messages-templates#whatsapp-notification-categories):

* Marketing
* Authentication
* Utility

Other categories are likely to be rejected, including:

* Account Update
* Alert Update
* Appointment Update
* Auto-Reply
* Issue Resolution
* Payment Update
* Personal Finance Update
* Reservation Update
* Shipping Update
* Ticket Update
* Transportation Update

## WhatsApp template verification

WhatsApp reviews every template against its guidelines before you can send it.

### Create the template

**Structure:** WhatsApp [message templates](https://www.twilio.com/docs/whatsapp/tutorial/send-whatsapp-notification-messages-templates) are predefined messages with placeholders for dynamic content. A template can be text, media (images, documents), or interactive (buttons, list messages).

**Categories:** Each template is [categorized](#notification-categories) by use case, such as transactional updates, customer service, or alerts.

### Submit the template for approval

**Open the console:** In the Twilio Console, go to the Messaging section.

**Create the template:** In the WhatsApp Templates section, create a template. Provide the template name, category, language, and message content. Leave out promotional material, which WhatsApp disallows in templates.

**Submit for review:** [Submit](https://www.twilio.com/docs/whatsapp/tutorial/message-template-approvals-statuses) the template for WhatsApp's review.

### WhatsApp approval process

WhatsApp checks the template against its policies. Review takes a few minutes to 24 hours.

Two outcomes:

* **Approved:** The template meets WhatsApp's guidelines. You can now send it through the Twilio API.

* **Rejected:** The template is [rejected](https://www.twilio.com/docs/whatsapp/tutorial/message-template-approvals-statuses#common-rejection-reasons) for promotional content, inappropriate language, or other policy violations. Fix the template and resubmit it.

## Approved templates with Courier

Copy the approved template's [Twilio Content SID](https://www.twilio.com/docs/whatsapp/tutorial/send-whatsapp-notification-messages-templates#creating-message-templates-and-submitting-them-for-approval), which starts with `HX`. Paste it into the WhatsApp channel settings of your Courier template. Sends then reference that approved template through the [Send API](https://www.courier.com/docs/api-reference/send/send-a-message.md).

![A Courier template's WhatsApp channel settings with the Twilio Content SID pasted in](https://mintcdn.com/courier-4f1f25dc/_N31KC_ZrU1lo5hN/assets/whatsapp.webp?fit=max\&auto=format\&n=_N31KC_ZrU1lo5hN\&q=85\&s=23660c5a80b264bb091a6b24b43071b3)

WhatsApp Template

On send, Courier calls Twilio with the template details. Twilio delivers the message over WhatsApp.

> [!NOTE]
>
> **Twilio renders the approved template, filled with your Courier variables.**\\
>
> Courier sends the Content SID and its variables, and Twilio renders the approved template. Your Courier template still drives routing, variables, and every other channel.

### Key considerations

**Content:** Keep template content clear and non-promotional. Include every placeholder and give sample values so reviewers have context.

**Localization:** Create and get approval for each language version of the template.

**Monitoring:** Watch template [performance](https://help.twilio.com/articles/360039737753-Recommendations-and-best-practices-for-creating-WhatsApp-Message-Templates). Frequent spam reports can cost you the ability to send. Update templates as WhatsApp guidelines change.

## Overrides

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

A provider override changes the request body Courier sends to Twilio, or swaps the Twilio credentials and the From number.

### Body overrides

A **Content SID is required** on every WhatsApp send. Set it on the template's WhatsApp channel settings, or pass it per send as `override.body.ContentSid`. Without one the send fails with `No Content SID specified.` before reaching Twilio.

Override body keys are capitalized before they are sent, so `contentSid` and `ContentSid` are equivalent. Use an override to select an approved template at send time:

```javascript Node.js highlight={11} theme={null}
const { requestId } = await courier.send.message({
  message: {
    template: "nt_01kx4h2jdafq8bk9aftxak4b40",
    to: {
      phone_number: "+15555555555",
    },
    providers: {
      "twilio-whatsapp": {
        override: {
          body: {
            ContentSid: "HXXXXXXXXXXXXXXXXXXXXXXXXXXX",
          },
        },
      },
    },
  },
});
```

```python Python highlight={11} theme={null}
response = client.send.message(
    message={
        "template": "nt_01kx4h2jdafq8bk9aftxak4b40",
        "to": {
            "phone_number": "+15555555555",
        },
        "providers": {
            "twilio-whatsapp": {
                "override": {
                    "body": {
                        "ContentSid": "HXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                    },
                },
            },
        },
    },
)
```

```bash cURL highlight={14} 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": "+15555555555"
      },
      "providers": {
        "twilio-whatsapp": {
          "override": {
            "body": {
              "ContentSid": "HXXXXXXXXXXXXXXXXXXXXXXXXXXX"
            }
          }
        }
      }
    }
  }'
```

```ruby Ruby highlight={11} theme={null}
response = courier.send_.message(
  message: {
    template: "nt_01kx4h2jdafq8bk9aftxak4b40",
    to: {
      phone_number: "+15555555555"
    },
    providers: {
      "twilio-whatsapp": {
        override: {
          body: {
            ContentSid: "HXXXXXXXXXXXXXXXXXXXXXXXXXXX"
          }
        }
      }
    }
  }
)
```

```go Go highlight={13} theme={null}
response, err := client.Send.Message(context.TODO(), courier.SendMessageParams{
	Message: courier.SendMessageParamsMessage{
		To: courier.SendMessageParamsMessageToUnion{
			OfUserRecipient: &shared.UserRecipientParam{
				PhoneNumber: courier.String("+15555555555"),
			},
		},
		Template: courier.String("nt_01kx4h2jdafq8bk9aftxak4b40"),
		Providers: shared.MessageProvidersParam{
			"twilio-whatsapp": shared.MessageProvidersTypeParam{
				Override: map[string]any{
					"body": map[string]any{
						"ContentSid": "HXXXXXXXXXXXXXXXXXXXXXXXXXXX",
					},
				},
			},
		},
	},
})
```

```java Java highlight={8} theme={null}
SendMessageParams params = SendMessageParams.builder()
    .message(SendMessageParams.Message.builder()
        .to(UserRecipient.builder().phoneNumber("+15555555555").build())
        .template("nt_01kx4h2jdafq8bk9aftxak4b40")
        .providers(MessageProviders.builder()
            .putAdditionalProperty("twilio-whatsapp", JsonValue.from(java.util.Map.of("override", java.util.Map.of(
                    "body", java.util.Map.of(
                        "ContentSid", "HXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                    )
                ))))
            .build())
        .build())
    .build();
SendMessageResponse response = client.send().message(params);
```

```php PHP highlight={11} theme={null}
$response = $client->send->message(
  message: [
    'template' => 'nt_01kx4h2jdafq8bk9aftxak4b40',
    'to' => [
      'phone_number' => '+15555555555',
    ],
    'providers' => [
      'twilio-whatsapp' => [
        'override' => [
          'body' => [
            'ContentSid' => 'HXXXXXXXXXXXXXXXXXXXXXXXXXXX',
          ],
        ],
      ],
    ],
  ],
);
```

```csharp C# highlight={17} theme={null}
SendMessageParams parameters = new()
{
    Message = new()
    {
        To = new UserRecipient { PhoneNumber = "+15555555555" },
        Template = "nt_01kx4h2jdafq8bk9aftxak4b40",
        Providers = new Dictionary<string, MessageProvidersType>()
        {
            {
                "twilio-whatsapp",
                new()
                {
                    Override = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(
                        """
                        {
                          "body": {
                            "ContentSid": "HXXXXXXXXXXXXXXXXXXXXXXXXXXX"
                          }
                        }
                        """
                    ),
                }
            },
        },
    },
};

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": "+15555555555"}' \
  --message.template nt_01kx4h2jdafq8bk9aftxak4b40 \
  --message.providers '{"twilio-whatsapp": {"override": {"body": {"ContentSid": "HXXXXXXXXXXXXXXXXXXXXXXXXXXX"}}}}'
```

```text MCP theme={null}
With Courier MCP, send my template to +15555555555 on WhatsApp with a Content SID override.
```

### Config overrides

Swap Twilio credentials or the "From" number at send time:

```javascript Node.js highlight={8-16} theme={null}
const { requestId } = await courier.send.message({
  message: {
    template: "nt_01kx4h2jdafq8bk9aftxak4b40",
    to: {
      phone_number: "+15555555555",
    },
    providers: {
      "twilio-whatsapp": {
        override: {
          config: {
            accountSid: "RUNTIME_ACCOUNT_SID",
            authToken: "RUNTIME_AUTH_TOKEN",
            from: "+14155551234",
          },
        },
      },
    },
  },
});
```

```python Python highlight={8-16} theme={null}
response = client.send.message(
    message={
        "template": "nt_01kx4h2jdafq8bk9aftxak4b40",
        "to": {
            "phone_number": "+15555555555",
        },
        "providers": {
            "twilio-whatsapp": {
                "override": {
                    "config": {
                        "accountSid": "RUNTIME_ACCOUNT_SID",
                        "authToken": "RUNTIME_AUTH_TOKEN",
                        "from": "+14155551234",
                    },
                },
            },
        },
    },
)
```

```bash cURL highlight={11-19} 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": "+15555555555"
      },
      "providers": {
        "twilio-whatsapp": {
          "override": {
            "config": {
              "accountSid": "RUNTIME_ACCOUNT_SID",
              "authToken": "RUNTIME_AUTH_TOKEN",
              "from": "+14155551234"
            }
          }
        }
      }
    }
  }'
```

```ruby Ruby highlight={8-16} theme={null}
response = courier.send_.message(
  message: {
    template: "nt_01kx4h2jdafq8bk9aftxak4b40",
    to: {
      phone_number: "+15555555555"
    },
    providers: {
      "twilio-whatsapp": {
        override: {
          config: {
            accountSid: "RUNTIME_ACCOUNT_SID",
            authToken: "RUNTIME_AUTH_TOKEN",
            from: "+14155551234"
          }
        }
      }
    }
  }
)
```

```go Go highlight={10-18} theme={null}
response, err := client.Send.Message(context.TODO(), courier.SendMessageParams{
	Message: courier.SendMessageParamsMessage{
		To: courier.SendMessageParamsMessageToUnion{
			OfUserRecipient: &shared.UserRecipientParam{
				PhoneNumber: courier.String("+15555555555"),
			},
		},
		Template: courier.String("nt_01kx4h2jdafq8bk9aftxak4b40"),
		Providers: shared.MessageProvidersParam{
			"twilio-whatsapp": shared.MessageProvidersTypeParam{
				Override: map[string]any{
					"config": map[string]any{
						"accountSid": "RUNTIME_ACCOUNT_SID",
						"authToken": "RUNTIME_AUTH_TOKEN",
						"from": "+14155551234",
					},
				},
			},
		},
	},
})
```

```java Java highlight={6-12} theme={null}
SendMessageParams params = SendMessageParams.builder()
    .message(SendMessageParams.Message.builder()
        .to(UserRecipient.builder().phoneNumber("+15555555555").build())
        .template("nt_01kx4h2jdafq8bk9aftxak4b40")
        .providers(MessageProviders.builder()
            .putAdditionalProperty("twilio-whatsapp", JsonValue.from(java.util.Map.of("override", java.util.Map.of(
                    "config", java.util.Map.of(
                        "accountSid", "RUNTIME_ACCOUNT_SID",
                        "authToken", "RUNTIME_AUTH_TOKEN",
                        "from", "+14155551234"
                    )
                ))))
            .build())
        .build())
    .build();
SendMessageResponse response = client.send().message(params);
```

```php PHP highlight={8-16} theme={null}
$response = $client->send->message(
  message: [
    'template' => 'nt_01kx4h2jdafq8bk9aftxak4b40',
    'to' => [
      'phone_number' => '+15555555555',
    ],
    'providers' => [
      'twilio-whatsapp' => [
        'override' => [
          'config' => [
            'accountSid' => 'RUNTIME_ACCOUNT_SID',
            'authToken' => 'RUNTIME_AUTH_TOKEN',
            'from' => '+14155551234',
          ],
        ],
      ],
    ],
  ],
);
```

```csharp C# highlight={9-25} theme={null}
SendMessageParams parameters = new()
{
    Message = new()
    {
        To = new UserRecipient { PhoneNumber = "+15555555555" },
        Template = "nt_01kx4h2jdafq8bk9aftxak4b40",
        Providers = new Dictionary<string, MessageProvidersType>()
        {
            {
                "twilio-whatsapp",
                new()
                {
                    Override = JsonSerializer.Deserialize<Dictionary<string, JsonElement>>(
                        """
                        {
                          "config": {
                            "accountSid": "RUNTIME_ACCOUNT_SID",
                            "authToken": "RUNTIME_AUTH_TOKEN",
                            "from": "+14155551234"
                          }
                        }
                        """
                    ),
                }
            },
        },
    },
};

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": "+15555555555"}' \
  --message.template nt_01kx4h2jdafq8bk9aftxak4b40 \
  --message.providers '{"twilio-whatsapp": {"override": {"config": {"accountSid": "RUNTIME_ACCOUNT_SID", "authToken": "RUNTIME_AUTH_TOKEN", "from": "+14155551234"}}}}'
```

```text MCP theme={null}
With Courier MCP, send my template to +15555555555 on WhatsApp with different Twilio credentials.
```

## Provider details

```text theme={null}
twilio-whatsapp
```

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.
