Autional Autional
API Reference GitHub autional.com →

POST /mfa/devices/sync

Upload device TOTP configuration data, encrypt and store it, and return a sync token. Reference: RFC 6238 (TOTP), OWASP ASVS V2.8.3.

Multi-Factor Authentication `bearerAuth` application/json

Request Body

Schema: dto.DeviceSyncRequest

FieldTypeRequiredExampleConstraintsDescription
device_name string Yes iPhone 15
totp_devices string Yes [{"secret":"JBSWY3DPEHPK3PXP"}]
device_fingerprint string No fp-abc123

Responses

StatusDescriptionSchema
201Device sync successfuldto.DeviceSyncDetailResponse
400Invalid parametergitee_com_linmes_authms_base_dto.SimpleResponse
401Unauthenticatedgitee_com_linmes_authms_base_dto.SimpleResponse
409Device count limit reachedgitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.DeviceSyncDetailResponse

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

dto.DeviceSyncResponse

FieldTypeRequiredExampleConstraintsDescription
created_at string No 2026-05-21T12:00:00Z
device_fingerprint string No fp-abc123
device_name string No iPhone 15
id string No devsync_abc123
last_sync_at string No 2026-05-21T12:00:00Z
totp_devices string No [{"secret":"JBSWY3DPEHPK3PXP"}]

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No