Export voice calls
Export voice calls
Download filtered voice call rows as a streamed CSV attachment.
POST
Export voice calls
Use the voice call export API to download filtered call rows as a CSV file.
Required access
| Authentication | Scope | Dataset grant |
|---|---|---|
| API client v2 | tickets.export | tickets.raw |
Body
Export format. Currently only
csv is supported.Voice call filters to apply before exporting rows.
Optional object mapping voice-call custom field IDs to filter values.
Custom field value filter for the given Sagepilot custom field ID.
Timezone used for formatted datetime columns.
Maximum number of rows to stream in the CSV export.
Filters
Call status. Supported values include
pending, ended, missed, failed, active, scheduled, or all.Comma-separated call modes, such as
ai, human, ai_to_human, or human_to_ai.Call direction. Use
inbound or outbound.Comma-separated channel UUIDs. Find channel IDs in Settings > API Details > Channels. See Resource IDs.
Comma-separated channel kinds, such as
voice or whatsapp.Customer UUID to filter calls by.
Comma-separated human agent or AI agent UUIDs. Use
current where the API request is associated with a user context. See Resource IDs.Comma-separated team UUIDs. See Resource IDs.
Comma-separated disposition values.
Comma-separated terminal reasons, such as
voice_mail.Comma-separated tag IDs.
Comma-separated call sources, such as
direct, journey, or campaign.Comma-separated campaign IDs.
Comma-separated journey IDs.
Comma-separated messaging template IDs sent during the call.
Comma-separated sentiment values, such as
positive, neutral, or negative.Use
true or false to filter by recording availability.Use
true or false to filter by transcript availability.Minimum call duration in seconds.
Maximum call duration in seconds.
Date preset or explicit range. Supported values include
today, yesterday, last_7_days, last_30_days, and start|end.Date field used with
date_range. Supported values are created_at, answered_at, and ended_at.Field used for ordering. Supported values include
created_at, answered_at, ended_at, and duration_seconds.Sort direction. Use
asc or desc.Use
true to return unassigned calls.Default columns
The CSV includes these default columns, followed by enabled voice-call custom fields:Call CodeCall IDDirectionModeStatusCreated AtAnswered AtEnded AtDurationHangup ReasonEnded ByCustomer NameCustomer PhoneCustomer EmailCustomer CompanyFrom NumberTo NumberAgentPilotTeamChannelChannel TypeDispositionDisposition Set BySummarySentimentRecording URLHas TranscriptSourceCampaign IDJourney IDScheduled AtScheduled ByTagsTranscript
Notes
- Use voice call export when you need row-level CSV data for calls, recordings, transcripts, dispositions, and call-level custom fields.
- The endpoint appends enabled voice-call custom fields after the default CSV columns.