Returns the total storage used by the organization's cases and a per-case breakdown, largest first, counting only cases that are not archived or deleted, optionally limited to caseIds. Requires a role in the organization (403 otherwise).
GET
/organization/{orgId}/storage-stats
curl \
--request GET 'http://api.example.com/organization/{orgId}/storage-stats' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"data": {
"totalOrgUsagesInBytes": 1073741824,
"cases": [
{
"caseId": "65a1b2c3d4e5f6a7b8c9d0e1",
"caseName": "Smith v. Jones",
"caseCreatedAt": "2026-01-15T14:30:00.000Z",
"usagesInBytes": 52428800
}
]
},
"statusCode": 200,
"timestamp": "2026-01-15T10:15:00.000Z"
}