Skip to main content
Version: v2 RC

listBuckets()

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

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

Notes

  • RLS policy permissions required:
    • buckets table permissions: select
    • objects table permissions: none
  • Refer to the Storage guide on how access control works

Examples

List buckets

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