# Text Template with Body, Header, Footer, Visit Website and Call to Phone

**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,footer, Visit website and call to phone.

## 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\",\n\"category\": \"MARKETING\",\n\"components\": [{\"type\":\"BODY\",\"text\":\"Thank you for registering with Pinnacle\nTeleservices and providing consent to receive notifications using WhatsApp.\n\\\\r\\\\n\\\\r\\\\nWe request you to kindly save this number.\\\\r\\\\n\\\\r\\\\nTo get started, please type\nhelp*.\\\\r\\\\nYou can reply with STOP* anytime you wish to stop communication\nthrough this channel \"},{\"type\":\"HEADER\",\"format\":\"TEXT\",\"text\":\n\"Welcome{{1}}\",\"example\":{ \"header_text\":[\"header-text\"]\n}},{\"type\":\"FOOTER\",\"text\":\"welcome to\npinnacle\"},{\"type\":\"BUTTONS\",\"buttons\":[{\"type\":\"PHONE_NUMBER\",\"text\":\"phone-\nbutton-t ext\",\"phone_number\":\"+1(650)\n555-\n1111\"},{\"type\":\"URL\",\"text\":\"Click\",\"url\":\"https:\nnamic-url-example\"]}]}],\n\"language\": \"en_US\", \"allow_category_change\": true\n\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."
  }
]
```
