# Create Template

URL: https://developers.cuedesk.com/reference/template-management-api/create-template

`POST https://api.cuedesk.com/v1/templates`

Guide: [Template Management API](https://developers.cuedesk.com/api/template_management_api.md)

Authentication: send `Authorization: Bearer <token>`, with an API token from Settings > API Tokens.

The OpenAPI operation. `$ref` values point into https://developers.cuedesk.com/openapi.json.

```json
{
  "tags": [
    "Templates"
  ],
  "summary": "Create Template",
  "description": "Create a new WhatsApp message template.",
  "operationId": "create_template_v1_templates_post",
  "parameters": [
    {
      "name": "Idempotency-Key",
      "in": "header",
      "required": false,
      "schema": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Idempotency-Key"
      }
    },
    {
      "name": "Authorization",
      "in": "header",
      "required": false,
      "schema": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Authorization"
      },
      "description": "An API token from **Settings > API Tokens**, as `Bearer <token>`.",
      "example": "Bearer <token>"
    }
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/CreateTemplateRequest"
        }
      }
    }
  },
  "responses": {
    "201": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/TemplateResponse"
          }
        }
      }
    },
    "4XX": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/TemplateErrorResponse"
          }
        }
      },
      "description": "Client Error"
    },
    "5XX": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/TemplateErrorResponse"
          }
        }
      },
      "description": "Server Error"
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "x-cue-guide": {
    "title": "Template Management API",
    "url": "/api/template_management_api"
  }
}
```