Import Files (v1)
The Import Files action in Automations v1 retrieves files from one or more external URLs or API endpoints and saves them to destination paths within Files.com. It is a fully integrated alternative to custom scripts, third-party connectors, or Remote Server mounts.
This automation works with both public and authenticated endpoints. It supports dynamic file naming, custom headers and payloads, automatic retries, and per-run logging. Use it to import data from partners, vendors, or other external systems on a recurring schedule.
When to Use Import Files Automation
Use the Import Files automation to replace custom scripts that are difficult to maintain, debug, or scale. Scripts that fetch files over HTTP often require specialized knowledge and can be error-prone. The automation handles reliability, retry logic, logging, and dynamic token support natively within Files.com.
It also replaces third-party HTTP connectors or Remote Servers used to access API endpoints. Import Files integrates the same functionality natively, which removes the need for persistent connections, external workflow tools, or middleware.
Common use cases include importing pricing or inventory updates, retrieving daily transaction summaries, downloading regulatory reports, and fetching files from vendor portals.
External URLs
Each import entry requires a valid external URL that Files.com can access directly. The URL can point to a static file hosted on a public server or to dynamic content returned from an API. You can include as many external URLs as you need in a single automation, and each entry is handled independently.
Import URLs must be reachable over the public internet. Files.com checks the destination when it makes each request, after any tokens are expanded and the hostname is resolved. Requests to private, loopback, or link-local addresses are refused, including redirects to those addresses. These checks apply to every import URL in every Workspace, regardless of how the Automation is configured.
Saving the Automation does not check the URL's destination. Tokens can change the URL for each run, and its destination address is determined at runtime, so a successful save does not confirm that the import can run. A refused request fails that import and records the error in the Automation's run log.
File Name to Save Response
For each external URL, you must define a file name for the downloaded content. The file name can be static or dynamic. Dynamic file names may include tokens such as %Y, %m, %d, or %tp to reflect the current date and time, or values related to file triggers if the automation is event-based.
HTTP Method and Headers
You can configure the HTTP method used to fetch each file. The default method is GET. POST is also supported when you need to include a body payload.
You can include custom headers for authentication, API tokens, or other request metadata. Headers support wildcard tokens and are evaluated at runtime to include dynamic values such as the current date, time, or triggering file information.
Files.com follows redirects from each import URL. The configured headers are sent only to that URL's origin: its scheme (http or https), host, and port. When a redirect leads to another origin, Files.com follows it without the configured headers. This lets an API check your credentials and redirect to a file on a separate storage service without sending your API token to that service.
POST Body Content
When POST is selected, you can optionally include a request body using either String or JSON format.
When using String, all wildcard tokens are expanded and inserted into the request as plain text. When using JSON, only top-level values are expanded.
For example, in { "name": "%tp" }, the %tp token is expanded and JSON-escaped properly. In contrast, [ "%tp" ] or { "file": { "name": "%tp" } } will be sent without token replacement because the value is nested or part of an array.
This selective expansion lets you control how much of the payload is dynamic while keeping structured API formats intact. Arrays and nested structures are preserved as-is, which is useful when working with rigid schemas or third-party endpoints.
Destination Folder
Imported files are saved to one or more destination paths defined in the automation. The destination can be a folder on the same site, a Remote Server, or a connected Child Site.
If the destination path ends with a /, the configured file name is preserved and the file is saved into that folder. If the path does not end with a /, the final segment is treated as the file name, and the file is renamed accordingly.
Destination paths also support tokens such as %Y, %m, %d, and %tp, which lets you organize imported files into dated folders or structured subdirectories based on runtime values.
Controlling How Import Files Automations Are Executed
When triggered by file action based triggers or inbound webhooks, Import Files Automations can run multiple jobs in parallel. If those runs can change the same files or destinations, enable Always Serialize Jobs to run one job at a time.
This setting coordinates runs of this Automation. For work shared with other Automations, Syncs, or applications, use workflow coordination to define when each operation can use or change the files.