import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const csvDownloads = await client.phoneNumbers.csvDownloads.list();
console.log(csvDownloads.data);{
"data": [
{
"id": "42587e44-3a3e-46de-9255-0c9a7a1d1ec7",
"record_type": "csv_download",
"url": "https://www.telnyx.com/sample/42587e44-3a3e-46de-9255-0c9a7a1d1ec7",
"status": "pending"
}
],
"meta": {
"page_number": 2,
"page_size": 25,
"total_pages": 3,
"total_results": 55
}
}import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const csvDownloads = await client.phoneNumbers.csvDownloads.list();
console.log(csvDownloads.data);{
"data": [
{
"id": "42587e44-3a3e-46de-9255-0c9a7a1d1ec7",
"record_type": "csv_download",
"url": "https://www.telnyx.com/sample/42587e44-3a3e-46de-9255-0c9a7a1d1ec7",
"status": "pending"
}
],
"meta": {
"page_number": 2,
"page_size": 25,
"total_pages": 3,
"total_results": 55
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful response with a list of CSV downloads.
Show child attributes
Identifies the resource.
"42587e44-3a3e-46de-9255-0c9a7a1d1ec7"
Identifies the type of the resource.
"csv_download"
The URL at which the CSV file can be retrieved.
"https://www.telnyx.com/sample/42587e44-3a3e-46de-9255-0c9a7a1d1ec7"
Indicates the completion level of the CSV report. Only complete CSV download requests will be able to be retrieved.
pending, complete, failed, expired "pending"
Was this page helpful?