---
title: "List all templates"
method: GET
path: "/templates"
tags: ["Templates"]
---

# List all templates

`GET /templates`

Returns a list of all templates ordered by name, with usage count.

## Response `200`

Array of template objects.

- Template[]
  - `id` string, uuid — System-generated unique identifier for the template.
  - `name` string — Name of the template.
  - `template` string — The customer-facing HTML content of the waiting room page. Limited to 50 KB. Must be a complete HTML5 document: `<!DOCTYPE html>`, `<html>`, `<head>`, `<body>`, and explicit `</body>` then `</html>`.
  - `assignedPrioritiesCount` integer — Number of priorities currently using this template.
  - `createdAt` string, date-time — Timestamp when the template was created (ISO 8601 UTC).
  - `updatedAt` string, date-time — Timestamp when the template was last updated (ISO 8601 UTC).

## Other responses

- `401` — Unauthorized - missing or invalid API key.
- `403` — Forbidden. The provided API key is valid, but the user does not have sufficient permissions to perform this operation.

---

[API](https://skmtc.net/datadome/apis/protection-api.md) · [All operations](https://skmtc.net/datadome/apis/protection-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datadome/protection-api/versions/2576052958eb/schema)
