curl --request GET \
--url https://www.tryunleashx.com/api/v1/global/export-campaign-audience-data \
--header 'token: <token>'"<string>"Export campaign audience data as an Excel (.xlsx) file with optional filters. Columns include dynamic fields based on agent metadata.
curl --request GET \
--url https://www.tryunleashx.com/api/v1/global/export-campaign-audience-data \
--header 'token: <token>'"<string>"/export-campaign-audience-data
Authentication: Required (workspace auth)
| Parameter | Type | Required | Description |
|---|---|---|---|
campaign_id | number | Yes | Campaign identifier |
mobile_no | string | No | Partial mobile number search (LIKE) |
status | string | array | No | Audience status filter (see values below) |
call_status | string | array | No | Filter by call status |
first_status | string | array | No | Filter by first call status |
last_status | string | array | No | Filter by last call status |
attempt | number | array | No | Filter by number of attempts made |
date_range | string | No | Date range filter |
| Status | Description |
|---|---|
fresh | Not yet called |
completed | Call completed |
halted | Call halted |
inqueue | In queue for calling |
.xlsx) with the following columns:
| Column | Description |
|---|---|
| ID | Audience record identifier |
| Mobile No | Audience mobile number |
| Dynamic Columns | Columns based on agent metadata input fields |
| Status | Audience status label |
| Attempt | Attempts made vs max retry (e.g., 2/3) |
| Call Status | Last call status |
| Duration | Total call duration |
| Disposition | Last disposition |
| Modified By | User who last modified |
| Updated Date | Last update date |
campaign_id must belong to the authenticated company and workspace.CREATED_DATE of the audience record.curl -X GET "https://www.tryunleashx.com/api/v1/global/export-campaign-audience-data?campaign_id=42&status=completed" \
-H "token: <api_key>" \
-o campaign_audience.xlsx
API token for authentication
Campaign identifier
Partial mobile number search
Filter by audience status. Valid values: fresh, completed, halted, inqueue
fresh, completed, halted, inqueue Filter by call status
Filter by first call status
Filter by last call status
Filter by attempt count
Date range filter
Excel file download
The response is of type file.
Was this page helpful?