Get a shareable link (signed)
get_signed_urlGenerate a time-limited signed URL to privately share a file from Supabase Storage. Anyone with the link can view the file until it expires, adjustable from 1 to 30 days.
Instructions
Create a temporary shareable link to a file. This works for PRIVATE buckets: anyone with the link can view the file until it expires. The default link lasts 7 days; you can ask for anywhere from 1 to 30 days. Use this to share media that shouldn't be public forever.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bucket | Yes | The bucket the file is in. | |
| file_path | Yes | Path to the file inside the bucket, e.g. 'logo.png' or 'logos/logo.png'. Use 'list_files' to find it. | |
| expires_in_days | No | How many days the link stays valid. Default 7, maximum 30. |