v2

latestOpenAPI 3.1.12026-07-2613060964.2 KB

Fetch Template List

API to fetch paginated list of all templates in a given workspace.

get/v1/template/

Query parameters

has_tag_ids_anystring

comma separated string of tag ids attached to the template

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"
        }
      ]
    }
  ]
}