Skip to main content

listBuckets()

Retrieves the details of all Storage buckets within an existing product.

const { data, error } = await supabase
.storage
.listBuckets()

Notes#

  • Policy permissions required:
    • buckets permissions: select
    • objects permissions: none

Examples#

List buckets#

const { data, error } = await supabase
.storage
.listBuckets()