Autional Autional
API Reference GitHub autional.com →

DELETE /mfa/totp/devices/{device_id}

Revoke a specified TOTP device, requiring the current TOTP verification code for verification. Reference: RFC 6238 (TOTP), OWASP ASVS V2.8.3.

Multi-Factor Authentication `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes Device ID

Request Body

Schema: dto.TOTPDeviceRevokeRequest

FieldTypeRequiredExampleConstraintsDescription
code string Yes 123456

Responses

StatusDescriptionSchema
200Device Revokeddto.DisabledDetailResponse
400Invalid Parametersgitee_com_linmes_authms_base_dto.SimpleResponse
401Unauthenticatedgitee_com_linmes_authms_base_dto.SimpleResponse
404Device Not Foundgitee_com_linmes_authms_base_dto.SimpleResponse
500Internal Server Errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.DisabledDetailResponse

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

dto.DisabledResponse

FieldTypeRequiredExampleConstraintsDescription
disabled boolean No True

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No