# Create WhatsApp template

Create a new WhatsApp template. The template body is limited to 1024 characters.

Endpoint: POST /beta/whatsapp/templates
Version: beta
Security: ApiKeyAuth

## Request fields (application/json):

  - `name` (string, required)
    Template name; may only contain lowercase letters, digits, and underscores

  - `language` (string, required)
    Supported language codes: ar, bg, hr, cs, da, nl, en, et, fi, fr, de, el, he, hu, it, ja, ko, lv, lt, nb, pl, ro, ru, sr, sk, sl, es, sv, th, tr, uk, pt_PT, zh_CN, zh_TW, zh_HK

  - `templateType` (any, required)
    Template body and type; use Text for text-only messages, Media for messages with an attachment

  - `templateType.body` (string, required)
    Template body text; maximum 1024 characters

  - `templateType.mediaUrl` (string, required)

  - `category` (string, required)
    values: [UTILITY, MARKETING]

## Response 201 fields (application/json):

  - `data` (object, required)

  - `data.id` (string, required)

## Response 400 fields (application/json):

  - `message` (string, required)

## Response 404 fields (application/json):

  - `message` (string, required)

## Response 500 fields (application/json):

  - `message` (string, required)

