Retrieve a bucket
Retrieves the details of an existing Storage bucket.
- Policy permissions required:
buckets
permissions:select
objects
permissions: none
Parameters
id
REQUIRED
stringThe unique identifier of the bucket you would like to retrieve.
const { data, error } = await supabase
.storage
.getBucket('avatars')