Autional Autional
API Reference GitHub autional.com →

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

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes Template ID

Responses

StatusDescriptionSchema
200Query successful, returns version history listdto.TemplateVersionListResponse
400Invalid request parametersdto.SimpleResponse
401Unauthenticated or invalid tokendto.SimpleResponse
403Insufficient permissions to access this resourcedto.SimpleResponse
404Template not founddto.SimpleResponse
500Internal server errordto.SimpleResponse

Referenced Schemas

dto.PageInfo

FieldTypeRequiredExampleConstraintsDescription
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

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No

dto.TemplateVersionListResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
items array of

See 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

FieldTypeRequiredExampleConstraintsDescription
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