/v1/accounts/{accountId}/contactLists/{contactListId}/numbers/downloadDownloads the numbers of a contact list 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 contact list numbers, 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 contact list.
Returns the CSV file, with a header row, as text/plain; charset=utf-8. The first column contains the number, followed by one column for each variable of the contact list. 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/contactLists/CONTACT_LIST_ID/numbers/download
curl -G 'https://api.sipcaller.com/v1/accounts/ACCOUNT_ID/contactLists/CONTACT_LIST_ID/numbers/download' \
-H 'Authorization: Bearer API_KEY_TOKEN' \
--data-urlencode 'sort=["number","ASC"]' \
-o 'contact-list-numbers.csv'Response
200 OK
Number,Customer Name,Due Balance
+18035551003,Clara White,$350.00
+18035551004,Stefan Robertson,$99.00
+18035551005,Millie Watson,$118.49