Skip to main content
GET
/
user
/
space-usage
curl "https://app.drime.cloud/api/v1/user/space-usage?workspaceId=0" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
  "used": 120042057597,
  "available": 6597069766656,
  "status": "success"
}

Overview

Returns the current storage usage and available space for a user or workspace.

Query Parameters

workspaceId
integer
Workspace ID. Use 0 for the user’s default personal workspace.

Response

used
integer
Total space used in bytes
available
integer
Available space in bytes
status
string
Request status (success)
curl "https://app.drime.cloud/api/v1/user/space-usage?workspaceId=0" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
  "used": 120042057597,
  "available": 6597069766656,
  "status": "success"
}
The values are in bytes. To convert to GB, divide by 1024 * 1024 * 1024.