---
updatedAt: 2025-04-03T10:11:56.000Z
agentTools:
  projectIndex: https://partner-docs.gupshup.io/llms.txt
---

# Limited Time Offer (LTO)

Use this API to create a LTO template.

## Request Parameters

<HTMLBlock>{`
<table style="width: 100%; border-collapse: collapse;">
<thead>
<tr>
  <th style="border: 1px solid #ddd; padding: 8px;">Key</th>
  <th style="border: 1px solid #ddd; padding: 8px;">Description</th>
  <th style="border: 1px solid #ddd; padding: 8px;">Value</th>
  <th style="border: 1px solid #ddd; padding: 8px;">Data Type</th>
  <th style="border: 1px solid #ddd; padding: 8px;">Required/Optional </th>
  <th style="border: 1px solid #ddd; padding: 8px;">Constraints</th>
</tr>
</thead>
<tbody>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>Authorization</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>Access Token for the application</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>{{PARTNER_APP_TOKEN}}</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>String</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>Required</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>Should be a valid Partner App Access Token</p>
</td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>elementName</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>The name of a template. The element name is unique for a WABAs namespace.</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>{{ELEMENT_NAME}}</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>String</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>Required</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>elementName (not more than 180 char.) Mandatory fields</p>
</td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>languageCode</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>Language code for the template. Refer to all the language codes <a href="https://support.gupshup.io/hc/en-us/articles/360013321939">here</a>.</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>{{LANGUAGE_CODE}}</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>String</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>Optional </p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>languageCode default value : <code>en_US</code></p>
</td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>content</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>The body of the template.</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p> {{CONTENT}}</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>String</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>Required</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>content (not more than 1024 char.)</p>
</td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>category</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>The category of your template.</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p> {{CATEGORY}}</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>String</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>Required</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>Category Type: MARKETING UTILITY</p>
</td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>vertical</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>TEXT</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p> {{VERTICAL}}</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>String</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>Required</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>vertical (not more than 180 char.)</p>
</td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>templateType</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>CAROUSEL</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>{{TEMPLATE_TYPE}}</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>String</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>Required</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>The type of template: CAROUSEL  </p>
<p> Cards only to be passed if template type is CAROUSEL</p>
</td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>example</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>Template Example</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>{{EXAMPLE}}</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>String</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>Required</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"></td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>enableSample</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>Required for creating all types of templates</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>{{ENABLE_SAMPLE}}</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>true/false</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>Optional</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>if enableSample is true then exampleMedia</p>
</td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>buttons</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>buttons list</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p><code>[{&quot;type&quot;:&quot;COPY_CODE&quot;,&quot;example&quot;:&quot;250FF&quot;},{&quot;type&quot;:&quot;URL&quot;,&quot;text&quot;:&quot;Shop Now&quot;,&quot;url&quot;:&quot;&lt;https://www.luckyshrub.com/shop?promo={{1}}&quot;,&quot;example&quot;:[&quot;summer2023&quot;]},{&quot;type&quot;:&quot;URL&quot;,&quot;text&quot;:&quot;Website&quot;,&quot;url&quot;:&quot;https://www.luckyshrub.com/shop?promo={{1}}&quot;,&quot;example&quot;:[&quot;summer2023&quot;]},{&quot;type&quot;:&quot;PHONE_NUMBER&quot;,&quot;text&quot;:&quot;Call&quot;,&quot;phone_number&quot;:&quot;918016337728&quot;},{&quot;type&quot;:&quot;QUICK_REPLY&quot;,&quot;text&quot;:&quot;Yes&quot;},{&quot;type&quot;:&quot;QUICK_REPLY&quot;,&quot;text&quot;:&quot;No&quot;},{&quot;type&quot;:&quot;QUICK_REPLY&quot;,&quot;text&quot;:&quot;Unsubscribe&gt; from Promos&quot;},{&quot;type&quot;:&quot;QUICK_REPLY&quot;,&quot;text&quot;:&quot;Red&quot;},{&quot;type&quot;:&quot;QUICK_REPLY&quot;,&quot;text&quot;:&quot;Blue&quot;},{&quot;type&quot;:&quot;QUICK_REPLY&quot;,&quot;text&quot;:&quot;Green&quot;}]</code></p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>String</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>Required</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"></td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>hasExpiration</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>Set true to add expiration to LTO templates</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>{{HAS_EXPIRATION}}</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>Boolean</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>Required</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>Copy code button component required if &quot;has_expiration&quot; is set to true.</p>
</td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>isLTO</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>LTO creation param</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>{{ISLTO}}</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>Boolean</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>Required</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>Needs to be true to create LTO templates</p>
</td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>limitedOfferText</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>LTO creation param</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>{{LIMITED_OFFER_TEXT}}</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>String</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>Required</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"></td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>allowTemplateCategoryChange</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>Boolean value. If True, Meta will automatically update the template category as per the template content. The default value is False.</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>{{ALLOW_TEMPLATE_CATEGORY_CHANGE}}</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>true/false</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>Optional</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"></td>
</tr>
<tr>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>appId</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>App ID to fetch the access token</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>{{APP_ID}}</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>String</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>Required</p>
</td>
  <td style="border: 1px solid #ddd; padding: 8px;"><p>The Id should be a valid app Id of Gupshup  </p>
<p>The App must be associated with the account that owns the PARTNER_APP_TOKEN being used</p>
</td>
</tr>
</tbody>
</table>
`}</HTMLBlock>

