Autional Autional
API Reference GitHub autional.com →

GET /communication/template-stats

Returns statistics of send volume, successful deliveries, and failures for each template in the current tenant over the last 30 days, for template performance analysis. 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

Responses

StatusDescriptionSchema
200Query successful, returns statistics for each templatedto.TemplateStatsListResponse
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.TemplateStatsListResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
items array of

See dto.TemplateStatsResponse

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

FieldTypeRequiredExampleConstraintsDescription
channel string No sms
delivered integer No 480
failed integer No 20
template_code string No verify_code
total_sent integer No 500