New274+ blocks and 249+ tools are now fully documented
Storage & Files
Tool

SFTP

Transfer and manage files on an SFTP server

Connect to any SFTP (SSH File Transfer Protocol) server to move and manage files directly from your workflow. List directories, download and upload files, delete files, and create directories over a secure SSH connection.

Overview

PropertyValue
Typesftp
CategoryTool — File Transfer
AuthSSH password or private key

Operations

OperationTool IDDescription
List Directorysftp_listList files and directories at a remote path
Download Filesftp_getRead a remote file and return its contents
Upload Filesftp_putWrite content to a remote file
Delete Filesftp_deleteDelete a remote file
Make Directorysftp_mkdirCreate a remote directory

Configuration

SettingTypeDescription
HostShort inputSFTP server hostname or IP
PortShort inputSFTP port (default: 22)
UsernameShort inputSSH username
PasswordPasswordSSH password (or use a private key)
Private KeyLong inputPEM-encoded SSH private key (advanced)
Key PassphrasePasswordPassphrase for the private key (advanced)
OperationDropdownList, Download, Upload, Delete, or Make Directory
Remote PathShort inputRemote file or directory path
ContentLong inputContent to upload (upload operation)
EncodingDropdownutf8 for text or base64 for binary (download/upload)
Create ParentsSwitchCreate parent directories (make-directory operation)

Outputs

FieldTypeDescription
pathstringThe remote path operated on
filesjsonDirectory entries — name, type, size, modifyTime (list)
countnumberNumber of entries returned (list)
contentstringDownloaded file contents (download)
encodingstringEncoding of the returned content (download)
sizenumberFile size in bytes (download)
bytesWrittennumberBytes written (upload)
statusstringResult status message
errorstringError message if the operation failed

Authentication

Provide either a password or a private key. For key-based auth, paste the full PEM-encoded key into Private Key, and supply the Key Passphrase if the key is encrypted. Store credentials as workflow/environment variables rather than hardcoding them.

Example: Publish a Report

Workflow:

[Starter] → [Agent: Build CSV report] → [SFTP: Upload File] → [Response]

Generate a report with an Agent, then upload it to a partner's SFTP drop folder. Use the Download File operation in a separate workflow to pick up files other systems have placed on the server.

Tips

  • Binary files — set Encoding to base64 for both download and upload to preserve bytes.
  • List first — use sftp_list to discover file names before a sftp_get.
  • Connections are per-call — each operation opens and closes its own SFTP session, so no state leaks between runs.