Send Verification Code¶
Send a verification code to a user’s email.
Prerequisites¶
The user has logged in to Application Portal and entered an OU. You can log in to Application Portal through the Log In API and select the OU through the Choose Organization API.
Request Format¶
POST https://{apigw-address}/app-portal-service/v2.3/verificationCode/send
Request Parameters (URI)¶
Name |
Location(Path/Query) |
Required/Optional |
Data Type |
Description |
---|---|---|---|---|
type |
Query |
Required |
String |
User authentication type. Only supports the value |
Request Parameters (Header)¶
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
accessToken |
Required |
String |
The access token generated after the user logs in and selects the OU, represented by Bearer Token, is in the form of |
locale |
Optional |
String |
Specifies the language in which to return the list information. The following values are supported:
|
Response Parameters¶
Name |
Data Type |
Description |
---|---|---|
success |
Boolean |
Whether the verification code was sent successfully. |
Error Codes¶
Error Code |
Description |
---|---|
31400 |
Required parameters are missing. |
31429 |
|
Sample¶
Request Sample¶
url: https://{apigw-address}/app-portal-service/v2.3/verificationCode/send?type=mfa
method: POST
headers: {"accessToken":"Bearer your_token"}
Return Sample¶
{
"code": 0,
"message": "OK",
"data": {
"success":true
}
}