---
title: "List all templates"
method: GET
path: "/templates/{template_type}"
tags: ["Email & SMS Templates"]
deprecated: true
---

# List all templates

`GET /templates/{template_type}`

> **Deprecated.**

Returns a list of all templates.
The templates are returned sorted by position.

## Path parameters

- `template_type` 'email' | 'sms', required

## Query parameters

- `paginated` boolean
- `limit` integer
- `offset` integer

## Response `200`

Success

- Template[]
  - `id` string
  - `object` 'template' — String representing the object's type. Objects of the same type share the same value.
  - `instance_id` string, nullable — The ID of the instance to which the template belongs
  - `resource_type` string — whether this is a system (default) or user overridden) template
  - `template_type` string — whether this is an email or SMS template
  - `name` string — user-friendly name of the template
  - `slug` string — machine-friendly name of the template
  - `position` integer — position with the listing of templates
  - `can_revert` boolean — whether this template can be reverted to the corresponding system default
  - `can_delete` boolean — whether this template can be deleted
  - `can_edit_body` boolean — whether the body of this template can be edited
  - `can_toggle` boolean — whether this template can be enabled or disabled, true only for notification SMS templates
  - `subject` string, nullable — email subject
  - `markup` string — the editor markup used to generate the body of the template
  - `body` string — the template body before variable interpolation
  - `available_variables` string[] — list of variables that are available for use in the template body
  - `required_variables` string[] — list of variables that must be contained in the template body
  - `from_email_name` string
  - `reply_to_email_name` string
  - `delivered_by_clerk` boolean
  - `enabled` boolean
  - `flagged_as_suspicious` boolean
  - `updated_at` integer — Unix timestamp of last update.
  - `created_at` integer — Unix timestamp of creation.

## Other responses

- `400` — Request was not successful
- `401` — Authentication invalid
- `422` — Invalid request parameters

---

[API](https://skmtc.dev/clerk/apis/clerk-backend-api.md) · [All operations](https://skmtc.dev/clerk/apis/clerk-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/clerk/clerk-backend-api/revisions/75df3a43fcb2/schema)
