Export calls history
client.call.export(CallExportParams { filters, include_metadata, include_structured_output_fields } body, RequestOptionsoptions?): CallExportResponse { csv, filename }
POST/call/export
Export a list of call attempts as a CSV file.
Parameters
Returns
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'],
},
});
console.log(response.csv);{
"csv": "csv",
"filename": "filename"
}Returns Examples
{
"csv": "csv",
"filename": "filename"
}