# create-template - TEXT

**POST** `/api/v1/create-template`

Product: [RCS](https://devdocs.pinnacle.in/docs/rcs.md)  
Version: [1.0](https://devdocs.pinnacle.in/docs/rcs/1-0.md)

## Request

URL: `https://api.example.com/rcs/api/v1/create-template`

Authentication location: `none`

Authentication name: `none`

### Request schema


```json
{
  "type": "object",
  "properties": {
    "botId": {
      "type": "string"
    },
    "templateName": {
      "type": "string"
    },
    "templateType": {
      "type": "string"
    },
    "botMessageType": {
      "type": "string"
    },
    "textMessageDetails": {
      "type": "object",
      "properties": {
        "messageContent": {
          "type": "string"
        },
        "suggestionsList": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "typeOfAction": {
                "type": "string"
              },
              "suggestionText": {
                "type": "string"
              },
              "suggestionPostback": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "isSMSFallbackRequired": {
      "type": "boolean"
    }
  }
}
```

### Request example


```json
{
  "botId": "68218acedb298103bc8d5931",
  "templateName": "99",
  "templateType": "text_message",
  "botMessageType": "PROMOTIONAL",
  "textMessageDetails": {
    "messageContent": "Hello [username], welcome onboard!",
    "suggestionsList": [
      {
        "typeOfAction": "reply",
        "suggestionText": "know more",
        "suggestionPostback": "know more"
      }
    ]
  },
  "isSMSFallbackRequired": false
}
```

## Response schema


```json
{}
```

## Response examples


```json
{
  "409": {
    "code": 409,
    "status": "ERROR",
    "message": "Template name already exist"
  }
}
```

## Status codes


```json
[
  {
    "code": 409,
    "description": "Conflict"
  }
]
```
