import Telnyx from 'telnyx';const client = new Telnyx({ apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted});const response = await client.storage.buckets.usage.getBucketUsage('');console.log(response.data);
Returns the amount of storage space and number of files a bucket takes up.
GET
/
storage
/
buckets
/
{bucketName}
/
usage
/
storage
JavaScript
Copy
Ask AI
import Telnyx from 'telnyx';const client = new Telnyx({ apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted});const response = await client.storage.buckets.usage.getBucketUsage('');console.log(response.data);