Export campaign audience data
Campaigns
Export Campaign Audience Data
Export campaign audience data as an Excel (.xlsx) file with optional filters. Columns include dynamic fields based on agent metadata.
GET
Export campaign audience data
Use this endpoint to export campaign audience data as an Excel file (.xlsx) with optional filters.
Endpoint
GET/export-campaign-audience-data
Authentication: Required (workspace auth)
Query Parameters
| 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 |
Audience Status Values
| Status | Description |
|---|---|
fresh | Not yet called |
completed | Call completed |
halted | Call halted |
inqueue | In queue for calling |
Response
Returns an Excel file (.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 |
Notes
- The response is a binary Excel file stream, not JSON.
- Set your HTTP client to handle binary/file responses.
- Dynamic columns are derived from the agent’s metadata input configuration.
- The
campaign_idmust belong to the authenticated company and workspace. - Date filter applies to
CREATED_DATEof the audience record.
Example cURL
Headers
API token for authentication
Query Parameters
Campaign identifier
Partial mobile number search
Filter by audience status. Valid values: fresh, completed, halted, inqueue
Available options:
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
Response
Excel file download
The response is of type file.

