---
title: "Get List of Templates"
method: GET
path: "/api/cmp/v1/templates"
tags: ["Templates"]
---

# Get List of Templates

`GET /api/cmp/v1/templates`

Use this API to retrieve a paginated list of templates with their details, including template name, type, current version, and status.

## Query parameters

- `searchStr` string
- `sortBy` 'templateName' | 'templateType' | 'status' | 'currentVersion'
- `direction` 'asc' | 'desc'
- `page` integer
- `size` integer

## Response `200`

OK

- PageTemplateDto
  - `totalPages` integer
  - `totalElements` integer
  - `size` integer
  - `content` TemplateDto[]
    - `id` string, uuid — UUID of the template
    - `currentVersion` integer — The current version number of the template
    - `templateName` string — Name of the template
    - `templateType` 'GDPR' | 'IAB' | 'CCPA' | 'IAB2' | 'GENERIC' | 'LGPD' | 'GENERIC_PROMPT' | 'CPRA' | 'CDPA' | 'USNATIONAL' | 'COLORADO' | 'CTDPA' | 'UCPA' | 'QUEBEC' | 'IABC' | 'IAB2V2' | 'OCPA' | 'MODPA' | 'VCDPA' | 'UKGDPR' | 'CUSTOM' — The category of the template
    - `status` 'DRAFTED' | 'ACTIVATED' — The template's status, published if status is ACTIVATED
    - `isDefault` boolean — Indicates if the template is the default template
    - `isUniversalDefault` boolean — Indicates if the template is the universal default template
    - `isOrgDefault` boolean — Indicates if the template is the default template for the organization
    - `orgDefaultEnabled` boolean — Indicates if the organization default is enabled
    - `orgId` string — Organization ID
    - `orgName` string — Organization name
    - `languages` string[] — List of enabled language codes for this template
  - `number` integer
  - `sort` SortObject
    - `empty` boolean
    - `sorted` boolean
    - `unsorted` boolean
  - `pageable` PageableObject
    - `offset` integer
    - `sort` SortObject
      - `empty` boolean
      - `sorted` boolean
      - `unsorted` boolean
    - `pageNumber` integer
    - `pageSize` integer
    - `paged` boolean
    - `unpaged` boolean
  - `first` boolean
  - `last` boolean
  - `numberOfElements` integer
  - `empty` boolean

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `429` — Too Many Requests. For more information, see [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview).
- `500` — Internal Server Error

---

[API](https://skmtc.net/onetrust/apis/platform-access-management.md) · [All operations](https://skmtc.net/onetrust/apis/platform-access-management/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/onetrust/platform-access-management/versions/21de3aa0b170/schema)