## Sample Request

```curl
curl --request POST \
     --url https://partner.gupshup.io/partner/app/{{APP_ID}}/templates \
     --header 'accept: application/json' \
     --header 'content-type: application/x-www-form-urlencoded' \
     --header 'Authorization: sk_8eb35b1f81c24af293a405164a392f30' \
     --data hasExpiration=true \
     --data isLTO=true \
     --data elementName=lto_temp_1 \
     --data languageCode=en \
     --data 'content=Hi All, Here are our products.' \
     --data category=MARKETING \
     --data vertical=aaa \
     --data templateType=TEXT \
     --data 'example=Hi All, Here are our products.' \
     --data allowTemplateCategoryChange=false \
     --data enableSample=false \
     --data 'buttons=[{"type":"COPY_CODE","example":"250FF"},{"type":"URL","text":"Shop Now","url":"https://www.luckyshrub.com/shop?promo={{1}}","example":["summer2023"]},{"type":"URL","text":"Website","url":"https://www.luckyshrub.com/shop?promo={{1}}","example":["summer2023"]},{"type":"PHONE_NUMBER","text":"Call","phone_number":"918016337728"},{"type":"QUICK_REPLY","text":"Yes"},{"type":"QUICK_REPLY","text":"No"},{"type":"QUICK_REPLY","text":"Unsubscribe from Promos"},{"type":"QUICK_REPLY","text":"Red"},{"type":"QUICK_REPLY","text":"Blue"},{"type":"QUICK_REPLY","text":"Green"}]' \
     --data 'limitedOfferText=offer limited'
```

## Sample Response

```json
{
  "status": "success",
  "template": {
    "appId": "07c7c72d-xxxx-xxxx-xxxx-14d1186eeec8",
    "buttonSupported": "CC,PN,QR,URL",
    "category": "MARKETING",
    "containerMeta": "{\"appId\":\"07c7c72d-xxxx-xxxx-xxxx-14d1186eeec8\",\"data\":\"Hi All, Here are our products.\",\"buttons\":[{\"type\":\"COPY_CODE\",\"example\":\"250FF\"},{\"type\":\"URL\",\"text\":\"Shop Now\",\"url\":\"https://www.luckyshrub.com/shop?promo={{1}}\",\"example\":[\"summer2023\"]},{\"type\":\"URL\",\"text\":\"Website\",\"url\":\"https://www.luckyshrub.com/shop?promo={{1}}\",\"example\":[\"summer2023\"]},{\"type\":\"PHONE_NUMBER\",\"text\":\"Call\",\"phone_number\":\"918016337728\"},{\"type\":\"QUICK_REPLY\",\"text\":\"Yes\"},{\"type\":\"QUICK_REPLY\",\"text\":\"No\"},{\"type\":\"QUICK_REPLY\",\"text\":\"Unsubscribe from Promos\"},{\"type\":\"QUICK_REPLY\",\"text\":\"Red\"},{\"type\":\"QUICK_REPLY\",\"text\":\"Blue\"},{\"type\":\"QUICK_REPLY\",\"text\":\"Green\"}],\"sampleText\":\"Hi All, Here are our products.\",\"enableSample\":true,\"editTemplate\":false,\"allowTemplateCategoryChange\":false,\"addSecurityRecommendation\":false,\"limitedTimeOffer\":{\"text\":\"offer limited\",\"has_expiration\":true}}",
    "createdOn": 1720520894377,
    "data": "Hi All, Here are our products.\noffer limited | true | [Copy offer code,{{1}}] | [Shop Now,https://www.luckyshrub.com/shop?promo={{1}}] | [Website,https://www.luckyshrub.com/shop?promo={{1}}] | [Call,918016337728] | [Yes] | [No] | [Unsubscribe from Promos] | [Red] | [Blue] | [Green]",
    "elementName": "lto_temp_2",
    "id": "fe6be44e-11f1-4c31-8ea3-08c06b51ded9",
    "languageCode": "en",
    "languagePolicy": "deterministic",
    "meta": "{\"example\":\"Hi All, Here are our products.\"}",
    "modifiedOn": 1720520894377,
    "namespace": "5ff5f84e_789b_44df_80dd_6844d48a6a4a",
    "priority": 1,
    "quality": "UNKNOWN",
    "retry": 0,
    "stage": "NONE",
    "status": "PENDING",
    "templateType": "TEXT",
    "vertical": "aaa",
    "wabaId": "116676371511027"
  }
}
```

