Queries all phone numbers used for sending messages and their statuses for a customer.
Operation description
This operation is limited to 10 queries per second (QPS) per user. If you exceed this limit, API calls are throttled, which may impact your business. We recommend that you call this operation at a reasonable rate.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cams:QueryChatappPhoneNumbers |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| IsvCode |
string |
No |
The verification code of the Independent Software Vendor (ISV). This code is used to verify if a RAM user is authorized by the ISV. |
aksik93kdkkxmwol9**** |
| CustSpaceId |
string |
No |
The Space ID of the ISV's sub-customer. |
29348393884**** |
| Status |
string |
No |
The status of the phone number. |
VERIFIED |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
90E63D28-E31D-1EB2-8939-A94866411B2O |
| Code |
string |
The request status code.
|
OK |
| Message |
string |
The returned message. |
SUCCESS |
| PhoneNumbers |
array<object> |
The list of phone numbers. |
|
|
object |
The data structure. |
||
| UpQueue |
string |
The queue for mobile originated message notifications. |
Alicom-Queue-****-ChatAppInbound |
| PhoneNumber |
string |
The phone number. |
861380000**** |
| StatusQueue |
string |
The queue for status report notifications. |
Alicom-Queue-****-ChatAppStatus |
| VerifiedName |
string |
The name used for the request. |
Alibaba |
| StatusCallbackUrl |
string |
The callback URL for status reports. |
https://ali.com/status |
| UpCallbackUrl |
string |
The callback URL for mobile originated messages. |
https://ali.com/inbound |
| QualityRating |
string |
The quality rating of the phone number. Valid values:
|
GREEN |
| Status |
string |
The status of the phone number. Valid values:
|
CONNECTED |
| CodeVerificationStatus |
string |
The verification status of the phone number. Valid values:
|
VERIFIED |
| NameStatus |
string |
The status of the name. |
Approval |
| MessagingLimitTier |
string |
The messaging limit tier of the phone number. Valid values:
|
TIER_10K |
| NewNameStatus |
string |
The review status of the new name. |
Approval |
| AccessDeniedDetail |
string |
Details about the access denial. |
None |
Examples
Success response
JSON format
{
"RequestId": "90E63D28-E31D-1EB2-8939-A94866411B2O",
"Code": "OK",
"Message": "SUCCESS",
"PhoneNumbers": [
{
"UpQueue": "Alicom-Queue-****-ChatAppInbound",
"PhoneNumber": "861380000****",
"StatusQueue": "Alicom-Queue-****-ChatAppStatus",
"VerifiedName": "Alibaba",
"StatusCallbackUrl": "https://ali.com/status",
"UpCallbackUrl": "https://ali.com/inbound",
"QualityRating": "GREEN",
"Status": "CONNECTED",
"CodeVerificationStatus": "VERIFIED",
"NameStatus": "Approval",
"MessagingLimitTier": "TIER_10K",
"NewNameStatus": "Approval"
}
],
"AccessDeniedDetail": "None"
}
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.