> For the complete documentation index, see [llms.txt](https://docs.cuoral.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cuoral.com/api-reference/engagement/whatsapp/create-whatsapp-template.md).

# Create whatsapp template

## Create a new user

<mark style="color:green;">`POST`</mark> /external/v1/whatsapp/templates

Create a WhatsApp template

**Headers**

| Name         | Value              |
| ------------ | ------------------ |
| Content-Type | `application/json` |
| x-api-key    | `<api key>`        |

**Body**

<pre><code><strong>SAMPLE
</strong>body: "Your OTP is {{1}}"
variables: { "1": "otp_code" }
</code></pre>

```json
{
  "template_name": "string",
  "body": "string",
  "language": "en",
  "category": "string",
  "variables": {
    "additionalProp1": "string",
    "additionalProp2": "string",
    "additionalProp3": "string"
  },
  "content_types": {
    "additionalProp1": {}
  }
}
```

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
  "success": true,
  "template_sid": "string",
  "template_name": "string",
  "language": "string",
  "variables": {
    "additionalProp1": {}
  },
  "content_types": {
    "additionalProp1": {}
  },
  "status": {
    "additionalProp1": {}
  }
}
```

{% endtab %}

{% tab title="422" %}

```json
{
  "detail": [
    {
      "loc": [
        "string",
        0
      ],
      "msg": "string",
      "type": "string",
      "input": "string",
      "ctx": {}
    }
  ]
}
```

{% endtab %}
{% endtabs %}
