
Usage
FTP List connector is used to list files and directories on FTP server. The created connector works as an API Proxy and can be triggered with either HTTP GET or POST request. When using POST request, you can apply advanced filtering criteria to search and filter files.Basic Usage (GET Request)
You can retrieve all files in the directory with a simple GET request:Advanced Usage (POST Request)
You can apply filtering criteria by sending request body with POST request:When request body is sent empty or GET request is made, all files in the directory are listed with default values.
Request Body Parameters
File Search Settings
File Search Settings
searchType
Type: stringDefault Value: STARTS_WITHDescription: Specifies how file names will be searched. Available options:
- STARTS_WITH: Checks if file name starts with the given pattern
- EXACT_MATCH: Checks for exact match with the given file name
- CONTAINS: Checks if file name contains the given pattern
- ENDS_WITH: Checks if file name ends with the given pattern
- WILDCARD: Uses wildcard pattern matching (* matches any sequence, ? matches single character)
searchPattern
Type: stringDefault Value: (empty - lists all files)Description: File name or pattern to search for. Usage depends on searchType:
- For WILDCARD:
*.json,file?.txt,report_*.pdf - For ENDS_WITH:
.json,.pdf - For STARTS_WITH:
invoice_,report - For CONTAINS:
2025,data - For EXACT_MATCH:
report.pdf,data.json
caseInsensitive
Type: booleanDefault Value: trueDescription: Determines whether file name search is case-sensitive. When set to true, “File.txt” and “file.txt” are treated as the same.
returnType
Type: stringDefault Value: ALL_MATCHESDescription: Specifies the amount of results to return:
- FIRST_MATCH: Returns only the first matching file and stops searching
- ALL_MATCHES: Returns all matching files
File Size Limitation
File Size Limitation
maxFileSizeKB
Type: integerDefault Value: (no limit)Description: Maximum file size in kilobytes (KB). Files larger than this size are excluded from results. For example, setting it to 10240 means only files up to 10 MB are included.Note: This parameter only affects file size filtering in listing results. It does not limit the file reading operation.
Response Format
The response is returned in JSON or XML format based on the Accept header in the request.Successful Response (Files Found)
Empty Response (No Files Found)
When no files are found, the
message field provides information about why no results were returned.Example Scenarios
Example 1: List All JSON Files
Usage Scenario: Find all files with .json extension in the directoryExample 2: Find Files Starting with “invoice”
Usage Scenario: List all files starting with “invoice” prefixExample 3: Find First PDF File
Usage Scenario: Get only the first PDF file and stop searchingExample 4: Exact File Name Match
Usage Scenario: Check if a specific file existsExample 5: Wildcard with Multiple Patterns
Usage Scenario: Find files matching complex patternsreport_2025_01.pdf, report_2025_12.pdf but not report_2025_123.pdf
Response Content Type
The connector returns response based on the Accept header:- application/json (default): Returns response in JSON format
- application/xml: Returns response in XML format

