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"} ] }
Request body
Response
OK
Changes
Changed in 1 of the 25 revisions of this API.95
- ●
added the new
auth.workspace_requiredenum value to theerror/coderesponse property for the response status400response-property-enum-value-added
- ●
added the new
auth.workspace_requiredenum value to theerror/coderesponse property for the response status401response-property-enum-value-added
- ●
added the new
auth.workspace_requiredenum value to theerror/coderesponse property for the response status403response-property-enum-value-added
- ●
added the new
auth.workspace_requiredenum value to theerror/coderesponse property for the response status404response-property-enum-value-added
- ●
added the new
auth.workspace_requiredenum value to theerror/coderesponse property for the response status409response-property-enum-value-added
- ●
added the new
auth.workspace_requiredenum value to theerror/coderesponse property for the response status422response-property-enum-value-added
- ●
added the new
auth.workspace_requiredenum value to theerror/coderesponse property for the response status429response-property-enum-value-added
- ●
added the new
auth.workspace_requiredenum value to theerror/coderesponse property for the response status500response-property-enum-value-added
- ●
added the new
auth.workspace_requiredenum value to theerror/coderesponse property for the response status503response-property-enum-value-added
- ○
added the new optional request property
files/items/content_typenew-optional-request-property
- ○
added the new optional request property
files/items/remote_urinew-optional-request-property
- ○
added the optional property
files/items/content_typeto the response with the200statusresponse-optional-property-added
- ○
added the optional property
files/items/processing_statusto the response with the200statusresponse-optional-property-added
- ○
added the optional property
files/items/remote_urito the response with the200statusresponse-optional-property-added
- ●