# `bird whatsapp templates duplicate`

## Usage

```bash
bird whatsapp templates duplicate <template-ref> [flags]
```

## Description

Duplicate a message template

Copies a template into a new one holding the source's current content as an open draft. It is how a built-in Bird template becomes something a workspace can edit, and how an approved template becomes the basis of a variant. The copy names the account it lands on rather than inheriting the source's, because a built-in template lives on Bird's own account. The copy calls WhatsApp zero times: it is a draft you submit when it is ready.

Build the request from flags, a JSON WhatsAppTemplateDuplicate body via --body-file ("-" reads
stdin), or both — a flag overrides the matching body field. Run --example to
print a ready-to-edit body, or --dry-run to print the resolved request without
sending it.

## Examples

```bash
# print the body shape (no credentials needed)
bird whatsapp templates duplicate --example

# the body it prints:
```

```json
{
  "default_language": "pt-BR",
  "include_languages": ["pt-BR", "es-ES"],
  "slug": "acme_order_update",
  "waba": "102290129340398"
}
```

## Options

#### Request

| Name                | Description                                                  |
| ------------------- | ------------------------------------------------------------ |
| `--body-file`       | Read the JSON request body from this file; "-" reads stdin   |
| `--example`         | Print a complete example request body, then exit             |
| `--dry-run`         | Print the resolved request without sending it, then exit     |
| `--idempotency-key` | Deduplication key; a retry with the same key won't act twice |

#### Options

| Name                           | Description                                                                                                                                                                                                                                                                                                                                                                                             |
| ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--waba`                       | The WhatsApp Business Account the copy is created on. A template belongs to one account at Meta. Meta reviews, approves, and sends it under that account. The copy therefore names its account rather than taking the source's. A Bird built-in template lives on Bird's own account, which you cannot submit against. It must be an account connected to this workspace. (required; or in --body-file) |
| `--slug`                       | The copy's handle. The server assigns one when omitted. A bird\_ slug is rejected, and one already in use is a conflict.                                                                                                                                                                                                                                                                                |
| `--name`                       | The copy's display name. Inherited from the source when omitted.                                                                                                                                                                                                                                                                                                                                        |
| `--include-languages <value>…` | The languages the copy carries, when it should carry only some of them. Every entry must be a language the source holds. A copy narrows the set it inherits, it never adds to it. Omitted, the copy takes all of the source's languages.                                                                                                                                                                |
| `--default-language`           | The copy's default language, which must be one of the languages the copy carries. Omitted, the copy keeps the source's default when include\_languages still carries it. Otherwise it takes the first of the copy's languages sorted by canonical tag, which is the order the copy stores them in, not the order include\_languages listed them.                                                        |
| `--response-schema`            | Print the fields this command returns, then exit                                                                                                                                                                                                                                                                                                                                                        |

## Related

| Name                                                                              | Description                                                    |
| --------------------------------------------------------------------------------- | -------------------------------------------------------------- |
| [`bird whatsapp templates create`](/docs/cli/reference/whatsapp-templates-create) | Create a WhatsApp template, optionally seeding its first draft |
| [`bird whatsapp templates delete`](/docs/cli/reference/whatsapp-templates-delete) | Delete a message template                                      |
| [`bird whatsapp templates get`](/docs/cli/reference/whatsapp-templates-get)       | Get a message template                                         |
| [`bird whatsapp templates list`](/docs/cli/reference/whatsapp-templates-list)     | List available message templates                               |
| [`bird whatsapp templates update`](/docs/cli/reference/whatsapp-templates-update) | Update a message template                                      |