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 status on the Channel Management > Manage > WABA Management > Phone Number Management page.
Before calling this operation, add a phone number to your WhatsApp Business Account (WABA) and submit it for verification.
If you have not added a phone number to your WABA, call the GetChatappVerifyCode and ChatappVerifyAndRegister APIs to obtain a verification code and register the number.
This operation allows a maximum of 10 requests per second per account. Excess requests are throttled, which may affect your business. Stay within the specified limit.
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 the phone number on the Channel Management > Manage > WABA Management > Phone Number Management page. | 86138009**** |
CustSpaceId | string | Yes | The Space ID of the Independent Software Vendor (ISV) sub-customer or the instance ID of the direct customer. You can view the Space ID on 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. Valid values:
| VERIFIED |
PhoneNumber | string | The phone number. | 861390000**** |
Id | string | The ID of the phone number. | 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.