--- title: "Export Data from Insider One to Your SFTP Server" slug: "export-data-from-insider-one-to-your-sftp-server" description: "Export Insider One event data to your own SFTP server on a schedule, as CSV or JSONL files with optional gzip compression and PGP encryption." updated: 2026-11-23T07:33:46Z published: 2026-11-23T07:33:46Z canonical: "academy.insiderone.com/export-data-from-insider-one-to-your-sftp-server" --- > ## Documentation Index > Fetch the complete documentation index at: https://academy.insiderone.com/llms.txt > Use this file to discover all available pages before exploring further. # Export Data from Insider One to Your SFTP Server The SFTP export delivers your Insider One event data to an SFTP server you own, on a schedule you choose. Each export is a set of CSV or JSONL files, optionally compressed with gzip and encrypted with your PGP public key, written to the folder you name. You set it up yourself in the InOne panel through a step-by-step wizard, with no engineering ticket. Marketing Operations or CRM teams usually run the setup, together with the IT or Data team that owns the SFTP server and provides the credentials, the folder, and the allowlist. Use it when your systems, or your security policy, accept data only as files over SFTP. Examples are a data warehouse load job, a CRM import, a print or fulfillment partner, or a reporting tool. In this article: - [Use cases](/docs/export-data-from-insider-one-to-your-sftp-server#use-cases) - [What gets exported](/docs/export-data-from-insider-one-to-your-sftp-server#what-gets-exported) - [Before you begin](/docs/export-data-from-insider-one-to-your-sftp-server#before-you-begin) - [Set up the SFTP export](/docs/export-data-from-insider-one-to-your-sftp-server#set-up-the-sftp-export) - [File names](/docs/export-data-from-insider-one-to-your-sftp-server#file-names) - [File format](/docs/export-data-from-insider-one-to-your-sftp-server#file-format) - [Completion file](/docs/export-data-from-insider-one-to-your-sftp-server#completion-file) - [Manage your export](/docs/export-data-from-insider-one-to-your-sftp-server#manage-your-export) - [If files do not arrive](/docs/export-data-from-insider-one-to-your-sftp-server#if-files-do-not-arrive) - [Limitations](/docs/export-data-from-insider-one-to-your-sftp-server#limitations) - [FAQ](/docs/export-data-from-insider-one-to-your-sftp-server#faq) ## Use cases - **Feed your data warehouse or data lake** with Insider One events on a fixed cadence, as files your existing load jobs already read. - **Meet a file-only security policy.** Teams that cannot open an API to an external platform receive the data over SFTP, encrypted with their own PGP key. - **Hand data to a third party** (an agency, a print house, or a call center) that picks up files from an SFTP folder. - **Keep a file archive** of user activity for reporting or audit, with a completion file that lists every delivered part with its row count and checksum. ## What gets exported Each export contains the events you select, one row per event, with the columns you choose: - **Event fields:** Insider ID, event name, event time, and the parameters of the selected events (for example, product ID or currency). - **User fields:** the identifiers (for example, email address or phone number) and attributes (for example, city or a custom attribute) of the user who performed each event. You decide the name and the order of every column in the file. > [!NOTE] > Event names are written the way Insider One stores them. For example, a purchase appears as `confirmation_page_view`. ## Before you begin > [!WARNING] > Creating or editing the export requires an **Administrator** or an **Editor with PII access**. Prepare the following with the team that owns the SFTP server: 1. **An SFTP server** reachable from the internet, with its host name and port (usually 22). 2. **A user for Insider One** with a password, or with an SSH private key (and its passphrase, if it has one). 3. **A folder** on the server for the files. The folder must already exist, because Insider One does not create folders. 4. **Permissions** for that user to write, rename, and delete files in the folder. Insider One writes every file under a temporary name and renames it once it is complete. The connection check also writes and deletes a small test file. 5. **Insider One's IP addresses on your server's allowlist**, if your server accepts connections only from known addresses. See [Insider One IP Allowlist for Destinations](https://academy.insiderone.com/docs/insider-one-ip-allowlist-for-destinations). 6. **(Optional) Your PGP public key**, if the files must be encrypted. > [!NOTE] > Your account can have one SFTP export, and it shares this slot with the Snowflake and Databricks destinations. If your account already has a Snowflake or Databricks destination, delete it before you add an SFTP export, and the other way round. When the slot is taken, the **Destination** option of the card is disabled, and a tooltip explains that the limit is reached. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/ftp-integration-cropped-hq (1).png) ## Set up the SFTP export ### Step 1. Create the destination 1. Navigate to **InOne** > **Components** > **Integrations** > **External Integrations**. 2. Open **All Integrations** and select the **FTP** card. 3. Select **Destination** as the integration type. 4. Enter a name for the integration and click **Save**. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-5OJ7HDQ8.png) > [!NOTE] > The panel names this integration **FTP**, and the setup wizard **FTP Destination**. The export itself always connects over SFTP. The setup wizard opens on the integration page. It has seven pages: **Connections**, **File Settings**, **Connection Check**, **Event Selection**, **Column Mapping**, **Additional Settings**, and **Summary**. Click **Next** to move between pages. ### Step 2. Enter the connection details On the **Connections** page, enter the connection details of your SFTP server: - **Host:** the server's host name or IP address. - **Port:** the SFTP port, usually 22. - **Username:** the user Insider One signs in with. - **Password**, or **SSH Private Key** and **SSH Passphrase** (if the key has one). The connection always uses SFTP. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-M05AQBE8.png) ### Step 3. Configure the file settings On the **File Settings** page, choose where the files go and what they look like. - **Path:** the folder on your server, for example `/exports/insider`. The folder must exist. - **Format:** **CSV** or **JSONL**. - For CSV files: - **Has Headers:** writes a header row with your column names. On by default. - **Delimiter:** one character, for example `,` (default), `;`, `|`, or a tab. A double quote or a line break cannot be used. - **Quoting:** **Only where needed** quotes a value only when it requires it. The other option quotes every value. - **Add a byte order mark (BOM):** starts every file with the UTF-8 byte order mark. Turn it on if the files are opened in Excel and contain non-Latin characters. Off by default. - **Make the file safe for spreadsheets:** available for CSV files only. On by default. - **File name template:** how the files are named. See [File names](/docs/export-data-from-insider-one-to-your-sftp-server#file-names). - **Compression:** **No compression** or **gzip**. - **Write a completion file:** after the last file of each export, writes a small JSON file that lists every delivered file. On by default. See [Completion file](/docs/export-data-from-insider-one-to-your-sftp-server#completion-file). - **Encrypt files with PGP:** encrypts every file with your PGP public key. Paste the ASCII-armored public key block, which starts with `-----BEGIN PGP PUBLIC KEY BLOCK-----`. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-CE5QV1YN.png) ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-THF0R326.png) ### Step 4. Check the connection The **Connection Check** page tests your server and your encryption key before you go on. Nothing is delivered yet. **The server.** Insider One connects to your server, writes a small hidden test file to your folder, renames it, and deletes it. When everything works, you see: - `✅ Connected. Insider One can deliver files to the folder "<folder>".` - The fingerprint of your server's host key, and an **Accepted server key** list with that key already selected. Insider One checks this key before every delivery. If your server later presents a different key, deliveries stop until you open this page again and select the new key in **Accepted server key**. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-JI0ZDUOQ.png) When something fails, the page says what did not work and what to do, and you cannot go to the next page. | What did not work | What to check | | --- | --- | | Wrong user name, password, or SSH key | The **Connections** page | | The server does not answer or refuses the connection | The host and port, and Insider One's IP addresses on your allowlist | | The folder does not exist | **Path** on the **File Settings** page | | No write permission on the folder | The permissions of the SFTP user, or choose another folder | | Renaming or removing files is not allowed, or not supported | The permissions of the SFTP user, or the server settings | | The connection is not SFTP | The **Connections** page | | The check did not finish in time | The host, the port, and the allowlist | If a rename or removal fails, a small test file can be left in the folder. It is safe to delete. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-Y5TDP9CA.png) **The encryption key.** When encryption is on, the page reads your key and shows whose key it is and when it expires, for example: `✅ Files will be encrypted for: <key owner>, key …<last 16 characters of the fingerprint>, no expiry date.` For a key that expires, the line ends with `expires on <YYYY-MM-DD>` and a reminder that deliveries stop on that day until the key is extended or replaced. The page stops you if the key is missing, cannot be read, is a private key, holds more than one key, has expired, was revoked, or cannot encrypt. When encryption is off, the page shows `Encryption is off: files are delivered without PGP encryption.` ### Step 5. Select the events On the **Event Selection** page, select the events to export. Each row is one event. Add a row for every event you need. Only events that exist in your account can be selected. If you reconfigure the export later and a saved event no longer exists in your account, its row shows empty. Select another event or remove the row to continue. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-HMGQCLIY.png) ### Step 6. Map the columns On the **Column Mapping** page, define the columns of your file. Each row is one column, with its **Column name in the file** and the field it is filled from (**Source**). The order of the rows is the order of the columns. - The **Source** list offers **Insider ID**, **Event Name**, and **Event Time**, then your identifiers, your attributes, and the parameters of the events you selected. - When you open the page for the first time, it has three rows: Insider ID (`insider_id`), Event Name (`event_name`), and Event Time (`timestamp`). A field is in the file only if it has a row, so you can remove any of these. - Each column name and each field can be used once. - A file can hold up to 200 attributes. If you change the selected events later, a row whose field is no longer offered (for example, a parameter of an event you removed) shows an empty **Source**. Choose another field for it or remove the row to continue. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-JIVI3CD6.png) ### Step 7. Set the schedule and value formats On the **Additional Settings** page, set when exports run and how values are written. - **Export every:** how often an export runs: every 1, 2, 4, 6, 12, or 24 hours (for example, **Every 24 hours**). Each export covers the events of one period. The first files arrive one period after you activate the export. - **Date format in the file:** how dates and the event time are written: as Insider One stores them (default), ISO 8601 (for example, `2026-01-31T13:45:00+03:00`), Unix time in seconds, Unix time in milliseconds, or a custom pattern built from `YYYY`, `MM`, `DD`, `HH`, `mm`, and `ss` (for example, `YYYY-MM-DD HH:mm:ss`). - **Time zone:** available for ISO 8601 and custom patterns. UTC by default. - **Yes/no format:** `true`/`false` (default), `1`/`0`, `yes`/`no`, or your own words. - **List format:** values separated by `,` (default), `;`, or `|`, or a JSON array. A format option appears only when your file has a column of that kind. > [!NOTE] > The schedule and the dates in file names are always in UTC. The time zone setting changes only how date values inside the file are written. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-L1FTK4IQ.png) ### Step 8. Review the summary and finish The **Summary** page checks all your settings. When they are valid, it shows `✅ Your export settings are valid.` and a summary of your export: an example file name, the encoding, the events, the numbered columns, the value formats, and the schedule. It also reminds you that: - A large export arrives in several files whose names differ only by the part number. - When files are encrypted, they are encrypted with your PGP key. - A completion file follows the last file, unless you switched it off. - Event names are written the way Insider One stores them. If a setting cannot produce an export, the page shows `❌ The following error has been found.` with a list of problems. Each problem names the page to fix it on. Go back to that page, fix it, and return to **Summary**. Click **Finish** to save and activate the export. It goes straight to **Running**, so you do not need a separate activation step. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-YWV50EJU.png) ## File names The **File name template** builds the name of every file from these parts: | Token | Becomes | | --- | --- | | {partner} | Your Insider One account name | | {start:FORMAT} | The start of the export period, in UTC | | {end:FORMAT} | The end of the export period, in UTC | | {seq} | The part number, from 001 | | {ext} | The file extension, set by format, compression, and encryption | | {job} | The export's ID | - `FORMAT` is a run of `YYYY`, `MM`, `DD`, `HH`, `mm`, `ss`, or `X` for Unix seconds, with nothing between them. To put separators between date parts, use several tokens: `{start:YYYY}-{start:MM}-{start:DD}`. - `{seq}` is required, exactly once. - `{ext}` is `csv`, `csv.gz`, `csv.pgp`, or `csv.gz.pgp` (and the same for `jsonl`). - A template cannot contain `/`, `\`, `..`, or an unknown token. The default template is: ```plaintext {partner}_events_{start:YYYYMMDDHHmmss}_{end:YYYYMMDDHHmmss}_{seq}.{ext} ``` For example: `acme_events_20261005100000_20261005110000_001.csv.gz` > [!NOTE] > Keep a date of the export period (`{start:…}` or `{end:…}`) in your template. Insider One never overwrites a file that is already in the folder. Without a date, every export gets the same names, and the next delivery stops until the earlier files are moved or deleted. ## File format - **Encoding:** UTF-8 with `LF` line ends. A CSV file starts with a byte order mark only when **Add a byte order mark (BOM)** is on. - **Parts:** a large export is split into several files of up to about 1 GB each. Every part is complete on its own: it has the header row (when headers are on), and with gzip it is its own gzip file that opens without the other parts. - **Compression and encryption:** with both on, rows are compressed first and then encrypted, so decrypting a `.csv.gz.pgp` file gives back the `.csv.gz` file. Each part is a binary OpenPGP message encrypted to your public key. - **Empty periods:** when no event happened in a period, you still receive one part (`001`) with only the header row, and a completion file that says zero rows. This way you can tell "no events" from "no export". - **No half-written files:** a file appears under its final name only when it is complete. While it is being written, it has a hidden temporary name that starts with `.insider-export-` and ends with `.tmp`. Ignore these files in your load jobs. ## Completion file When **Write a completion file** is on, Insider One writes a JSON file after the last part of each export. Its name is the file name template with `manifest` in place of the part number and `json` as the extension, for example `acme_events_20261005100000_20261005110000_manifest.json`. It lists every delivered part with its name, row count, size in bytes, and SHA-256 checksum, along with the columns, the format, the compression, the encryption, and the totals. It is never compressed or encrypted, and it contains no customer data. Start your load job when the completion file arrives. At that point, every part of the export is in the folder. ```json {  "version": 1,  "partner": "acme",  "periodStart": "2026-10-05T10:00:00Z",  "periodEnd": "2026-10-05T11:00:00Z",  "format": "csv",  "compression": "gzip",  "encryption": "none",  "columns": ["insider_id", "email", "event_name", "timestamp", "product_id"],  "parts": [    { "name": "acme_events_20261005100000_20261005110000_001.csv.gz", "rows": 1250000, "bytes": 412300112, "sha256": "…" }  ],  "totalRows": 1250000,  "totalBytes": 412300112,  "completedAt": "2026-10-05T11:20:31Z" } ``` ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-FQ46TSLG.png) ## Manage your export Navigate to **InOne** > **Components** > **Integrations** > **External Integrations** > **Integrated Platforms** to find your export. - **Edit the settings:** click the edit (pencil) icon of the row, then **Reconfigure**. The wizard opens with your saved settings. Changes apply to the next export. - **Pause or resume:** from the row menu, select **Update status as** and choose the status. While the export is paused, no files are delivered. - **Delete the export:** from the row menu, select **Delete Integration**. Deleting the export stops it and frees the export slot shared with Snowflake and Databricks. - **Your server's host key changed:** open **Reconfigure**, go to the **Connection Check** page, and select the new key in **Accepted server key**. Until then, deliveries stop to protect your data. - **Your PGP key expires or is replaced:** paste the new public key on the **File Settings** page and pass **Connection Check** again. Insider One checks the key before every file, and never sends an unencrypted file in place of an encrypted one. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-7K6IBI4M.png) ## If files do not arrive When a delivery cannot finish, it stops. The files already delivered for that export stay in the folder, the file being written is removed, and no completion file is written. The most common causes and what to do: | Cause | What to do | | --- | --- | | Insider One cannot sign in | Check the user name and the password or SSH key on the **Connections** page. | | Your server presents a different host key | Open **Connection Check** and select the new key in **Accepted server key**. | | Writing, renaming, or deleting is refused | Give the SFTP user write, rename, and delete permissions on the folder. | | The folder does not exist | Create the folder, or change **Path** on **File Settings**. | | A file with the same name is already in the folder | Move or delete the earlier file, and add a date token to your file name template. | | The server does not rename files | Enable file renaming on the server for the SFTP user. | | The PGP key cannot be used (expired, revoked, or replaced) | Paste a valid public key on **File Settings**. | | The settings cannot produce an export | Open **Reconfigure**. The **Summary** page lists each problem and the page to fix it on. | | The server cannot be reached | Check that the server is up and that Insider One's IP addresses are on your allowlist. Insider One retries a dropped connection automatically. | ## Limitations - Exports go to SFTP servers only. Plain FTP and FTPS are not supported for exports. - Insider One connects to your server. It does not host an SFTP server for you to pull from. - Your account can have one SFTP export, shared with the Snowflake and Databricks destinations. - Exports contain events with the identifiers and attributes of the users behind them. Segment member lists are not exported. - A file can hold up to 200 attributes. - The schedule runs in UTC, every 1, 2, 4, 6, 12, or 24 hours. - Folders are not created. The folder in **Path** must exist. - Files are never overwritten. A name that is already taken stops the delivery. - Very rarely, after an interrupted delivery is sent again, a row can appear in two files of the same export. ## FAQ ### Can I export to an FTP or FTPS server? No. The export connects over SFTP only. To import files from FTP, FTPS, or SFTP, see [Import Data from FTP/SFTP to InOne](/v1/docs/import-data-from-ftp-and-sftp-to-inone). ### When does the first file arrive? One schedule period after you activate the export. With a 6-hour schedule, the first export arrives about six hours after activation. ### Why did I receive a file with only a header row? No selected event happened in that period. You receive the empty file and a completion file with zero rows so that you can tell "no events" from "no export". ### Can I choose the time zone of the schedule? No. The schedule and the dates in file names are in UTC. You can choose a time zone for the date values inside the file (ISO 8601 and custom formats). ### What do I need to decrypt the files? The private key that belongs to the public key you entered. Each part decrypts on its own with standard tools such as `gpg --decrypt`. ### Can I export the same data to two SFTP servers? No. Your account can have one SFTP export. ### Why is the Destination option of the FTP card disabled? Your account already has an SFTP export, a Snowflake destination, or a Databricks destination. They share one slot. Hover over the option to read the limit message. For example, when a Databricks destination holds the slot, the tooltip reads: "You've reached the Destination limit of 1 in total for FTP, Snowflake, and Databricks integrations. You can delete your existing Databricks Destination integration to add a new one." To free the slot, delete the existing integration from the row menu with **Delete Integration**. ## Related - [Insider One IP Allowlist for Destinations](/insider-one-ip-allowlist-for-destinations.md) - [Export Data to Snowflake from Insider One](/export-data-to-snowflake-from-insider-one.md) - [Databricks](/external-platform-integrations-databricks.md) - [Export Data from Insider One to Azure Blob Storage](/export-data-from-insider-one-to-azure-blob-storage.md) - [External Platform Integrations](/external-platform-integrations.md) - [Import Data from FTP/SFTP to Insider One](/import-data-from-ftp-and-sftp-to-insider-one.md)