curl --request GET \
--url https://www.tryunleashx.com/api/v1/global/audience-format \
--header 'token: <token>'"<string>"Download an Excel (.xlsx) template for uploading audience data to a campaign. Columns are dynamically generated based on the agent’s metadata input fields.
curl --request GET \
--url https://www.tryunleashx.com/api/v1/global/audience-format \
--header 'token: <token>'"<string>"/audience-format
Authentication: Required (workspace auth)
| Parameter | Type | Required | Description |
|---|---|---|---|
campaign_id | number | Yes | Campaign identifier |
.xlsx).
application/vnd.openxmlformats-officedocument.spreadsheetml.sheetaudience_format_<timestamp>.xlsxmobile_no as the first column. Additional columns are dynamically generated based on the agent’s configured metadata input fields.
| Column | Description |
|---|---|
mobile_no | Phone number in E.164 format (e.g. +12025550123) |
<custom_field> | Additional fields defined in the agent’s metadata input |
audience field.| Error | Cause |
|---|---|
Campaign not exist Or Agent is not assigned to campaign | Invalid campaign_id or no agent linked |
curl -X GET "https://www.tryunleashx.com/api/v1/global/audience-format?campaign_id=42" \
-H "Authorization: <api_key>" \
--output audience_template.xlsx
Was this page helpful?