Supabase icon

Supabase

Interact with Supabase database and storage

Storage → Create Bucket

AI-generated

Summary

Create a new storage bucket in Supabase with a specified name and optional public accessibility setting.

Inputs

  • Bucket Name (required) — The name of the bucket to create.
  • Public Bucket — Boolean indicating whether the bucket should be publicly accessible (default is false).

Output shape

a single record containing details about the newly created bucket

The response includes metadata about the created bucket, such as name and creation date, or an error if the operation failed.

Examples

Example 1: Create a private bucket named 'my-new-bucket'

Set 'Bucket Name' to 'my-new-bucket' and leave 'Public Bucket' unchecked.

Example 2: Create a public bucket named 'public-assets'

Set 'Bucket Name' to 'public-assets' and enable 'Public Bucket' option.

Discussion