Verifies an SMS verification code and returns the verification result.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dypns:CheckSmsVerifyCode |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SchemeName |
string |
No |
The scheme name. The name can contain up to 20 characters. If you do not specify this parameter, the API uses the default scheme. Important This value must match the SchemeName specified in the SendSmsVerifyCode request. |
测试方案 |
| CountryCode |
string |
No |
The country code of the phone number. The default value is |
86 |
| PhoneNumber |
string |
Yes |
The phone number. |
186****0000 |
| OutId |
string |
No |
An external ID to track the request. |
12123231 |
| VerifyCode |
string |
Yes |
The verification code. Note
|
1231 |
| CaseAuthPolicy |
integer |
No |
The case-sensitivity policy for verification. Valid values:
|
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| AccessDeniedDetail |
string |
The access denial details. |
无 |
| Message |
string |
The description of the status code. |
成功 |
| Model |
object |
The data returned for the request. |
|
| OutId |
string |
The external ID. |
1212312 |
| VerifyResult |
string |
Indicates whether the SMS verification code is valid. Valid values:
|
PASS |
| Code |
string |
The status code of the request.
|
OK |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| RequestId |
string |
The ID of the request. |
CF8854E5-DB21-3E5D-A9B1-DDC752FD7384 |
Examples
Success response
JSON format
{
"AccessDeniedDetail": "无",
"Message": "成功",
"Model": {
"OutId": "1212312",
"VerifyResult": "PASS"
},
"Code": "OK",
"Success": true,
"RequestId": "CF8854E5-DB21-3E5D-A9B1-DDC752FD7384"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.