# Text Template with Body, header, quick reply

**POST** `/{wabaid}/message_templates`

Product: [WhatsApp](https://devdocs.pinnacle.in/docs/whatsapp.md)  
Version: [3.0](https://devdocs.pinnacle.in/docs/whatsapp/3-0.md)

This API is used for creating text templates with body, header and quick reply.

## Request

URL: `https://partnersv1.pinbot.ai/v3/{wabaid}/message_templates`

Authentication location: `header`

Authentication name: `apikey`

### Request schema


```json
{
  "type": "object",
  "properties": {
    "raw_example": {
      "type": "string"
    }
  }
}
```

### Request example


```json
{
  "raw_example": "{\n\"name\": \"welcome_postman_new_sne124\", \"category\": \"MARKETING\",\n\"components\": [\n{\"type\":\"BODY\",\"text\":\"Dear {{1}}, Thank you for registering with Pinnacle Teleservices\nand providing consent to receive notifications using WhatsApp. \\\\r\\\\n\\\\r\\\\nWe request you\nto kindly save this number.\\\\r\\\\n\\\\r\\\\nTo get started, please type help*.\\\\r\\\\nYou can\nreply with STOP* anytime you wish to stop communication through this\nchannel\\\\r\\\\nRegards,\\\\r\\\\n{{2}}{{2}}\",\"example\":{\"body_text\":[[\"User1\",\"Pinnacle\"]]}},{\"typ\ne\":\"HEADER\",\"format\":\"TEXT\",\"text\":\n\"Welcome{{1}}\",\"example\":{\"header_text\":[\"header-text\"]\n}},{\"type\":\"FOOTER\",\"text\":\"welcome to\npinnacle\"},{\"type\":\"BUTTONS\",\"buttons\":[{\"type\":\"QUICK_REPLY\",\"text\":\"button1\"},{\"type\"\n:\"Q\nUICK_REPLY\",\"text\":\"button2\"},{\"type\":\"QUICK_REPLY\",\"text\":\"button3\"}]}\n\n],\n\"language\": \"en_US\",\n\"allow_category_change\": true\n}"
}
```

## Response schema


```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "category": {
      "type": "string"
    }
  }
}
```

## Response examples


```json
{
  "200": {
    "id": "123412341234123",
    "status": "APPROVED",
    "category": "MARKETING"
  }
}
```

## Status codes


```json
[
  {
    "code": 200,
    "description": "The request was successful."
  },
  {
    "code": 400,
    "description": "Bad request or invalid parameters."
  },
  {
    "code": 401,
    "description": "API key is missing or invalid."
  },
  {
    "code": 403,
    "description": "The request is not authorized for this resource."
  },
  {
    "code": 404,
    "description": "The requested resource was not found."
  },
  {
    "code": 500,
    "description": "The server encountered an error."
  }
]
```
