Autional Autional
API Reference GitHub autional.com →

GET /notifications/preferences/{user_id}

Get notification receiving preferences for a specified user, including channel toggles, do-not-disturb periods, etc. Reference: CAN-SPAM Act (15 U.S.C. §7701) — Commercial Email Compliance.

Notification Service `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
user_id path string Yes User ID

Responses

StatusDescriptionSchema
200Preference settingsdto.NotificationPreferencesDetailResponse
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.NotificationPreferencesDetailResponse

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

dto.NotificationPreferencesResponse

User notification preference settings

FieldTypeRequiredExampleConstraintsDescription
channels object No Channel settings
email_enabled boolean No True Email enabled
push_enabled boolean No True Push enabled
quiet_hours object No Do not disturb period
sms_enabled boolean No False SMS enabled
type_prefs object No Notification type preference
updated_at string No 2026-04-15T10:30:00Z Update time
user_id string No usr_abc123 User ID

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No