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 expiration_hours: Hours until file expires (1-48)

Returns: Dict containing the cloud storage path and signed URL

post/api/files/upload

Request

  • The document declares no server URL.
  • Auth
    HTTP bearer

Query parameters

expiration_hoursinteger

Request body multipart/form-data

filestring binary required

Response

Successful Response

file_uristring required
file_namestring required
sizeinteger required
content_typestring required
expires_in_hoursinteger required

Changes

No recorded changes to this operation across all 246 revisions of this API.