Files

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

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.

Changes

    • warning

      added the new auth.workspace_required enum value to the / response property for the response status

    • warning

      added the new auth.workspace_required enum value to the / response property for the response status

    • warning

      added the new auth.workspace_required enum value to the / response property for the response status

    • warning

      added the new auth.workspace_required enum value to the / response property for the response status

    • warning

      added the new auth.workspace_required enum value to the / response property for the response status

    • warning

      added the new auth.workspace_required enum value to the / response property for the response status

    • warning

      added the new auth.workspace_required enum value to the / response property for the response status

    • warning

      added the new auth.workspace_required enum value to the / response property for the response status

    • warning

      added the new auth.workspace_required enum value to the / response property for the response status

    • info

      added the new optional request property //

    • info

      added the new optional request property //

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status