Resolve storage URI to download URL
Resolve a gs:// storage URI to a temporary pre-signed download URL.
This is the recommended endpoint for downloading files from task outputs.
Simply pass the gs:// URI exactly as you received it—no parsing required.
The returned download_url is a pre-signed URL valid for 1 hour that can
be used to download the file directly without additional authentication.
Why use POST instead of GET?
Using POST keeps the URI out of server access logs and browser history, which is better for security when dealing with sensitive files.
Authorizations
API key authentication. Include your API key in the X-API-Key header as: X-API-Key YOUR_API_KEY
Example:
JWT Bearer token authentication. Include your access token in the Authorization header as: Bearer YOUR_ACCESS_TOKEN
Example:
Body
Request body for resolving a storage URI to a download URL.
Pass the gs:// URI exactly as received from task outputs—no parsing required.
The gs:// storage URI to resolve. Pass the exact URI from your task output.
Response
URI resolved successfully
Response containing a temporary pre-signed download URL.
The download_url can be used directly to download the file without additional authentication. URLs expire after 1 hour.
Pre-signed URL for downloading the file. Use this URL directly—no authentication headers required. Valid for 1 hour.
ISO 8601 timestamp when the download URL expires. Request a new URL after this time.
Seconds remaining until the download URL expires. Always 3600 (1 hour) for new URLs.