SFTP upload for CSV files

Bulk-upload audience and personalization data from CSV files to your Airship project over SFTP.

View as Markdown

What you can upload

SFTP upload supports the following tasks:

All uploaded files are encrypted in transit and at rest.

Generate an SSH key pair

Airship’s SFTP implementation uses SSH key pairs for authentication: a private key for your client and a public key for Airship.

First, generate your key pair:

  1. Open a terminal. On Windows, use PowerShell or Command Prompt.
  2. At the command line, enter ssh-keygen -t rsa. You can set other options, but the key type must be set to RSA (-t rsa).
  3. Enter the directory and file name for your new keys, without an extension. For example: /Users/your_username/Documents/rsa_keys/<filename>.
  4. (Optional) Set a passphrase and confirm.

The output of the process generates two files:

  • <filename> contains your private key.
  • <filename>.pub contains your public key.

Copy the contents of your .pub file. You’ll paste it when adding the key to Airship.

Add your public key to Airship

Add your public key to Airship so it can authenticate your SFTP transfers:

  1. Next to your project name, select the dropdown menu (), then Settings.
  2. Under Project settings, select SFTP.
  3. Select Add key.
  4. For Purpose, select the type of transfers you intend to make using the key:
  5. For Name, enter a value that helps you identify the key in the dashboard.
  6. For Public key, paste the contents of the <filename>.pub file you saved in the previous step.
  7. Select Save key.
Note

Repeat this process for each additional purpose. You can reuse the same key pair, but each purpose needs its own key entry.

After saving, select the view icon () for a key and copy the values you need to configure SSH or an SFTP client:

  • For SFTP clients, copy the username, address, and port values.
  • For SSH-based connections, copy the SSH command line value. It combines the username, address, and port into one string.

For all SFTP connections, the port is 5222, and the address is sftp.airship.com, or sftp.airship.eu for EU customers.

Configure a connection and transfer files

Set up SFTP transfer at the command line or with an SFTP client using the values copied from the Airship dashboard and your private key. Many CRM platforms natively support SFTP.

Once your connection is established, transfer your CSV files to Airship.

Verify transfer

After transfer, find each upload type at the following dashboard locations:

Upload typeDashboard path
AttributesGo to Audience, then Attributes, then Upload History.
Named user associationGo to Audience, then Attributes, then Upload History.
Uploaded listsGo to Audience, then Lists, then Uploaded.
CouponsNext to your project name, select the dropdown menu (), then Settings. Under Project settings, select Coupons.