List templates for app

Returns the message templates registered against a WhatsApp app, with optional filters for type, status, element name, and creation window.

Request parameters

Path parameters

KeyDescriptionValuesData TypeRequired/Optional
appIdIdentifier of the WhatsApp app the call acts on.6f414190-d45c-4671-bca1-fb6c3018cb13StringRequired

Query parameters

KeyDescriptionValuesData TypeRequired/Optional
templateTypeFilter by template type. Valid values: TEXT, IMAGE, DOCUMENT, VIDEO, LOCATION, PRODUCT, CATALOG, CAROUSEL, ORDER_STATUS, GIF. Any other value is rejected with 400; it used to be forwarded to the upstream service, which ignored it and returned every template.TEXTStringOptional
useableOnly usable templatestrueBooleanOptional
stagesPipeline stages filterAPPROVEDStringOptional
elementNameFilter by template element name. Omit it to list every template; supplying it blank or whitespace-only is rejected with 400, because upstream would otherwise ignore the filter and return everything as if it had matched.hello_worldStringOptional
startTimeCreated after (epoch ms)1779000000000IntegerOptional
endTimeCreated before (epoch ms)1779099999999IntegerOptional
statusStatus filterAPPROVEDStringOptional
dataAdditional filter payload—StringOptional
pageNoPage number, 0-based. Must not be negative (400). A page past the end is allowed and returns an empty page.0IntegerOptional
pageSizePage size. Must not be negative (400).20IntegerOptional

Sample cURL — List templates for app.

curl --request GET \
  --url 'https://partner.gupshup.io/partner/bizgate/app/6f414190-d45c-4671-bca1-fb6c3018cb13/template?templateType=TEXT&useable=true&stages=APPROVED&elementName=hello_world&startTime=1779000000000&endTime=1779099999999&status=APPROVED&pageNo=0&pageSize=20' \
  --header 'Authorization: Bearer <UT>' \
  --header 'Accept: application/json'

Sample success response (200)

{
  "status": "success",
  "templates": [
    {
      "id": "tpl-1001",
      "elementName": "hello_world",
      "languageCode": "en",
      "category": "UTILITY",
      "status": "APPROVED",
      "templateType": "TEXT"
    }
  ]
}
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Identifier of the WhatsApp app the call acts on.

Query Params
string

Filter by template type. Valid values: TEXT, IMAGE, DOCUMENT, VIDEO, LOCATION, PRODUCT, CATALOG, CAROUSEL, ORDER_STATUS, GIF. Any other value is rejected with 400; it used to be forwarded to the upstream service, which ignored it and returned every template.

boolean

Only usable templates

string

Pipeline stages filter

string

Filter by template element name. Omit it to list every template; supplying it blank or whitespace-only is rejected with 400, because upstream would otherwise ignore the filter and return everything as if it had matched.

int64

Created after (epoch ms)

int64

Created before (epoch ms)

string

Status filter

string

Additional filter payload

int32

Page number, 0-based. Must not be negative (400). A page past the end is allowed and returns an empty page.

int32

Page size. Must not be negative (400).

Responses

Language
Credentials
Bearer
Universal Token (UT)
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json