Storage
Sign file URL
Changed onCreates a signed URL that grants temporary access to a fal CDN file, regardless of its ACL. Useful for sharing access-restricted files.
The signature is valid for expiration_seconds (up to 7 days).
Authentication: Required. The API key must have the assets:read permission.
Required permissions: assets:read. Key presets that include them: API, SERVERLESS, READONLY, FULL. See key permissions.
post/storage/files/sign
Request
- Base URLhttps://api.fal.ai/v1
- URLhttps://api.fal.ai/v1/storage/files/sign
- AuthAPI key in header Authorization
Query parameters
urlstring uri required
Full URL of the fal CDN file, as returned by the upload APIs (https://v3.fal.media/files/b/<id>/<filename>). Must not contain query parameters.
Example:https://v3.fal.media/files/b/0a1b2c3d/output.png
Request body
Example request
{
"expiration_seconds": 3600
}Response
Signed URL granting temporary access
Example response
{
"signed_url": "https://v3.fal.media/files/b/0a1b2c3d/output.png?identity=..."
}Changes
- info
the endpoint scheme security
readonlyApiKeywas added to the API - info
the endpoint scheme security
apiKeywas removed from the API
- info