/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. Instead of the aiModelsUsage and mcpServersUsage objects, the usage of the AI models and MCP tools is included as the separate columns listed below, so it can be added up in a spreadsheet. 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.
ID of the AI provider. Only when the campaign uses an AI provider, for its AI agent or its AI Voicemail Detection, and empty for the calls that didn't use it.
Name of the AI provider. Only when the campaign uses an AI provider, for its AI agent or its AI Voicemail Detection, and empty for the calls that didn't use it.
What used the AI models: the AI agent of the campaign (AiAgent) or its AI Voicemail Detection (AmdAgent). Only when the campaign uses an AI provider, for its AI agent or its AI Voicemail Detection, and empty for the calls that didn't use it.
AiAgentAmdAgentID of the live audio model used for the call. Only when the campaign uses an AI provider, for its AI agent or its AI Voicemail Detection, and empty for the calls that didn't use it.
Time the session with the AI provider was open, rounded to whole seconds. Only when the campaign uses an AI provider, for its AI agent or its AI Voicemail Detection, and empty for the calls that didn't use it.
Input text tokens of the live audio model, including the cached ones. The same applies to ai_input_audio_tokens. Only when the campaign uses an AI provider, for its AI agent or its AI Voicemail Detection, and empty for the calls that didn't use it.
Cached input text tokens of the live audio model. The same applies to ai_cached_input_audio_tokens. Only when the campaign uses an AI provider, for its AI agent or its AI Voicemail Detection, and empty for the calls that didn't use it.
Output text tokens of the live audio model, not including the reasoning tokens. The same applies to ai_output_audio_tokens. Only when the campaign uses an AI provider, for its AI agent or its AI Voicemail Detection, and empty for the calls that didn't use it.
Reasoning tokens of the live audio model. Only when the campaign uses an AI provider, for its AI agent or its AI Voicemail Detection, and empty for the calls that didn't use it.
Duration of the audio transcribed by the transcription model, rounded to whole seconds, or 0 when transcriptions were off for the call or the AI provider doesn't report it. Only when the campaign uses an AI provider, for its AI agent or its AI Voicemail Detection, and empty for the calls that didn't use it.
Input tokens of the transcription model, or 0 when transcriptions were off for the call or the AI provider doesn't report them. The same applies to ai_transcription_output_tokens. Only when the campaign uses an AI provider, for its AI agent or its AI Voicemail Detection, and empty for the calls that didn't use it.
ID of the transcription model used for the call, or empty when transcriptions were off for the call. Only when the campaign uses an AI provider.
Number of invocations of MCP tools that succeeded during the call, of all the MCP servers. Only when the campaign uses an AI agent, and empty for the calls where no MCP tool was invoked.
Number of invocations of MCP tools that failed during the call, of all the MCP servers. Only when the campaign uses an AI agent, and empty for the calls where no MCP tool was invoked.
Number of invocations of the tool that succeeded during the call, or 0 if it wasn't invoked. There is one column for each tool invoked in any call of the campaign, named after the tool (cut to its first 48 characters), and a tool with the same name in several MCP servers is added up in one column. Only when the campaign uses an AI agent, and empty for the calls where no MCP tool was invoked.
Number of invocations of the tool that failed during the call, or 0 if it wasn't invoked, in a column for each tool, as mcp_<tool>_succeeded. Only when the campaign uses an AI agent, and empty for the calls where no MCP tool was invoked.
/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,...