Get Templates

Use this API to get the list of templates for your Gupshup App

You will get the rejection reason for templates.

Note: Starting from 29th March 2023, Meta will migrate your templates to the new categories. Once we get the new category for your template, the old template category will be associated with the parameter oldCategory, and the new category will be associated with the parameter category. You will not see the oldCategory parameter until the new category is received. You will also receive a template category-update event on your callback URL notifying of the change. Learn more about it here.

Parameters

KeyDescriptionRequired/OptionalTypeValue
AuthorizationAccess Token for the applicationRequiredString{{PARTNER_APP_TOKEN}}
APP IDUnique Identifier for Gupshup AppRequiredString{{APP_ID}}

Sample Request

curl --location --request GET 'https://partner.gupshup.io/partner/app/{{APP_ID}}/templates' \
--header 'Authorization: {{PARTNER_APP_TOKEN}}'

Sample Response

{
  "status": "success",
  "templates": [
    {
      "appId": "*****ba3-f***-4**0-9e*2-ba*****n6**9",
      "category": "MARKETING",
      "createdOn": 1671619377053,
      "data": "Happiness & Growth is all we wish for you this Holiday season.\nHappy Holidays & a happy New Year 2023.",
      "elementName": "mrry_chis",
      "externalId": "70*******1",
      "id": "00b2****-****-4788-9b66-b******ccd",
      "internalCategory": 0,
      "internalType": 0,
      "languageCode": "en",
      "languagePolicy": "deterministic",
      "meta": "{\"example\":\"Happiness & Growth is all we wish for you this Holiday season.\\nHappy Holidays & a happy New Year 2023.\"}",
      "modifiedOn": 1678794041479,
      "namespace": "ef**0**3_e5c4_4**e_9803_2*****90d81b",
      "priority": 1,
      "quality": "UNKNOWN",
      "retry": 0,
      "stage": "NONE",
      "status": "APPROVED",
      "templateType": "VIDEO",
      "vertical": "account update",
      "wabaId": "***********99"
    },
    {
      "appId": "24***a3-f4**-4c10-9**2-b****n63d9",
      "category": "UTILITY",
      "createdOn": 1657531748839,
      "data": "Hi {{1}}\n\nYou have received {{1}} catalog from {{2}} which will expire in {{3}} hours.\n\nSelect your designs before its too late. | [View Catalog,https://app.tanika.tech/{{1}}]",
      "elementName": "tanika_supplier_ts_gs_7",
      "id": "00****5a-b**5-**a3-8***-******6c54b1",
      "internalCategory": 0,
      "internalType": 0,
      "languageCode": "en",
      "languagePolicy": "deterministic",
      "meta": "{\"example\":\"Hi [*User*]\\n\\nYou have received [*1234*] catalog from [*5678*] which will expire in [*1800*] hours.\\n\\nSelect your designs before its too late.\"}",
      "modifiedOn": 1657531749100,
      "namespace": "ef****f3_e5c4_42de_9***_20*****0d81b",
      "priority": 1,
      "quality": "UNKNOWN",
      "reason": "component of type BODY is missing expected field(s) (example)",
      "retry": 0,
      "stage": "NONE",
      "status": "REJECTED",
      "templateType": "TEXT",
      "vertical": "ACCOUNT_UPDATE",
      "wabaId": "1*********507"
    }
    ]
}
      
Language
Click Try It! to start a request and see the response here!