## Status Codes

| Status Code | Response                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | Comment                |
| :---------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------- |
| **Success** |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |                        |
| 200         | `{     "status": "success",     "template": {       "appId": "07c7c72d-20e3-4ff9-a5a1-14d1186eeec8",       "buttonSupported": "CC,PN,QR,URL",       "category": "MARKETING",       "containerMeta": "{\"appId\":\"07c7c72d-20e3-4ff9-a5a1-14d1186eeec8\",\"data\":\"Hi All, Here are our products.\",\"buttons\":\[{\"type\":\"COPY_CODE\",\"example\":\"250FF\"},{\"type\":\"URL\",\"text\":\"Shop Now\",\"url\":\"<https://www.luckyshrub.com/shop?promo={{1}}\",\"example\":[\"summer2023\"]},{\"type\":\"URL\",\"text\":\"Website\",\"url\":\"https://www.luckyshrub.com/shop?promo={{1}}\",\"example\":[\"summer2023\"]},{\"type\":\"PHONE_NUMBER\",\"text\":\"Call\",\"phone_number\":\"918016337728\"},{\"type\":\"QUICK_REPLY\",\"text\":\"Yes\"},{\"type\":\"QUICK_REPLY\",\"text\":\"No\"},{\"type\":\"QUICK_REPLY\",\"text\":\"Unsubscribe> from Promos\"},{\"type\":\"QUICK_REPLY\",\"text\":\"Red\"},{\"type\":\"QUICK_REPLY\",\"text\":\"Blue\"},{\"type\":\"QUICK_REPLY\",\"text\":\"Green\"}],\"sampleText\":\"Hi All, Here are our products.\",\"enableSample\":true,\"editTemplate\":false,\"allowTemplateCategoryChange\":false,\"addSecurityRecommendation\":false,\"limitedTimeOffer\":{\"text\":\"offer limited\",\"has_expiration\":true}}",       "createdOn": 1720520894377,       "data": "Hi All, Here are our products.\\noffer limited \| true \| [Copy offer code,{{1}}] \| [Shop Now,https://www.luckyshrub.com/shop?promo={{1}}] \| [Website,https://www.luckyshrub.com/shop?promo={{1}}] \| [Call,918016337728] \| [Yes] \| [No] \| [Unsubscribe from Promos] \| [Red] \| [Blue] \| [Green]",       "elementName": "lto_temp_2",       "id": "fe6be44e-11f1-4c31-8ea3-08c06b51ded9",       "languageCode": "en",       "languagePolicy": "deterministic",       "meta": "{\"example\":\"Hi All, Here are our products.\"}",       "modifiedOn": 1720520894377,       "namespace": "5ff5f84e_789b_44df_80dd_6844d48a6a4a",       "priority": 1,       "quality": "UNKNOWN",       "retry": 0,       "stage": "NONE",       "status": "PENDING",       "templateType": "TEXT",       "vertical": "aaa",       "wabaId": "116676371511027"     }   }` |                        |
| **Error**   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |                        |
| 429         | `{     "status": "error",     "message": "Too Many Requests"   }`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | 10 Requests per Minute |
| 500         | `{     "status": "error",     "message": "Internal server error. Please try again later and If Issue still persist than contact Gupshup Dev Support"   }`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | For any Internal Error |

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "LTO Template (Text Type )",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://partner.gupshup.io"
    }
  ],
  "paths": {
    "/partner/app/{appId}/templates": {
      "post": {
        "tags": [
          "default"
        ],
        "summary": "LTO (Text Type Template)",
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": [
                  "elementName",
                  "category",
                  "templateType",
                  "content",
                  "example",
                  "vertical",
                  "buttons",
                  "hasExpiration",
                  "limitedOfferText",
                  "isLTO"
                ],
                "properties": {
                  "elementName": {
                    "type": "string",
                    "description": "The name of a template. Element name is unique for a WABAs namespace.",
                    "example": "automation_lto"
                  },
                  "languageCode": {
                    "type": "string",
                    "description": "Language code for the template. Refer to all the language codes here.",
                    "example": "en"
                  },
                  "content": {
                    "type": "string",
                    "description": "The body of the template.",
                    "example": "Hi User, check out"
                  },
                  "category": {
                    "type": "string",
                    "description": "The category of your template. ",
                    "example": "MARKETING"
                  },
                  "vertical": {
                    "type": "string",
                    "description": "vertical (not more than 180 char.)",
                    "example": "vertical"
                  },
                  "templateType": {
                    "type": "string",
                    "description": "The type of template",
                    "example": "TEXT"
                  },
                  "example": {
                    "type": "string",
                    "description": "Template Example",
                    "example": "Hi User, check out."
                  },
                  "allowTemplateCategoryChange": {
                    "type": "boolean",
                    "description": "Boolean value. If True, Meta will automatically update the category of the template as per the template content. Default value is False.",
                    "example": "true"
                  },
                  "enableSample": {
                    "type": "boolean",
                    "description": "Boolean value",
                    "example": "true"
                  },
                  "buttons": {
                    "type": "string",
                    "description": "Button list",
                    "example": "[{\"type\":\"COPY_CODE\",\"example\":\"250FF\"},{\"type\":\"URL\",\"text\":\"Shop Now\",\"url\":\"https://www.luckyshrub.com/shop?promo={{1}}\",\"example\":[\"summer2023\"]},{\"type\":\"URL\",\"text\":\"Website\",\"url\":\"https://www.luckyshrub.com/shop?promo={{1}}\",\"example\":[\"summer2023\"]},{\"type\":\"PHONE_NUMBER\",\"text\":\"Call\",\"phone_number\":\"918016337728\"},{\"type\":\"QUICK_REPLY\",\"text\":\"Yes\"},{\"type\":\"QUICK_REPLY\",\"text\":\"No\"},{\"type\":\"QUICK_REPLY\",\"text\":\"Unsubscribe from Promos\"},{\"type\":\"QUICK_REPLY\",\"text\":\"Red\"},{\"type\":\"QUICK_REPLY\",\"text\":\"Blue\"},{\"type\":\"QUICK_REPLY\",\"text\":\"Green\"}]"
                  },
                  "hasExpiration": {
                    "type": "boolean",
                    "description": "Set true to add expiration to LTO templates",
                    "example": "true"
                  },
                  "isLTO": {
                    "type": "boolean",
                    "description": "Needs to be true to create LTO templates",
                    "example": "true"
                  },
                  "limitedOfferText": {
                    "type": "string",
                    "description": "LTO creation param",
                    "example": "limited offer"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "header",
            "schema": {
              "type": "string"
            },
            "description": "Your app token, please refer [**Get access token api**](https://docs.gupshup.io/reference/get_partner-app-appid-token) to get the token from partner documentation.",
            "example": "sk_61b3021c97214370b341f8baaae0xxxx",
            "required": true
          },
          {
            "name": "appId",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "Unique identifier of the app.",
            "example": "9e97650d-xxxx-xxxx-xxxx-4cdf47c3fa68"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "success"
                    },
                    "template": {
                      "type": "object",
                      "properties": {
                        "appId": {
                          "type": "string",
                          "example": "a41b30f4-d202-4fdb-911e-3a8fbfbfb797"
                        },
                        "buttonSupported": {
                          "type": "string",
                          "example": "CC,PN,QR,URL"
                        },
                        "category": {
                          "type": "string",
                          "example": "MARKETING"
                        },
                        "containerMeta": {
                          "type": "string",
                          "example": {
                            "appId": "a41b30f4-d202-4fdb-911e-3a8fbfbfb797",
                            "data": "Hi All Dear SpiderMan, Here are our products.",
                            "buttons": [
                              {
                                "type": "COPY_CODE",
                                "example": "250FF"
                              },
                              {
                                "type": "URL",
                                "text": "Shop Now",
                                "url": "https://www.luckyshrub.com/shop?promo={{1}}",
                                "example": [
                                  "summer2023"
                                ]
                              },
                              {
                                "type": "URL",
                                "text": "Website",
                                "url": "https://www.luckyshrub.com/shop?promo={{1}}",
                                "example": [
                                  "summer2023"
                                ]
                              },
                              {
                                "type": "PHONE_NUMBER",
                                "text": "Call",
                                "phone_number": "918016337728"
                              },
                              {
                                "type": "QUICK_REPLY",
                                "text": "Yes"
                              },
                              {
                                "type": "QUICK_REPLY",
                                "text": "No"
                              },
                              {
                                "type": "QUICK_REPLY",
                                "text": "Unsubscribe from Promos"
                              },
                              {
                                "type": "QUICK_REPLY",
                                "text": "Red"
                              },
                              {
                                "type": "QUICK_REPLY",
                                "text": "Blue"
                              },
                              {
                                "type": "QUICK_REPLY",
                                "text": "Green"
                              }
                            ],
                            "sampleText": "Hi All Dear SpiderMan, Here are our products.",
                            "enableSample": true,
                            "editTemplate": false,
                            "allowTemplateCategoryChange": false,
                            "addSecurityRecommendation": false,
                            "limitedTimeOffer": {
                              "text": "offer limited",
                              "has_expiration": true
                            }
                          }
                        },
                        "createdOn": {
                          "type": "integer",
                          "format": "int64",
                          "example": "1715610825823"
                        },
                        "data": {
                          "type": "string",
                          "example": "Hi All Dear SpiderMan, Here are our products offer limited | true | [Copy offer code,{{1}}] | [Shop Now,https://www.luckyshrub.com/shop?promo={{1}}] | [Website,https://www.luckyshrub.com/shop?promo={{1}}] | [Call,918016337728] | [Yes] | [No] | [Unsubscribe from Promos] | [Red] | [Blue] | [Green]"
                        },
                        "elementName": {
                          "type": "string",
                          "example": "lto_newbv"
                        },
                        "id": {
                          "type": "string",
                          "example": "b72c5f8d-5fdd-44a6-9207-56e0dbb34dda"
                        },
                        "languageCode": {
                          "type": "string",
                          "example": "en"
                        },
                        "languagePolicy": {
                          "type": "string",
                          "example": "deterministic"
                        },
                        "meta": {
                          "type": "string",
                          "example": {
                            "example": "Hi All Dear SpiderMan, Here are our products."
                          }
                        },
                        "modifiedOn": {
                          "type": "integer",
                          "format": "int64",
                          "example": "1715610825823"
                        },
                        "namespace": {
                          "type": "string",
                          "example": "9c7fe92f_2a48_40ec_83d0_69c62a772433"
                        },
                        "priority": {
                          "type": "integer",
                          "format": "int32",
                          "example": "1"
                        },
                        "quality": {
                          "type": "string",
                          "example": "UNKNOWN"
                        },
                        "retry": {
                          "type": "integer",
                          "format": "int32",
                          "example": "0"
                        },
                        "stage": {
                          "type": "string",
                          "example": "NONE"
                        },
                        "status": {
                          "type": "string",
                          "example": "PENDING"
                        },
                        "templateType": {
                          "type": "string",
                          "example": "TEXT"
                        },
                        "vertical": {
                          "type": "string",
                          "example": "aaa"
                        },
                        "wabaId": {
                          "type": "string",
                          "example": "104505526065633"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Too Many Requests"
                    },
                    "status": {
                      "type": "string",
                      "example": "error"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    },
                    "status": {
                      "type": "string",
                      "example": "error"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```