/buckets/allGETAuthorization (required, string): Bearer token for authentication.x-company-id (optional, string): If provided, returns buckets specific to that company. If omitted, returns the user's personal buckets.GET /buckets/all
Content-Type: application/json
Authorization: Bearer <your_access_token>{
"status": 200,
"message": "Buckets retrieved successfully.",
"data": [
{
"id": "bkt_user_001",
"name": "Personal Documents",
"type": "user",
"storageUsed": "1.2GB",
"fileCount": 150,
"createdAt": "2024-01-10T08:00:00Z"
},
{
"id": "bkt_comp_002",
"name": "Project Alpha Assets",
"type": "company",
"storageUsed": "5.4GB",
"fileCount": 340,
"createdAt": "2024-02-15T10:30:00Z"
}
]
}