v4

latestSwagger 2.02026-08-0343714211.7 MB
usage_snapshots
Usage Snapshots

List Usage Snapshots

List Usage Snapshots

get/usage_snapshots

Query parameters

cursorstring

Used for pagination. When a list request has more records available, cursors are provided in the response headers X-Files-Cursor-Next and X-Files-Cursor-Prev. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.

per_pageinteger

Number of records to show per page. (Max: 10000, 1,000 or less is recommended).

Response

A list of UsageSnapshots objects.

idinteger

Usage snapshot ID

start_atstring date-time

Usage snapshot start date/time

end_atstring date-time

Usage snapshot end date/time

high_water_user_countinteger

Highest user count number in time period

current_storageinteger

Current total Storage Usage GB as of end date (not necessarily high water mark, which is used for billing)

high_water_storageinteger

Highest Storage Usage GB recorded in time period (used for billing)

root_storageinteger

Storage Usage for root folder as of end date (not necessarily high water mark, which is used for billing)

deleted_files_counted_in_minimuminteger

Storage Usage for files that are deleted but uploaded within last 30 days as of end date (not necessarily high water mark, which is used for billing)

deleted_files_storageinteger

Storage Usage for files that are deleted but retained as backups as of end date (not necessarily high water mark, which is used for billing)

total_billable_usageinteger

Storage + Transfer Usage - Total Billable amount

total_billable_transfer_usageinteger

Transfer usage for period - Total Billable amount

bytes_sentinteger

Transfer Usage for period - Outbound GB from Files Native Storage

sync_bytes_receivedinteger

Transfer Usage for period - Inbound GB to Remote Servers (Sync/Mount)

sync_bytes_sentinteger

Transfer Usage for period - Outbound GB from Remote Servers (Sync/Mount)

Example response

[
  {
    "id": 1,
    "start_at": "2000-01-01T01:00:00Z",
    "end_at": "2000-01-01T01:00:00Z",
    "high_water_user_count": 1,
    "current_storage": 1,
    "high_water_storage": 1,
    "root_storage": 1,
    "deleted_files_counted_in_minimum": 1,
    "deleted_files_storage": 1,
    "total_billable_usage": 1,
    "total_billable_transfer_usage": 1,
    "bytes_sent": 1,
    "sync_bytes_received": 1,
    "sync_bytes_sent": 1,
    "usage_by_top_level_dir": [
      {
        "dir": "dir",
        "size": 100,
        "count": 10
      }
    ]
  }
]