Autional Autional
API Reference GitHub autional.com →

POST /notifications/send

Compatibility endpoint with same functionality as /notifications, sends notification to specified user. Reference: CAN-SPAM Act (15 U.S.C. §7701) — Commercial Email Compliance.

Notification Service `bearerAuth` application/json

Request Body

Schema: dto.SendNotificationRequest

FieldTypeRequiredExampleConstraintsDescription
content string Yes Your account has been successfully upgraded Content
title string Yes System notification Title
user_id string Yes usr_abc123 User ID
aggregation_key string No new_follower Aggregation key (notifications with the same key are aggregated into one)
metadata object No Metadata
priority string No medium Priority
type string No system Type

Responses

StatusDescriptionSchema
200Sent successfullydto.SendNotificationCompatDetailResponse
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.SendNotificationCompatDetailResponse

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

dto.SendNotificationCompatResponse

Send notification response result (compatible endpoint)

FieldTypeRequiredExampleConstraintsDescription
id string No notif-1234567890 Notification ID
status string No sent Status

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No