> For the complete documentation index, see [llms.txt](https://docs.flashback.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flashback.tech/support-reference/platform-api-reference/storage-apis/bucket-management.md).

# Bucket

This file outlines the Flashgate API's bucket management features, including creating storage buckets, listing them, and retrieving usage stats. It supports AWS, GCS, Azure, and S3/GCS-compatible providers. All bucket operations now support workspace-based access control through the `workspaceId` parameter.

{% hint style="info" %}
To perform this operation, you must be authenticated by means of one of the following methods: [BearerAuth](/support-reference/platform-api-reference.md#http-bearer-authentication).
{% endhint %}

## Bucket API Calls <a href="#flashgate-api-buckets" id="flashgate-api-buckets"></a>

| Method                                                                 | API Reference                                                                                                                                            | Description                                                                                      |
| ---------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| <mark style="color:green;">`GET`</mark>`/bucket`                       | [**get\_\_bucket**](/support-reference/platform-api-reference/storage-apis/bucket-management/get__bucket.md)                                             | List all buckets belonging to the authenticated user's organization.                             |
| <mark style="color:green;">`GET`</mark>`/bucket/stats`                 | [**get\_\_bucket\_stats**](/support-reference/platform-api-reference/storage-apis/bucket-management/get__bucket_stats.md)                                | Retrieve usage and performance statistics for one or more storage buckets.                       |
| <mark style="color:orange;">`POST`</mark>`/bucket`                     | [**post\_\_bucket**](/support-reference/platform-api-reference/storage-apis/bucket-management/post__bucket.md)                                           | Create a new storage bucket with credentials for AWS, GCS, Azure, or S3/GCS-compatible services. |
| <mark style="color:green;">`GET`</mark>`/bucket/available`             | [**get\_\_bucket\_available**](/support-reference/platform-api-reference/storage-apis/bucket-management/get__bucket_available.md)                        | List available buckets that can be used for new repositories.                                    |
| <mark style="color:green;">`GET`</mark>`/bucket/{bucketId}/status`     | [**get\_\_bucket\_-bucketid-\_status**](/support-reference/platform-api-reference/storage-apis/bucket-management/get__bucket_-bucketid-_status.md)       | Get status and node information for a specific bucket.                                           |
| <mark style="color:orange;">`POST`</mark>`/bucket/{bucketId}/stats`    | [**post\_\_bucket\_-bucketid-\_stats**](/support-reference/platform-api-reference/storage-apis/bucket-management/post__bucket_-bucketid-_stats.md)       | Get daily statistics for a specific bucket.                                                      |
| <mark style="color:blue;">`PUT`</mark>`/bucket/{bucketId}`             | [**put\_\_bucket\_-bucketid**](/support-reference/platform-api-reference/storage-apis/bucket-management/put__bucket_-bucketid.md)                        | Update an existing bucket's configuration.                                                       |
| <mark style="color:red;">`DELETE`</mark>`/bucket/{bucketId}`           | [**delete\_\_bucket\_-bucketid**](/support-reference/platform-api-reference/storage-apis/bucket-management/delete__bucket_-bucketid.md)                  | Delete a bucket (soft delete).                                                                   |
| <mark style="color:orange;">`POST`</mark>`/bucket/{bucketId}/validate` | [**post\_\_bucket\_-bucketid-\_validate**](/support-reference/platform-api-reference/storage-apis/bucket-management/post__bucket_-bucketid-_validate.md) | Validate bucket accessibility and connectivity.                                                  |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.flashback.tech/support-reference/platform-api-reference/storage-apis/bucket-management.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
