POST /internal/notification/send-external

内部 API:按模板 code 渲染后投递 email/sms(不创建站内通知)。 供无用户上下文的路径使用:Trust Center 订阅确认/退订、状态页订阅双确认(A5/A6)。 受 InternalAPIKeyMulti + X-Tenant-ID 保护;locale 缺省 zh-CN。

通知服务 - 内部接口 None application/json

请求参数

名称位置类型必填默认值示例约束描述
X-Tenant-ID header string 是 租户ID

请求体

Schema: service-notification/internal/handler/dto.InternalSendExternalRequest

字段类型必填示例约束描述
channel string 是 email
recipient string 是 user@example.com
template_code string 是 status_subscription_confirm
locale string 否 en-US
variables object 否 extra keys: `string`

响应

状态描述Schema
200已入队service-core/base/dto.SimpleResponse
400请求参数无效service-core/base/dto.SimpleResponse
401未提供有效的X-API-Keyservice-core/base/dto.SimpleResponse
404模板未找到或未启用service-core/base/dto.SimpleResponse
500服务内部错误service-core/base/dto.SimpleResponse

引用的 Schema

service-core/base/dto.SimpleResponse

字段类型必填示例约束描述
code integer 否
message string 否
timestamp string 否