查询发送记录
查询发送记录
curl -X POST "https://api.example.com/open/v1/voice/notify/record" \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"size": 1,
"startDate": "YOUR_START_DATE",
"countryCode": "YOUR_COUNTRY_CODE"
}'业务包络:000000 成功;data 含 pageNum/pageSize/total/list[]
{
"code": "000000",
"data": {
"list": [
{
"id": "string",
"callId": "string",
"mobile": "string",
"taskId": "string",
"callDesc": "string",
"callTime": "string",
"callState": "string",
"smsStatus": "string",
"startTime": "string",
"transData": "string",
"invokeTime": "string",
"templateId": "string",
"callDescMsg": "string",
"countryCode": "string",
"recallCount": 0,
"smsSendTime": "string",
"smsSendStatus": "string"
}
],
"total": 0,
"pageNum": 0,
"pageSize": 0
},
"message": "string"
}来自当前规范的响应示例,不是真实请求结果。
按时间窗口查询话单明细(仅最近 90 天),可按任务、批次、模板、被叫号码过滤。时间格式 yyyy-MM-dd HH:mm:ss。限流 30 QPS,超限返回 040001。
使用 InnoPaaS AppKey 作为 Bearer Token。可在 Console 的 API 密钥页面创建或管理密钥。 查看密钥指南
授权
Authorizationstring<bearer>必填请求主体
application/jsonpageinteger必填页码,从 1 开始
最小值
1sizeinteger必填每页条数,1-100
最小值
1最大值100mobilestring可选被叫号码,纯数字,最长 32 位
匹配模式
^\d{1,32}$taskIdstring可选任务 ID(发送接口返回的 callId),最长 64 字
batchNostring可选批次号,最长 64 字
endDatestring可选查询结束时间,不得早于 startDate
匹配模式
^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$startDatestring必填查询起始时间,仅允许查最近 90 天
匹配模式
^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$templateIdstring可选模板 ID,最长 64 字
countryCodestring必填国家/地区 alpha-2 编码(大小写不敏感)
匹配模式
^[A-Za-z]{2}$响应
application/json业务包络:000000 成功;data 含 pageNum/pageSize/total/list[]
codestring可选dataobjectnull可选messagestring可选{
"code": "000000",
"data": {
"list": [
{
"id": "string",
"callId": "string",
"mobile": "string",
"taskId": "string",
"callDesc": "string",
"callTime": "string",
"callState": "string",
"smsStatus": "string",
"startTime": "string",
"transData": "string",
"invokeTime": "string",
"templateId": "string",
"callDescMsg": "string",
"countryCode": "string",
"recallCount": 0,
"smsSendTime": "string",
"smsSendStatus": "string"
}
],
"total": 0,
"pageNum": 0,
"pageSize": 0
},
"message": "string"
}来自当前规范的响应示例,不是真实请求结果。