---
title: "Get a list of templates"
method: GET
path: "/templates"
tags: ["Endpoints"]
---

# Get a list of templates

`GET /templates`

This endpoint retrieves a list of available templates stored in eTrusted.

The result set can be filtered by adding request parameters.

## Query parameters

- `type` 'QUESTIONNAIRE' | 'INVITE' | 'REMINDER' | 'DOUBLE_OPT_IN_REVIEW' | 'REVIEW_REPLY' — The template type.
- `transport` 'EMAIL' | 'SMS' — the template transport type.
- `version` string
- `isGlobal` boolean
- `isDefault` boolean
- `hasTranslations` boolean

## Headers

- `Authorization` string, required

## Response `200`

All templates matching the filter settings of the request.

- Template[] — A list of templates.
  - `id` string — The unique template ID.
  - `type` 'QUESTIONNAIRE' | 'INVITE' | 'REMINDER' | 'DOUBLE_OPT_IN_REVIEW' | 'REVIEW_REPLY' — The template type.
  - `name` string — The template name.
  - `version` string — The template version.
  - `description` string — A description that optionally states what the template is used for.
  - `transport` string — The temmplate transport type.
  - `path` string — A URL path to the template.
  - `locales` string[] — A list of locales representing the languages the template is available in. Locales must be in [glibc locale format](https://lh.2xlibre.net/locales/).
  - `isGlobal` boolean — A flag that reflects whether the template is available to all accounts or not.
  - `isDefault` boolean — A flag that reflects whether the template is a default template.
  - `hasTranslations` boolean — A flag that reflects whether the template has translations or not.
  - `createdAt` string, date-time — The date and time when the template was created, in the ISO 8601 and RFC3339 compliant format `yyyy-MM-dd’T’HH:mm:ss.SSSZ`. Check the [glossary](/docs/glossory#iso-8601) for examples of valid datetime formats.
  - `updatedAt` string, date-time — The date and time when the template was last modified, in the ISO 8601 and RFC3339 compliant format `yyyy-MM-dd’T’HH:mm:ss.SSSZ`. Check the [glossary](/docs/glossory#iso-8601) for examples of valid datetime formats.

---

[API](https://skmtc.net/etrusted/apis/accounts-api.md) · [All operations](https://skmtc.net/etrusted/apis/accounts-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/etrusted/accounts-api/versions/649ef7dac98c/schema)
