Trillet AI logo

Export Call History CSV

Export call history records as a CSV file with optional transcript and post-analysis data.

POSThttps://api.trillet.ai/v2/api/call-history/export-csv

Headers

x-api-keystringrequired

API key used for authenticating requests to the API.

x-workspace-idstringrequired

Workspace identifier for the API.

Request Body

includeTranscriptsbooleandefault: false

Whether to include full call transcripts in the export.

includePostAnalysisbooleandefault: false

Whether to include post-call analysis data in the export.

limitnumber

Maximum number of records to export.

batchIdstring

Filter by batch call ID.

agentIdstring

Filter by agent ID.

statusstring

Filter by call status.

directionstring

Filter by call direction.

dateRangeobject

Date range filter.

Response

The response is streamed as a CSV file with Content-Type: text/csv and Content-Disposition: attachment headers.

The CSV includes columns for call ID, phone numbers, direction, status, duration, agent, flow name, cost, summary, variables, and optionally transcript and post-analysis data.