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

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_autional_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No