Autional Autional
API Reference GitHub autional.com →

POST /internal/notification/push/send

Send VAPID-signed Web Push notification message to a specified user's device (internal API). Reference: CAN-SPAM Act (15 U.S.C. §7701) — Commercial Email Compliance.

Notification Service - Internal None application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
X-Tenant-ID header string Yes Tenant ID

Request Body

Schema: dto.InternalPushSendRequest

FieldTypeRequiredExampleConstraintsDescription
body string Yes Login from Beijing - Approve?
title string Yes New Login Attempt
data object No
user_id string No user-001

Responses

StatusDescriptionSchema
200Sent successfullydto.PushSendDetailResponse
400Invalid request parametersgitee_com_linmes_authms_base_dto.SimpleResponse
401Unauthenticatedgitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.PushSendDetailResponse

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

dto.PushSendResponse

FieldTypeRequiredExampleConstraintsDescription
failed integer No 0
sent integer No 3
total integer No 3

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No