---
title: "Get List of Templates"
method: GET
path: "/api/template/v1/published-template-metadata"
tags: ["Template"]
---

# Get List of Templates

`GET /api/template/v1/published-template-metadata`

## Request

- Base URL: `https://hostname`
- URL: `https://hostname/api/template/v1/published-template-metadata`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://{hostname}/api/access/v1/oauth/token` scopes: `INTEGRATION`, `ASSESSMENT_READ`, `ASSESSMENT`

Use this API to retrieve the details of all the published templates. The response includes basic template details such as the template name, template root version ID, and template type.

 > 🗒 Things to Know
 > 
 > - The following template types are available:
 > 
 > <details>
 > 
 > <summary><b>Template Types</b></summary>
 > 
 > CONTROL: Control templates created in IT & Security Risk Management
 > 
 > DISCLOSURE: Disclosure Management
 > 
 > ESG: ESG Program Reporting & Disclosures
 > 
 > EXCHANGE: Third-Party Risk Exchange
 > 
 > INCIDENT: Incident Management
 > 
 > ITRM: IT & Security Risk Management
 > 
 > PIA: PIA & DPIA Automation
 > 
 > VENDOR: Third-Party Risk Management
 > 
 > </details>
 > 
 > - If the template type is not specified in the API request body, all template types will be included in the response.

## Query parameters

- `template-types` string[]

## Response `200`

OK

- TemplateTemplateBasicDetailsDto[]
  - `name` string: The display name of the published template.
  - `rootVersionId` string, uuid: The root version identifier used for template management and operations.
  - `templateType` 'PIA' | 'VENDOR' | 'ITRM' | 'CONTROL' | 'ESG' | 'TPDD' | 'AIGOVERNANCE': The classification type of the template indicating its purpose and module.

## 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.dev/onetrust/apis/privacy-automation-assessment-automation.md) - [All operations](https://skmtc.dev/onetrust/apis/privacy-automation-assessment-automation/llms.txt) - [OpenAPI document](https://skmtc.dev/onetrust/apis/privacy-automation-assessment-automation/revisions/fbdf0c71bfe5?raw)
