Fetch Template List
Changed onAPI to fetch paginated list of all templates in a given workspace.
get/v1/template/
Request
- Base URLhttps://hub.suprsend.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
has_tags_anystring
comma separated string of tag names attached to the template. Returns templates that have any of the given tags.
has_channels_anystring
comma separated string of channels. Returns templates which has any of the channels present from the channel string. Use these keys for channels - email, sms, whatsapp, inbox, slack, androidpush, iospush, webpush
is_activeboolean
Set true for published templates, false for templates which are in draft. Do not pass this key to return all templates.
is_archivedboolean
Set true to get archived templates, default = false
Response
200
Example response
{
"meta": {
"count": 1,
"limit": 10
},
"results": [
{
"default_language": {
"name": "English",
"slug": "en"
},
"tags": [
{
"id": "01H9HPT1C5ABN61S12D85J9DJ7",
"name": "tag"
}
]
}
]
}Changes
- warning
deleted the
queryrequest parameterhas_tag_ids_any - info
added the new optional
queryrequest parameterhas_tags_any
- warning
- breaking
api path removed without deprecation
- info
endpoint added
- breaking