Autional Autional
API Reference GitHub autional.com →

POST /push/subscriptions

Register a Web Push subscription (RFC 8030 VAPID) to receive push notifications. Reference: CAN-SPAM Act (15 U.S.C. §7701) — Commercial Email Compliance.

Notification Service `bearerAuth` application/json

Request Body

Schema: dto.PushSubscriptionRequest

FieldTypeRequiredExampleConstraintsDescription
endpoint string Yes https://fcm.googleapis.com/fcm/send/...
keys dto.PushSubscriptionKeys Yes
device_name string No Chrome on Windows
device_type string No web
user_agent string No

Responses

StatusDescriptionSchema
201Registered successfullydto.PushSubscriptionDetailResponse
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.PushSubscriptionDetailResponse

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

dto.PushSubscriptionKeys

FieldTypeRequiredExampleConstraintsDescription
auth string Yes xK2s9...
p256dh string Yes BP7S2s9...

dto.PushSubscriptionResponse

FieldTypeRequiredExampleConstraintsDescription
created_at string No 2026-05-12T12:00:00Z
device_name string No Chrome on Windows
device_type string No web
endpoint string No https://fcm.googleapis.com/fcm/send/...
id string No sub-abc123

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No