Send Login MFA Code
POST
/web/v1/users/self/auth/login/mfa/send NoneSends a multi-factor authentication code to the user during the login flow. The code is sent via the specified MFA method (e.g., email).
Required Headers
| Header | Example Value | Description |
|---|---|---|
| Content-Type | application/json | Request content type |
| Accept | application/json | Expected response type |
| X-Client-Hash | Client device fingerprint | |
| Accept-Language | en, zh, zh-Hant, ja, vi | Response language (default: en) |
Request Parameters
| Name | Type | Required | In | Description |
|---|---|---|---|---|
request | Object | Required | body | LoginMfaSendRequest object (see request body schema) |
Success Response
Success 200
{
"version": "1.3.0",
"timestamp": 1709337600000,
"success": true,
"code": "2000",
"message": "SUCCESS",
"data": {
"sent": true,
"method": "EMAIL",
"maskedTarget": "r***@example.com"
}
}Error Responses
Unauthorized 401
{
"success": false,
"code": "4010",
"message": "Invalid or expired token"
}Notes
- Rate limited to 5 requests per 60-second window.
- The
sessionIdmust come from a priorinitiateLogincall. - The
methodfield specifies which MFA channel to use (e.g.,EMAIL,OTP). - Request body is strictly validated — unknown or unexpected fields will be rejected with HTTP 400.