Templates
Get List of Templates
Use this API to retrieve a paginated list of templates with their details, including template name, type, current version, and status.
get/api/cmp/v1/templates
Query parameters
searchStrstring
Search string to filter templates by name
sortBy'templateName' | 'templateType' | 'status' | 'currentVersion'
Field to sort by.
direction'asc' | 'desc'
Sort direction.
pageinteger
Example:1
The page number for pagination results, starting from 0.
sizeinteger
Example:10
The number of items to return per page.
Response
OK
Example response
{
"content": [
{
"id": "f2229953-b4b5-4042-8cb9-b78038cc4c46",
"currentVersion": 12,
"templateName": "my-template-2026",
"templateType": "GDPR",
"status": "DRAFTED",
"orgId": "org-123",
"orgName": "OneTrust",
"languages": [
"en",
"fr-CA",
"es"
]
}
]
}