Autional Autional
API Reference GitHub autional.com →

GET /communication/templates/{template_id}

Get complete information of a message template by template ID, including a rendering example (showing the actual rendered effect using sample variable values). 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 template details (with rendering example)dto.TemplateDetailDataResponse
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.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No

dto.TemplateDetailDataResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.TemplateDetailResponse No
message string No
timestamp string No

dto.TemplateDetailResponse

Template detail data (including rendering example)

FieldTypeRequiredExampleConstraintsDescription
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
description string No Used to send login verification codes.
id string No tpl_abc123
is_active boolean No True
name string No Verification code template
render_example string No Your verification code is [code], valid for 5 minutes.
subject string No Verification code notification
tenant_id string No tnt_xyz789
updated_at string No 2026-04-15T10:00:00Z
variables array of

string

No ['["code"]']
version integer No 1