Export campaign data
Campaigns
Export Campaign Data
Export campaign data as an Excel (.xlsx) file with optional filters.
GET
Export campaign data
Use this endpoint to export campaign data as an Excel file (.xlsx) with optional filters.
Endpoint
GET/export-campaign-data
Authentication: Required (workspace auth)
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_id | number | array | No | Filter by agent ID(s) |
campaign_name | string | No | Partial name search (LIKE) |
campaign_status | string | array | No | Filter by status. Defaults to all except deleted. |
date_range | string | No | Date range filter |
Campaign Status Values
| Status | Description |
|---|---|
draft | Campaign is in draft mode |
inprogress | Campaign is actively running |
hold | Campaign is on hold |
pause | Campaign is paused |
force_completed | Campaign was force completed |
Response
Returns an Excel file (.xlsx) with the following columns:
| Column | Description |
|---|---|
| ID | Campaign identifier |
| Campaign Name | Name of the campaign |
| Description | Campaign description |
| Agent Name | Associated agent name |
| Start Date | Campaign start date |
| End Date | Campaign end date |
| Status | Campaign status label |
| Max Retry | Maximum retry attempts |
| Max Delay | Delay between retries |
| Total Audience | Total audience count |
| Called Audience | Number of audiences called |
| Created By | User who created the campaign |
| Created Date | Campaign creation date |
| Updated Date | Last update date |
Notes
- The response is a binary Excel file stream, not JSON.
- Set your HTTP client to handle binary/file responses.
- If no
campaign_statusis provided, all statuses exceptdeletedare included. - Date filter applies to
CREATED_DATEof the campaign.
Example cURL
Headers
API token for authentication
Query Parameters
Filter by agent ID
Partial name search (LIKE)
Filter by status. Valid values: draft, inprogress, hold, pause, force_completed. Defaults to all.
Available options:
draft, inprogress, hold, pause, force_completed Date range filter
Response
Excel file download
The response is of type file.

