Query voice call records
Query voice call records
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"
}'Business envelope. code=000000 success; data contains pageNum/pageSize/total/list[] (each list item has 17 call-record fields).
{
"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"
}Documented response example from the spec, not a real request result.
Query call-record details by time window (last 90 days only), filterable by task, batch, template, or recipient number. Time format yyyy-MM-dd HH:mm:ss (different from the ISO 8601 used for scheduling). Rate limit 30 QPS; exceeding returns code=040001 (HTTP stays 200). Error codes follow the platform six-digit scheme.
Use the InnoPaaS AppKey as a Bearer token. Create or manage keys in Console. API key guide
Authorization
Authorizationstring<bearer>requiredBody
application/jsonpageintegerrequiredPage number, starting from 1
1sizeintegerrequiredPage size, 1-100
1Maximum100mobilestringoptionalRecipient number, digits only, up to 32 chars
^\d{1,32}$taskIdstringoptionalTask ID (the callId returned by the send API), up to 64 chars
batchNostringoptionalBatch number, up to 64 chars
endDatestringoptionalQuery end time; must not be earlier than startDate
^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$startDatestringrequiredQuery start time; only the last 90 days can be queried
^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$templateIdstringoptionalTemplate ID, up to 64 chars
countryCodestringrequiredCountry/region alpha-2 code (case-insensitive)
^[A-Za-z]{2}$Response
application/jsonBusiness envelope. code=000000 success; data contains pageNum/pageSize/total/list[] (each list item has 17 call-record fields).
codestringoptionaldataobjectnulloptionalmessagestringoptional{
"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"
}Documented response example from the spec, not a real request result.