/v1/accounts/{accountId}/campaigns/{campaignId}/reports/callDetails/downloadDownloads the call details report of a campaign as a CSV (comma-separated values) file. The file includes all the records matching the filter, without pagination. It accepts the same filter and sort parameters as List call details, whose Filter fields and Sort fields sections list the fields that can be used.
ID of your SIP Caller account. See Account ID.
ID of the campaign.
Returns the CSV file, with a header row, as text/plain; charset=utf-8. It contains one row for each call, with the same information as the call details object, using snake_case column names (such as call_id, started_at_local or ring_result). The variables of the campaign and the results of each interaction are included as separate columns. The Content-Disposition header contains a suggested file name. The file is generated while it's being sent, so if an error occurs halfway, the content ends with the line === RESPONSE ABORTED: INTERNAL SERVER ERROR === and must be discarded.
/v1/accounts/ACCOUNT_ID/campaigns/CAMPAIGN_ID/reports/callDetails/download
curl -G 'https://api.sipcaller.com/v1/accounts/ACCOUNT_ID/campaigns/CAMPAIGN_ID/reports/callDetails/download' \
-H 'Authorization: Bearer API_KEY_TOKEN' \
--data-urlencode 'filter={"startedAtLocal_gte":"2026-10-01T00:00:00","startedAtLocal_lt":"2026-10-02T00:00:00"}' \
--data-urlencode 'sort=["startedAtLocal","ASC"]' \
-o 'call-details.csv'Response
200 OK
call_id,number_id,number,Customer Name,Due Balance,number_added_at_local,attempt,number_prefix,called_number,queue_id,agent_id,timezone_id,started_at_local,ring_result,sip_response,...
01928322-32a3-7000-bf0d-bf1af7eda4c5,1048165,+18035551004,Stefan Robertson,$99.00,2026-10-01 10:05:23.452,1,,+18035551004,800,101,America/New_York,2026-10-01 11:48:29.479,Answer,200 OK,...