Autional Autional
API Reference GitHub autional.com →

POST /auth/recover-account

When the user cannot access their primary identity (email or phone), verify identity through a pre-set recovery contact and initiate the password reset flow. References: NIST SP 800-63B §5.1.1.2, OWASP ASVS V2.3.

Authentication None application/json

Request Body

Schema: dto.RecoverAccountRequest

FieldTypeRequiredExampleConstraintsDescription
identity string Yes

Responses

StatusDescriptionSchema
200Recovery code sent to trusted contactdto.RecoverAccountResponse
400Invalid request parametersgitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.RecoverAccountResponse

FieldTypeRequiredExampleConstraintsDescription
contact_types array of

string

No
expires_in integer No
masked_to string No
message string No

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No