v51

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01302395850.8 KB
v1
files

Upload file to cloud storage

Upload a file to cloud storage and return a storage key that can be used with FileStoreBlock and AgentFileInputBlock.

Args: file: The file to upload user_id: The user ID provider: Cloud storage provider ("gcs", "s3", "azure") expiration_hours: Hours until file expires (1-48)

Returns: Dict containing the cloud storage path and signed URL

post/api/files/upload

Query parameters

expiration_hoursinteger

Response

Successful Response

file_uristring required
file_namestring required
sizeinteger required
content_typestring required
expires_in_hoursinteger required