Autional Autional
API Reference GitHub autional.com →

POST /mfa/sms/send

Send SMS verification code to the user's phone for SMS MFA authentication. The plaintext code is not returned in production. Reference: OWASP ASVS V2.8.

Multi-Factor Authentication `bearerAuth` application/json

Request Body

Schema: dto.SMSSendRequest

FieldTypeRequiredExampleConstraintsDescription
phone string Yes
purpose string No login, bind, reset

Responses

StatusDescriptionSchema
200Send Successfuldto.SMSSendDetailResponse
400Invalid Parametersgitee_com_linmes_authms_base_dto.SimpleResponse
401Unauthenticatedgitee_com_linmes_authms_base_dto.SimpleResponse
429Request Too Frequentgitee_com_linmes_authms_base_dto.SimpleResponse
500Internal Server Errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.SMSSendDetailResponse

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

dto.SMSSendResponse

FieldTypeRequiredExampleConstraintsDescription
expires string No 2026-05-25T12:05:00Z
sent boolean No True

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No