Retrieves the verification status of a phone number.
Operation description
-
You can call this operation to retrieve the verification status of a phone number. You can also view the verification status in the Channel Management> Manage > WABA Management > Phone Number Management page.
-
This operation only queries the verification status of a phone number. If the phone number status is verified, you can directly call the registration operation to register the phone number without obtaining a new verification code.
-
Before calling this operation, make sure that a phone number has been added to your WABA and that phone number verification has been submitted.
-
If a phone number has been added to your WABA and needs to be registered, but the verification status is unverified or verification has expired, call GetChatappVerifyCode and ChatappVerifyAndRegister to obtain a verification code and register the phone number.
The queries per second (QPS) limit for a single user on this operation is 10. If this limit is exceeded, API calls are throttled, which may affect your business. Call this operation appropriately.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cams:GetPhoneNumberVerificationStatus |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PhoneNumber |
string |
Yes |
The phone number. You can view it in the Channel Management> Manage > WABA Management > Phone Number Management page. |
86138009**** |
| CustSpaceId |
string |
Yes |
The space ID of the ISV sub-customer or the instance ID of the direct customer. You can view the Space ID in the Channel Management page. |
cams-kei**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| AccessDeniedDetail |
string |
The details about the access denial. |
None |
| RequestId |
string |
The request ID. |
90E63D28-E31D-1EB2-8939-A94866411B2D |
| Message |
string |
The error message. |
None |
| Data |
object |
The returned data. |
|
| CodeVerificationStatus |
string |
The verification status of the phone number. Valid values:
|
VERIFIED |
| PhoneNumber |
string |
The phone number. |
861390000**** |
| Id |
string |
The phone number ID. |
222434**** |
| Code |
string |
The request status code.
|
OK |
Examples
Success response
JSON format
{
"AccessDeniedDetail": "None\n",
"RequestId": "90E63D28-E31D-1EB2-8939-A94866411B2D",
"Message": "None",
"Data": {
"CodeVerificationStatus": "VERIFIED",
"PhoneNumber": "861390000****",
"Id": "222434****"
},
"Code": "OK"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Product.Unsubscript | You have not subscribed to the specified product. | You have not subscribed to the specified product. |
| 400 | Ram.PermissionDeny | You are not authorized to perform the operation. | |
| 400 | System.LimitControl | The system is under flow control. | The system is under flow control. |
| 400 | Unknown.ResourceOwnerId | The resource does not belong to the current user. | The resource does not belong to the current user. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.