Python: Create a signed URL

Creates a signed URL for a file. Use a signed URL to share a file for a fixed amount of time.

Parameters

Examples

Create Signed URL

response = (
    supabase.storage
    .from_("avatars")
    .create_signed_url(
        "folder/avatar1.png", 
        60
    )
)

Create a signed URL for an asset with transformations

response = (
    supabase.storage
    .from_("avatars")
    .create_signed_url(
        "folder/avatar1.png", 
        60, 
        \{"transform": \{"width": 100, "height": 100\}\}
    )
)

Create a signed URL which triggers the download of the asset

response = (
    supabase.storage
    .from_("avatars")
    .create_signed_url(
        "folder/avatar1.png", 
        60, 
        \{"download": True\}
    )
)