/v1/accounts/{accountId}/campaigns/{campaignId}/reports/callDetailsReturns the details of the calls made by a campaign, optionally filtered and sorted.
ID of your SIP Caller account. See Account ID.
ID of the campaign.
Conditions that the records must match, such as {"name":"sales"}. See the Filter fields below, and Filter for the syntax.
Field and direction used to sort the records, such as ["startedAtLocal","DESC"]. Defaults to ["startedAtLocal","ASC"]. See Sort.
Zero-based positions of the first and last records to return, both included, such as [0,99]. Defaults to [0,9]. See Pagination.
Fields that can be used in the filter query parameter. See Filter for the general syntax.
Calls to numbers that contain the text.
{"number":"555100"}Calls whose variable contains the text (case-insensitive). The key is $ followed by the position of the variable, starting at 1.
{"varValues":{"$1":"robertson"}}Calls whose dialed number contains the text.
{"calledNumber":"9555100"}Calls made with the given prefix.
{"numberPrefix":"9"}_gt_gte_lt_lteCalls by attempt number.
{"attempt":1}_gt_gte_lt_lteCalls by the date and time the number was added.
{"addedAtLocal_gte":"2026-10-01T00:00:00"}_gt_gte_lt_lteCalls by start date and time.
{"startedAtLocal_gte":"2026-10-01T00:00:00","startedAtLocal_lt":"2026-10-02T00:00:00"}_gt_gte_lt_lteCalls by answer date and time.
{"answeredAtLocal_gte":"2026-10-01T00:00:00"}_gt_gte_lt_lteCalls by end date and time.
{"endedAtLocal_lt":"2026-10-02T00:00:00"}Calls with the given ring result.
AnswerNoAnswerBusyCallError{"ringResult":"Answer"}Calls with the given SIP response code.
{"sipResponseCode":486}Calls with the given answer type.
HumanMachineVoicemailMessageUnknown{"answerType":"Human"}Calls with the given end type.
CallflowCompleteInteractionCompleteHangUpExecutionError{"endType":["CallflowComplete","InteractionComplete"]}Calls whose last action matches.
{"lastAction":{"$t":"TransferCall"}}Calls where a voicemail message was left, or not.
{"voicemailLeft":true}Calls whose error details contain the text.
{"errorDetails":"timeout"}Calls with the given interaction results. Each key is the ID of the DTMF input action or AI agent goal, and each value is the expected result.
{"inputResults":{"a6d5b2e5-6b3f-49d8-aaa3-bc7b4c693f05":"1"}}Calls whose conversation contains the text.
{"transcriptions":"call me back"}Calls handled by the given queue.
{"queueId":"800"}Calls handled by the given agent.
{"agentId":"101"}Calls with the given transfer result.
ConnectedNotConnectedConnectionUnknown{"transferResult":"NotConnected"}_gt_gte_lt_lteCalls by the date and time the external number answered the transferred call.
{"transferConnectedAtLocal_gte":"2026-10-01T00:00:00"}_gt_gte_lt_lteCalls by the date and time the call between the agent and the external number ended.
{"agentReleasedAtLocal_gte":"2026-10-01T00:00:00"}_gt_gte_lt_lteCalls by setup duration. The same applies to connectedDuration, totalDuration, transferDuration, agentSetupDuration, agentConnectedDuration and agentTotalDuration.
{"connectedDuration_gte":"00:01:00"}Calls with the given outcome.
SuccessFailureWithRetryPendingFailureWithNoRetryLeft{"outcome":"Success"}Fields that can be used in the sort query parameter, in ascending (ASC) or descending (DESC) order. See Sort for the general syntax. When sort is omitted, results are sorted by startedAtLocal in ascending order.
startedAtLocalnumberaddedAtLocalattemptringResultsipResponseCodeansweredAtLocalanswerTypeendedAtLocalendTypesetupDurationconnectedDurationtotalDurationtransferDurationtransferConnectedAtLocalagentReleasedAtLocalagentSetupDurationagentConnectedDurationagentTotalDurationoutcomeReturns an array of call details objects for the requested page. The X-Total-Count and Content-Range headers contain the total number of records matching the filter, for example Content-Range: callDetails 0-9/57. See Pagination.
/v1/accounts/ACCOUNT_ID/campaigns/CAMPAIGN_ID/reports/callDetails
curl -G 'https://api.sipcaller.com/v1/accounts/ACCOUNT_ID/campaigns/CAMPAIGN_ID/reports/callDetails' \
-H 'Authorization: Bearer API_KEY_TOKEN' \
--data-urlencode 'filter={"startedAtLocal_gte":"2026-10-01T00:00:00","ringResult":"Answer"}' \
--data-urlencode 'sort=["startedAtLocal","ASC"]' \
--data-urlencode 'range=[0,99]'Response
200 OK
[
{
"id": "01928322-32a3-7000-bf0d-bf1af7eda4c5",
"numberId": 1048165,
"number": "+18035551004",
"varValues": [
"Stefan Robertson",
"$99.00"
],
"addedAtLocal": "2026-10-01T10:05:23.452",
"attempt": 1,
"numberPrefix": "",
"calledNumber": "+18035551004",
"queueId": "800",
"agentId": "101",
"startedAtLocal": "2026-10-01T11:48:29.479",
"ringResult": "Answer",
"sipResponseCode": 200,
"sipResponseDescrip": "OK",
"answeredAtLocal": "2026-10-01T11:48:33.735",
"answerType": "Human",
"endedAtLocal": "2026-10-01T11:48:50.819",
"endType": "CallflowComplete",
"lastAction": {
"$t": "DtmfInput"
},
"voicemailLeft": false,
"errorDetails": null,
"inputResults": [
{
"inputActionId": "a6d5b2e5-6b3f-49d8-aaa3-bc7b4c693f05",
"inputValue": "1"
}
],
"transcriptions": null,
"setupDuration": "00:00:04.256",
"connectedDuration": "00:00:17.084",
"totalDuration": "00:00:21.340",
"transferDuration": null,
"transferResult": null,
"transferConnectedAtLocal": null,
"agentReleasedAtLocal": null,
"agentSetupDuration": null,
"agentConnectedDuration": null,
"agentTotalDuration": null,
"outcome": "Success"
}
]