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

# List all templates

`GET /templates`

## Request

- Base URL: `https://priorityprotect-api.datadome.co/v1`
- URL: `https://priorityprotect-api.datadome.co/v1/templates`
- Auth: API key in header `x-api-key`

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.dev/datadome/apis/priority-protect-management-api.md) - [All operations](https://skmtc.dev/datadome/apis/priority-protect-management-api/llms.txt) - [OpenAPI document](https://skmtc.dev/datadome/apis/priority-protect-management-api/revisions/0eb7133cb637?raw)
