Autional Autional
API Reference GitHub autional.com →

GET /communication/templates

Paginated query of message template list for the current tenant. Supports filtering by send channel (sms/email/push), activation status, and keyword (template name/code). References: ePrivacy Directive 2002/58/EC, CAN-SPAM Act.

Communication Service `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
channel query string No Channel filter: sms/email/push
is_active query boolean No Activation status filter: true/false
keyword query string No Keyword search (matches template name or code)
page query integer No Page number, starting from 1 (default 1)
page_size query integer No Items per page (default 20)

Responses

StatusDescriptionSchema
200Query successful, returns template listdto.TemplateListResponse
400Invalid request parametersdto.SimpleResponse
401Unauthenticated or invalid tokendto.SimpleResponse
403Insufficient permissions to access this resourcedto.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.TemplateListResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
items array of

See dto.TemplateResponse

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

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