> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/end-user-and-partner-section/end-user-section/how-to-import-documents/ftp.md).

# FTP

If you would like to integrate your SFTP with DocBits in order to import documents.

Requirements

* Correctly configured, Linux compatible SFTP Server
* SFTP Hostname, Username and Password
* Dedicated Import folder

**Import Configuration**

From the Dashboard, open Settings and navigate to Import. Under FTP Import, select to add a new configuration.

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-e0806ff62231c6dedd8e99f0074d50dd817c31cc%2Fftp1.png?alt=media" alt="Add New FTP Configuration"><figcaption></figcaption></figure>

Enter SFTP credentials in the given spaces and select save (The API Key field will automatically be filled with the API Key of the environment you are working on).

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-972b718673b02f29cb8674f14efeee7b296cd29b%2Fftp_import_configuration_form.png?alt=media" alt="FTP Import Configuration Form"><figcaption></figcaption></figure>

Once you have entered all the necessary details of your SFTP, click SAVE.

### **FTP File Archiving**

1. **Enable File Archiving**
   * Locate the "File Archiving" option.
   * Toggle the switch to the "On" position to enable archiving.
2. **Select the Archive Directory**
   * Once the "File Archiving" switch is enabled, a field will appear allowing you to specify the directory path for archived files.
   * Select the desired folder path on the SFTP/FTP server where the archived files should be stored.
3. **Save Changes**
   * Click the **Save** button to apply the changes.

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-11ed925df721cc3a964ca414886ce988094a758e%2Fftp_3.png?alt=media" alt="FTP File Archiving Settings"><figcaption></figcaption></figure>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.docbits.com/end-user-and-partner-section/end-user-section/how-to-import-documents/ftp.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
