get__bucket
GET /bucket
List Buckets
Get all storage buckets for the authenticated user's organization
Parameters
workspaceId
query
string
false
Optional workspace ID to filter buckets. If not provided, returns all buckets the user has access to based on their role and workspace membership.
TypeScript Client Library
public getStorageBuckets = async (workspaceId?: string): Promise<GetBucketsResponse> => {
const queryParams = workspaceId ? `?workspaceId=${workspaceId}` : '';
return this.makeRequest<GetBucketsResponse>(`bucket${queryParams}`, 'GET', null);
};
Code Samples
# You can also use wget
curl -X GET https://backend.flashback.tech/bucket \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
# With workspaceId parameter
curl -X GET 'https://backend.flashback.tech/bucket?workspaceId=workspace-123' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
Example responses
200 Response
{
"success": true,
"buckets": [
{
"name": "string",
"id": "string",
"storageType": "string",
"bucket": "string",
"key": "string",
"secret": {},
"endpoint": "string",
"region": "string",
"status": "string",
"lastStatusAt": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z",
"workspaceId": "workspace-123"
}
]
}
Responses
Response Schema
Status Code 200
» success
boolean
false
none
none
» buckets
[object]
false
none
none
»» name
string
false
none
none
»» id
string
false
none
none
»» storageType
string
false
none
none
»» bucket
string
false
none
none
»» key
string
false
none
none
»» secret
object
false
none
none
»» endpoint
string
false
none
none
»» region
string
false
none
none
»» status
string
false
none
none
»» lastStatusAt
string(date-time)
false
none
none
»» createdAt
string(date-time)
false
none
none
»» workspaceId
string
false
none
Workspace ID the bucket belongs to (if any)
To perform this operation, you must be authenticated by means of one of the following methods: BearerAuth
Last updated
Was this helpful?