Autional Autional
API Reference GitHub autional.com →

POST /admin/communication/templates/{template_id}/clone-to-locale

Copy all fields (name, content, variables, etc.) of a source template to a target locale, keeping the same template code. Used for quickly creating multilingual templates. If a template with the same name already exists in the target locale, returns 409 conflict. References: ePrivacy Directive 2002/58/EC, CAN-SPAM Act.

Communication Service `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes Source template ID

Request Body

Schema: dto.CloneTemplateToLocaleRequest

FieldTypeRequiredExampleConstraintsDescription
target_locale string Yes en-US
content string No
subject string No

Responses

StatusDescriptionSchema
200Copy successful, returns new template detailsdto.MessageTemplateDetailResponse
400Invalid request parametersdto.SimpleResponse
401Unauthenticated or invalid tokendto.SimpleResponse
403Insufficient permissions to access this resourcedto.SimpleResponse
404Source template not founddto.SimpleResponse
409A template with the same name already exists in the target localedto.SimpleResponse
500Internal server errordto.SimpleResponse

Referenced Schemas

dto.MessageTemplateDetailResponse

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

dto.MessageTemplateResponse

Message template data

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
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

dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No