> For the complete documentation index, see [llms.txt](https://docs.unimarket.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.unimarket.com/documentation/file-automation-sftp/sftp-setup-for-file-automation.md).

# sFTP Setup for File Automation

Unimarket uses Secure File Transfer Protocol (sFTP) to securely send and receive files. This functionality automates master data uploads (e.g., Users, Account Codes, and Approvals) and enables the scheduled export of reports, from your community to an sFTP folder.

## Prerequisites

* **Account Type**: You must have **Unimarket File Automation** enabled for your community.
* **Credentials**: You will receive a formal document from Unimarket containing your specific credentials and connection command line.

## How to Set Up sFTP

Follow these steps to establish a secure connection before you begin transferring files:

1. **Enable Functionality**: Unimarket enables the sFTP functionality on their end, providing a secure location for your CSV files.
2. **Establish Authentication**: Choose your preferred method of secure login:
   * **Public Key (Preferred)**: Provide Unimarket with your public key. Unimarket supports **Open SSH** and **RSA** private keys.
   * **User/Password**: Use the credentials of an integration user created in Unimarket.
3. **Whitelist IP Address**: Provide your organization's **IP address** to Unimarket.

{% hint style="info" %}
**Note:** You will experience a connection timeout if your IP is not whitelisted by Unimarket.
{% endhint %}

4. **Connect via Client**: Once Unimarket confirms the setup is updated, use an sFTP client to connect to the server using the provided command line.

## sFTP Server Configurations

Unimarket maintains fixed hostnames and IP addresses for different regions and environments. Ensure you use the correct details for your location:

| Environment | Region             | Hostname                  | IP Address       |
| ----------- | ------------------ | ------------------------- | ---------------- |
| **DEMO**    | All                | `sftp.unimarket-demo.com` | `34.172.138.111` |
| **PROD**    | New Zealand (NZ)   | `sftp.unimarket.co.nz`    | `35.189.31.11`   |
| **PROD**    | Australia (AU)     | `sftp.unimarket.com.au`   | `34.151.122.70`  |
| **PROD**    | United States (US) | `sftp.unimarket.com`      | `35.224.213.147` |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.unimarket.com/documentation/file-automation-sftp/sftp-setup-for-file-automation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
