Skip to content
Get started

Export campaign rows

client.campaigns.exportRows(stringid, RequestOptionsoptions?): CampaignExportRowsResponse { csv, filename }
GET/campaigns/{id}/export

Export all rows of a campaign as a CSV file for offline analysis or reporting.

ParametersExpand Collapse
id: string
ReturnsExpand Collapse
CampaignExportRowsResponse { csv, filename }
csv: string
filename: string

Export campaign rows

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.campaigns.exportRows('id');

console.log(response.csv);
{
  "csv": "csv",
  "filename": "filename"
}
Returns Examples
{
  "csv": "csv",
  "filename": "filename"
}