Export calls history
client.call.export(CallExportParams { filters, offset, include_metadata, include_structured_output_fields } body, RequestOptionsoptions?): CallExportResponse { csv, filename, next_offset }
POST/call/export
Export a list of call attempts as a CSV file. Large exports are split into several files of at most 4MB each: when the response carries a non-null next_offset, call the endpoint again with that value as offset to get the next file.
Export calls history
import Revox from '@revoxai/sdk';
const client = new Revox({
apiKey: process.env['REVOX_API_KEY'], // This is the default and can be omitted
});
const response = await client.call.export({
filters: {
assignee_ids: ['string'],
assistant_ids: ['string'],
campaign_ids: ['string'],
directions: ['inbound'],
from_phone_numbers: ['string'],
outcomes: ['not_interested'],
page: 1,
page_size: 1,
results: ['IVR'],
statuses: ['initializing'],
},
offset: 0,
});
console.log(response.csv);{
"csv": "csv",
"filename": "filename",
"next_offset": -9007199254740991
}Returns Examples
{
"csv": "csv",
"filename": "filename",
"next_offset": -9007199254740991
}