Verify Security Code Returned by Email
# Verify Security Code Returned by Email
Path:
/api/verify_totp_code
Method: POST
Content-type: application/json; charset=utf-8
API Description: This can be used to verify the security code returned by the email.
Note: This feature is supported in version 1.71.3 and later.
Request
Name | Type | Example | Description |
---|---|---|---|
code | string | "815107" | Random 6-digit token code |
Response
Name | Type | Example | Description |
---|---|---|---|
code | int | 0 | Error code |
msg | string | "success" | Error description |
token | string | "BP26TDZUZ5SVPZJRIHCAUVREO5EWMHHV" | Random 32-digit string, expires in 30 minutes |
Request Example
{
"code": "815107"
}
Response Example
{
"code": 0,
"msg": "success",
"token": "BP26TDZUZ5SVPZJRIHCAUVREO5EWMHHV"
}