Trillet AI logo

Export Call Dispositions CSV

Download call disposition records as a CSV file.

GEThttps://api.trillet.ai/v1/api/call-dispositions/export-csv

Headers

x-workspace-idstringrequired

Workspace identifier for the API.

Query Parameters

Without filters, the export contains every record in the workspace, newest first. This endpoint accepts fewer filters than List Call Dispositions: only the four below are applied.

agentIdstring

Only records for this agent ID.

dispositionstring

Only records where any attempt had this outcome, written exactly as stored, for example No Answer or Partial Complete: Call Back.

dateRangestring

Only records created in this range. A JSON object with startDate and endDate (ISO 8601), URL-encoded, for example {"startDate":"2026-11-01T00:00:00Z","endDate":"2026-11-30T23:59:59Z"}.

searchstring

Only records whose phone number or call notes contain this text (case-insensitive).

Response

A CSV file (UTF-8 with a byte-order mark), with Content-Type: text/csv and Content-Disposition: attachment; filename=call_dispositions_<date>.csv. With no matching records, the file has only the header row.

ColumnContents
Phone NumberThe contact's phone number
Agent IDThe agent making the calls
Current AttemptcurrentAttempt (-1 when no further attempts will be made)
Max AttemptsmaxAttempts
Statusactive, inactive, cancelled or completed
Created AtWhen the record was created (ISO 8601)
Updated AtWhen the record last changed (ISO 8601)
TimezoneThe record's timezone
Current Time Of Given TimezoneLocal time when the next callback was scheduled
Latest DispositionOutcome of the most recent attempt
Latest NotesNotes from the most recent attempt
All DispositionsEvery attempt, separated by |, each as <outcome> (<notes>) [call <callHistoryId>] @<time>
curl "https://api.trillet.ai/v1/api/call-dispositions/export-csv?disposition=No%20Answer" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "x-workspace-id: YOUR_WORKSPACE_ID" \
  --output call_dispositions.csv

Last updated on