Sync files from SFTP to REST API
File TransferRecipe ToolsData ParserMarketingUtilitiesDeveloper ToolAPI Integration
What it does
When a new or updated file appears in a directory on the SFTP server, this automation downloads it. The XML Parser extracts structured data and REST sends it to an API endpoint so downstream systems receive the information.
Who it's for
Data and analytics teams who need to move files from SFTP into API-driven workflows without manual steps.
How teams use this
Ingest daily reports into analytics
Download XML reports from SFTP each day, parse them with XML Parser, and send the data to an analytics REST API. The team gets fresh data without opening SFTP or running manual imports.
Route files to different endpoints
Monitor SFTP for multiple file types and send each to a different REST API endpoint based on the file name or content. Only the API endpoint changes per file type.
Add validation before sending data
Include a condition to check the XML structure or file size before posting to the REST API. Only valid files are sent downstream, reducing errors in the target system.
How it works
- Monitor SFTP directory for file changes. Watch a directory on the SFTP server for new or updated files. When a file arrives or changes, this automation starts.
- Download the file from SFTP. Retrieve the file from the SFTP server using the SFTP connector so its contents can be processed in the next steps.
- Parse the XML document. The XML Parser extracts structured data from the file so it can be sent to the REST API in the correct format.
- Send data via HTTP request. Post the parsed XML data to a REST API endpoint using HTTP so downstream systems receive the information.