> 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="/files/XByVNucu0dZe2t9iiK70" 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="/files/2om0rN9Z6mh2C6wgVHv9" 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="/files/Cg0ocyIZIKnwwLQIbxip" 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 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.docbits.com/end-user-and-partner-section/end-user-section/how-to-import-documents/ftp.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.
