Usage

Get the usage information for a specific bucket

GEThttps://beta.data.banyan.computer/api/v1/buckets/{bucket_id}/usage
Authorization
Path parameters
bucket_id*string

The ID of the bucket to get usage information for

Response

Bucket usage information retrieved successfully

Body
size*number (int64)
Request
const response = await fetch('https://beta.data.banyan.computer/api/v1/buckets/{bucket_id}/usage', {
    method: 'GET',
    headers: {
      "Authorization": "Bearer JWT"
    },
});
const data = await response.json();
Response
{
  "size": 0
}