Queries the delivery records and status of SMS messages sent to a single phone number.
Operation description
-
This operation queries the details of SMS messages sent to a specific phone number on a given date. You can also provide the
BizIdto query a specific delivery record. -
This operation queries delivery details for a single phone number at a time. To view delivery details in bulk, use the QuerySendStatistics operation to query delivery statistics, or log in to the Delivery Receipts page in the console.
QPS limit
The QPS limit for this operation is 5,000 requests per second per user. Calls that exceed this limit are throttled.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dysms:QuerySendDetails |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PhoneNumber |
string |
Yes |
The phone number to query. The format is as follows:
Note
You can specify only one phone number. |
1390000**** |
| BizId |
string |
No |
The delivery receipt ID. This is the Note
You can specify only one |
134523^435**** |
| SendDate |
string |
Yes |
The date when the SMS message was sent. You can query records from the past 30 days. Format: yyyyMMdd, for example, 20250601. |
20250601 |
| PageSize |
integer |
Yes |
The number of delivery records to return on each page. Valid values: 1 to 50. |
20 |
| CurrentPage |
integer |
Yes |
The current page number for paginated results. |
1 |
You can visit the OpenAPI Portal to view SDK request examples for different languages.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The request status code.
|
OK |
| Message |
string |
The description of the status code. |
OK |
| RequestId |
string |
The request ID. This unique identifier is generated by Alibaba Cloud for each request and can be used for troubleshooting. |
819BE656-D2E0-4858-8B21-B2E477085AAF |
| TotalCount |
string |
The total number of SMS messages sent. Note
|
1 |
| SmsSendDetailDTOs |
object |
Contains the delivery details. |
|
| SmsSendDetailDTO |
array<object> |
The SMS delivery details. |
|
|
object |
|||
| ErrCode |
string |
The delivery status code from the carrier.
|
DELIVERED |
| TemplateCode |
string |
The code of the message template. Note
The |
SMS_12231**** |
| OutId |
string |
The external ID. Note
This parameter is returned only if you specify the |
123 |
| ReceiveDate |
string |
The time the message was received by the recipient's device. |
2025-06-01 16:44:13 |
| SendDate |
string |
The time the message was sent. |
2025-06-01 16:44:10 |
| PhoneNum |
string |
The recipient's phone number. |
1390000**** |
| Content |
string |
The message content. |
【阿里云】验证码为:123,您正在登录,若非本人操作,请勿泄露 |
| SendStatus |
integer |
The delivery status of the SMS message. Valid values include:
|
3 |
Examples
Success response
JSON format
{
"Code": "OK",
"Message": "OK",
"RequestId": "819BE656-D2E0-4858-8B21-B2E477085AAF",
"TotalCount": "1",
"SmsSendDetailDTOs": {
"SmsSendDetailDTO": [
{
"ErrCode": "DELIVERED",
"TemplateCode": "SMS_12231****",
"OutId": "123",
"ReceiveDate": "2025-06-01 16:44:13",
"SendDate": "2025-06-01 16:44:10",
"PhoneNum": "1390000****",
"Content": "【阿里云】验证码为:123,您正在登录,若非本人操作,请勿泄露",
"SendStatus": 3
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.