Bucket Usage

Get Bucket Usage

Changed on

Returns the amount of storage space and number of files a bucket takes up.

get/storage/buckets/{bucketName}/usage/storage

Request

  • Base URL
    https://api.telnyx.com/v2
  • URL
    https://api.telnyx.com/v2/storage/buckets/{bucketName}/usage/storage
  • Auth
    HTTP bearer

Path parameters

bucketNamestring required

The name of the bucket

Response

Bucket Storage Usage

Example response

{
  "data": [
    {
      "size": 123456,
      "size_kb": 123456,
      "num_objects": 123456,
      "timestamp": "2020-01-01T00:00:00Z"
    }
  ],
  "meta": {
    "page_number": 2,
    "page_size": 25,
    "total_pages": 3,
    "total_results": 55
  }
}

Changes

    • breaking

      the response property / became optional for the status

    • breaking

      the response property / became optional for the status