Autional Autional
API Reference GitHub autional.com →

GET /notifications/unread-count

Get the count of unread notifications and the time of the last notification for the current user. Reference: CAN-SPAM Act (15 U.S.C. §7701) — Commercial Email Compliance.

Notification Service `bearerAuth` application/json

Responses

StatusDescriptionSchema
200Unread countdto.UnreadCountDetailResponse
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.UnreadCountDetailResponse

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

dto.UnreadCountResponse

User unread notification count

FieldTypeRequiredExampleConstraintsDescription
last_notification_at string No 2026-04-15T10:30:00Z Last notification
unread_count integer No 5 Unread count
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