v25

latestOpenAPI 3.1.0raw.githubusercontent.com2025-11-204973358.2 KB
Files

Upload File

Request upload URLs for one or more files. Use this for batch uploads or when uploading files hosted at remote URLs.

Args: upload_request (FileUploadRequest): Contains files to upload and workspace UUID. - Set remote_uri to fetch files from external URLs - Set local_file_path to generate an upload URL for client-side uploads

Returns: FileUploadResponse: For each file, includes: - file_uuid: Use this to reference the file in eval runs - file_url: Upload URL (PUT your file here) or download URL (for remote_uri files) - processing_status: "pending" for remote files or videos, "completed" otherwise

Example: POST /api/files { "workspace_uuid": "...", "files": [ {"local_file_path": "data.csv"}, {"remote_uri": "https://example.com/file.mp4"} ] }

post/v2/files

Request body

workspace_uuidstring nullable

UUID of the workspace to associate with the upload, if any.

Response

OK

workspace_uuidstring nullable

UUID of the workspace associated with the upload, if any.