import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const csvDownload = await client.phoneNumbers.csvDownloads.retrieve('id');
console.log(csvDownload.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"
}
]
}import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const csvDownload = await client.phoneNumbers.csvDownloads.retrieve('id');
console.log(csvDownload.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"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Identifies the CSV download.
Successful response with details about a CSV download.
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?