Skip to main content
Upload a file to Skyvern storage and pass the returned URL to a task or agent. Every method here also accepts request_options (Python) or a final requestOptions argument (TypeScript) to override the timeout, retries or headers for one call; see request options.

upload_file

Upload a file
The upload_file method in the current Python and TypeScript SDKs does not send the file’s contents: it posts file as a text field, and the API rejects the request with a 422 error. Until the SDKs are fixed, call the REST endpoint directly with a multipart upload:
Parameters Returns UploadFileResponse · TypeScript Promise<UploadFileResponse>