Docs › API Reference › Communication Service › GET /admin/communication/templates/{template_id}/versions
GET /admin/communication/templates/{template_id}/versions
Get all historical versions of a template by template ID. Each update increments the version number and saves a snapshot for change tracking and version rollback reference. References: ePrivacy Directive 2002/58/EC, CAN-SPAM Act.
Communication Service `bearerAuth` application/json
Request Parameters
Name In Type Required Default Example Constraints Description
id
path
string
Yes
Template ID
Referenced Schemas
dto.PageInfo
Field Type Required Example Constraints Description
has_next
boolean
No
HasNext indicates whether there is a next page
has_prev
boolean
No
HasPrev indicates whether there is a previous page
page
integer
No
Page is the current page number (1-based)
page_size
integer
No
PageSize is the number of items per page
total
integer
No
Total is the total number of items across all pages
total_pages
integer
No
TotalPages is the total number of pages
dto.SimpleResponse
Field Type Required Example Constraints Description
code
integer
No
message
string
No
timestamp
string
No
dto.TemplateVersionListResponse
Field Type Required Example Constraints Description
code
integer
No
items
array ofSee dto.TemplateVersionResponse
No
Unified use of items
message
string
No
pagination
object
No
Pagination information (nested object)
timestamp
string
No
total
integer
No
Total count (flattened for direct reading)
dto.TemplateVersionResponse
Field Type Required Example Constraints Description
changed_by
string
No
usr_abc123
channel
string
No
sms
code
string
No
verify_code
content
string
No
Your verification code is {code}, valid for 5 minutes.
content_type
string
No
text
created_at
string
No
2026-04-15T10:00:00Z
id
string
No
tv_abc123
name
string
No
Verification code template
subject
string
No
Verification code notification
template_id
string
No
tpl_abc123
text_content
string
No
variables
string
No
["code"]
version
integer
No
3