Autional Autional
API Reference GitHub autional.com →

POST /notifications/send-batch

Send the same notification message to multiple users simultaneously, suitable for system announcements, operational activities, etc. Reference: CAN-SPAM Act (15 U.S.C. §7701) — Commercial Email Compliance.

Notification Service `bearerAuth` application/json

Request Body

Schema: dto.BatchSendNotificationRequest

FieldTypeRequiredExampleConstraintsDescription
content string Yes Your account has been successfully upgraded Content
title string Yes System notification Title
user_ids array of

string

Yes ['usr_001', 'usr_002'] User ID list
priority string No medium Priority
type string No system Type

Responses

StatusDescriptionSchema
201Batch sent successfullydto.BatchSendNotificationDetailResponse
400Invalid request parametersgitee_com_linmes_authms_base_dto.SimpleResponse
401Unauthenticatedgitee_com_linmes_authms_base_dto.SimpleResponse
403Insufficient permissionsgitee_com_linmes_authms_base_dto.SimpleResponse
404Resource not foundgitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.BatchSendNotificationDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.BatchSendNotificationResponse No
message string No

dto.BatchSendNotificationResponse

Batch send notification result

FieldTypeRequiredExampleConstraintsDescription
notification_ids array of

string

No ['["ntf_001"]'] Notification ID list
sent_count integer No 5 Sent count

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No