Skip to main content

List Buckets

Sprint 3

List all available buckets in MinIO/S3 storage.

Endpoint

GET /api/v1/storage/buckets

Headers

HeaderRequiredDescription
AuthorizationYesBearer <access_token>

Response

Success (200)

{
"success": true,
"data": {
"buckets": [
"rivergen-storage",
"backup-bucket"
]
},
"message": "Buckets retrieved successfully"
}

Error Codes

StatusCodeDescription
401UNAUTHORIZEDInvalid or missing authentication token
500INTERNAL_SERVER_ERRORFailed to list buckets

Features

  • Lists all available buckets in MinIO/S3
  • Returns bucket names as array

Example

curl -X GET "https://api.rivergen.com/api/v1/storage/buckets" \
-H "Authorization: Bearer <access_token>"