Autional Autional
API Reference GitHub autional.com →

POST /internal/notification/export-user-data

Export all notification records and preference settings by tenant and user ID (GDPR-compliant data export). 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.ExportUserDataRequest

FieldTypeRequiredExampleConstraintsDescription
user_id string Yes

Responses

StatusDescriptionSchema
200Exported successfullydto.DataResponse-dto_ExportUserDataResponse
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.DataResponse-dto_ExportUserDataResponse

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

dto.ExportUserDataResponse

FieldTypeRequiredExampleConstraintsDescription
notifications array of

See dto.NotificationResponse

No
preferences dto.NotificationPreferencesResponse 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

dto.NotificationResponse

Notification info response

FieldTypeRequiredExampleConstraintsDescription
action_url string No /security Action link
content string No Your account has been successfully upgraded Content
created_at string No 2026-04-15T10:30:00Z Creation time
event_type string No status.incident.created
id string No ntf_abc123 Notification ID
is_read boolean No False Is read
metadata string No {"ip":"1.2.3.4"} Metadata JSON
priority string No medium Priority
read_at string No 2026-04-15T11:00:00Z Read time
tenant_id string No tnt_xyz789 Tenant ID
title string No System notification Title
type string No system Type
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