Create a storage bucket
create_bucketCreate a Supabase Storage bucket with required naming prefix (e.g., marketing, brand). Set access to private or public, and optionally specify allowed MIME types and file size limit.
Instructions
Create a new Supabase Storage bucket. Bucket names must start with one of: marketing, brand, campaigns, media, assets, then use lowercase letters, numbers, and dashes (for example: "marketing-q3-launch" or "brand-logos"). By default the bucket is PRIVATE (files need a signed link to view), accepts common media (images, video, audio, PDF), and limits files to 50MB. Set public=true only for assets meant to be shared openly on the web. If the name breaks the convention or already exists, creation fails with a clear explanation — nothing is overwritten.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Bucket name. Must match the convention, e.g. "marketing-q3-launch" or "brand-logos". | |
| public | No | true = anyone with the URL can view files (for openly shared assets). false (default) = private; files need a signed link. | |
| allowed_mime_types | No | Optional list of allowed file types, e.g. ["image/*", "application/pdf"]. Defaults to common media types. | |
| file_size_limit_mb | No | Optional maximum file size in megabytes. Defaults to 50. |