Autional Autional
API Reference GitHub autional.com →

POST /internal/notification/templates

Internal API called by seed script to create a template by passing template title, locale, etc. in the request body. Protected by InternalAPIKeyMulti.

Notification Service - Internal None application/json

Request Body

Schema: dto.InternalCreateTemplateRequest

FieldTypeRequiredExampleConstraintsDescription
code string No
content string No
format string No
locale string No
name string No
priority string No
title string No
type string No
variables array of

string

No

Responses

StatusDescriptionSchema
201Created successfullydto.DataResponse-dto_TemplateResponse
400Invalid request parametersgitee_com_linmes_authms_base_dto.SimpleResponse
401No valid X-API-Key providedgitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.DataResponse-dto_TemplateResponse

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

dto.TemplateResponse

Notification template info

FieldTypeRequiredExampleConstraintsDescription
content string No Dear {{user_name}}, welcome to {{app_name}}! Content
created_at string No 2026-01-01T00:00:00Z Creation time
name string No welcome_notification Template name
subject string No Welcome to {{app_name}} Subject
template_id string No tpl_abc123 Template ID
type string No system Type
variables array of

string

No ['["user_name"', '"app_name"]'] Variables

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No