curl --request GET \
--url https://www.tryunleashx.com/api/v1/global/export-campaign-data \
--header 'token: <token>'"<string>"Export campaign data as an Excel (.xlsx) file with optional filters.
curl --request GET \
--url https://www.tryunleashx.com/api/v1/global/export-campaign-data \
--header 'token: <token>'"<string>"/export-campaign-data
Authentication: Required (workspace auth)
| 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 |
| 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 |
.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 |
campaign_status is provided, all statuses except deleted are included.CREATED_DATE of the campaign.curl -X GET "https://www.tryunleashx.com/api/v1/global/export-campaign-data?campaign_status=inprogress&agent_id=5" \
-H "token: <api_key>" \
-o campaign_data.xlsx
API token for authentication
Filter by agent ID
Partial name search (LIKE)
Filter by status. Valid values: draft, inprogress, hold, pause, force_completed. Defaults to all.
draft, inprogress, hold, pause, force_completed Date range filter
Excel file download
The response is of type file.
Was this page helpful?