/v1/accounts/{accountId}/campaigns/{campaignId}/reports/numberDetails/downloadDownloads the number details report of a campaign as a CSV (comma-separated values) file. The file includes all the records matching the filter, without pagination. It accepts the same filter and sort parameters as List number details, whose Filter fields and Sort fields sections list the fields that can be used.
ID of your SIP Caller account. See Account ID.
ID of the campaign.
Returns the CSV file, with a header row, as text/plain; charset=utf-8. The columns are Number, one column for each variable of the campaign, Attempts and Status. For Dynamic campaigns, a NumberAddedAt_GMT column, with the date and time when the number was added in GMT, is included before Attempts. The Content-Disposition header contains a suggested file name. The file is generated while it's being sent, so if an error occurs halfway, the content ends with the line === RESPONSE ABORTED: INTERNAL SERVER ERROR === and must be discarded.
/v1/accounts/ACCOUNT_ID/campaigns/CAMPAIGN_ID/reports/numberDetails/download
curl -G 'https://api.sipcaller.com/v1/accounts/ACCOUNT_ID/campaigns/CAMPAIGN_ID/reports/numberDetails/download' \
-H 'Authorization: Bearer API_KEY_TOKEN' \
--data-urlencode 'filter={"status":["Failure","RetryPending"]}' \
--data-urlencode 'sort=["number","ASC"]' \
-o 'number-details.csv'Response
200 OK
Number,Customer Name,Due Balance,NumberAddedAt_GMT,Attempts,Status
+18035551009,Clara White,$350.00,2026-10-01 14:05:23.452,2,RetryPending
+18035551012,Owen Parker,$75.20,2026-10-01 14:05:23.452,3,Failure