SFTP Integration Guide
CorporateGift can read your employee list from your SFTP server and use it to send birthday, work anniversary and onboarding gifts automatically. It's a good fit if your HR system can export a CSV file to an SFTP server on a schedule.
You provide two things:
- an SFTP server that CorporateGift can log in to, either your own or one we provide
- one CSV file of your employees, kept up to date by a scheduled export from your HR system
We only read the file. We never change, move or delete anything on your server, and we store your login details encrypted.
Setup has four parts: prepare the file, put it on your server, connect it in CorporateGift, and check the results. A checklist at the end covers each step.
Prepare your employee file
Your file is a CSV with a header row and one row per employee. Email, first name and last name are required. Add other columns for the gifts you plan to send.
|
Column |
Needed for |
Example |
|
|
Every employee |
ana.ruiz@acme.com |
|
First name |
Every employee |
Ana |
|
Last name |
Every employee |
Ruiz |
|
Date of birth |
Birthday gifts. Day and month are enough |
14/02 |
|
Start date |
Work anniversary and onboarding gifts |
2021-06-01 |
|
street, apt, city, region, postcode, telephone, country |
Physical gifts shipped to home addresses. Country is treated as US if the column is missing |
100 Congress Ave |
|
Any other column |
Choosing who gets gifts, such as Department or Office |
Sales |
email,first_name,last_name,dob,start_date,department,office,street,city,region,postcode,country
ana.ruiz@acme.com,Ana,Ruiz,14/02,2021-06-01,Sales,Austin,100 Congress Ave,Austin,TX,78701,US
ben.oduya@acme.com,Ben,Oduya,03/11,2024-12-09,Engineering,Remote,,,,,US
Dates
Use the same format on every row: one format for start dates and one for birthdays. You'll enter both when you connect.
|
Your dates look like |
Format to enter |
|---|---|
|
2024-03-18 |
|
|
03/18/2024 |
|
|
18/03/2024 |
|
|
25/12 (birthday) |
|
|
12/25 (birthday) |
|
|
25/12/1990 (birthday with year) |
|
A date that doesn't match its format may be read as the wrong day. For example, 03/04 could be read as April 3 instead of March 4.
Other settings
- Delimiter. Columns are separated by commas by default. Semicolons or pipes also work if you enter them when you connect.
- Encoding. Save the file as UTF-8, so accented names come through correctly.
- Encryption. We can accept PGP-encrypted files. Ask your CorporateGift account manager before you connect. They'll send you our public key and turn on decryption for your account.
Where to put the file
Put one file in one folder on the SFTP server, and have your HR export overwrite it each time.
- Use the same name every time. We always read the file name you give us, such as
employees.csv. Files with dates in their names, likeemployees_2026-12-04.csv, won't be picked up. - Include everyone every time. Each file replaces the one before it. Anyone left out of the file stops getting automated gifts after the next read.
- Leave the file where it is. We don't move, rename or delete it, so your export can overwrite it whenever it runs.
- Note the folder path. You'll need the full path of the folder when you connect, as your SFTP client shows it after you log in. For example,
/uploads/hr.
To use a different file name later, open the SFTP integration's settings menu in CorporateGift and choose Edit configuration. You don't need to enter your login again.
Connect in CorporateGift
Upload your file before you connect. When you click Submit, we log in and read the file, and the connection is saved only if that works.
If you use your own server, ask your IT team to:
- create an SFTP login for CorporateGift, with a password or an SSH key, that can read the folder holding your file
- allow connections from CorporateGift's IP addresses, which your account manager can give you
No SFTP server? We can provide one. Ask your CorporateGift account manager, and we'll send you a host, user name and password on our server. Have your HR system export the file there, then follow the steps below with those details. Enter / as the Preferred directory name unless we tell you otherwise. Your IT team won't need to create a login or allow our IP addresses.
Steps
- In CorporateGift, open My Integrations, go to HR integrations, and click Add on the SFTP card.
- Under Select SFTP connection type, choose Connect to your HR SFTP server.
- Enter the Host, User name and Port#. Leave Port# blank to use port 22.
- Enter the Password. To use a key instead, turn on Use SSH private key instead of password, paste the SSH Private Key (PEM), and add the Key Passphrase if the key has one. Click Next.
- Fill in CSV Settings and Fields Mapping as shown below, then click Submit.
|
Field |
What to enter |
Example |
|---|---|---|
|
Preferred directory name |
The full path of the folder holding your file. Fill this in even though it's marked optional, because the connection fails without it |
|
|
CSV file name |
The file's name. |
|
|
CSV delimiter |
The character between columns |
|
|
Work start date - Format |
The format of your start dates |
|
|
Birthday - Date format |
The format of your birthdays. Leave blank for |
|
|
First name field name |
The header of your first name column |
|
|
Last name field name |
The header of your last name column |
|
|
Email address field name |
The header of your email column |
|
|
Date of birth field name |
The header of your birthday column. Leave blank if it's |
|
|
Start date field name |
The header of your start date column. Leave blank if it's |
|
|
Additional field for filtering |
Click + Add field for each column you want to filter gifts by |
|
Once you're connected, you can use those filter columns in an automation, for example to send birthday gifts to the Sales team only.
To change the file settings or field mapping later, choose Edit configuration from the integration's settings menu. To change the server or login, remove the integration and connect again.
When we read your file
We read your file at least once an hour, so changes reach your automations within about an hour. If your server is offline, we keep using the last file we read successfully for up to 30 days.

Your server doesn't need to be online all the time. We try every hour, and any successful read updates your employee list. If we can't read the file for 30 days in a row, automations stop until we can read it again.
Automations check for upcoming birthdays, anniversaries and start dates every hour. If you've chosen to create CorporateGift user accounts from the file, those are updated twice a day.
Troubleshooting
Most problems come from the login, the folder or file name, or the date format. If you're still stuck, contact your CorporateGift account manager.
|
What you see |
Likely cause |
What to do |
|---|---|---|
|
"Could not connect to the SFTP server. Please verify the host, port, and credentials." |
Wrong host, port, user name, password or key, or your firewall is blocking CorporateGift |
Test the login with an SFTP client. Check that CorporateGift's IP addresses are allowed |
|
"SFTP connection succeeded but failed to read the CSV file. Please verify the file path and format." |
The file isn't uploaded yet, the folder or file name doesn't match, Preferred directory name is blank, or an encrypted file couldn't be decrypted |
Upload the file, then check the folder path and file name |
|
"Too many connection attempts…" |
Several tries in a short time |
Wait a few minutes, then try again |
|
A gift goes out on the wrong day, or not at all |
The dates in the file don't match the formats you entered |
Compare a few rows with the formats in Edit configuration |
|
An employee isn't getting gifts |
They're missing from the latest file, their email is blank, a header doesn't match, or an automation filter leaves them out |
Check their row and the automation's filters |
|
Changes to the file aren't showing yet |
We read the file about once an hour |
Wait an hour. Saving Edit configuration also makes us read the file again |
Setup checklist
You're live once the connection is saved and a test automation lists the right people on the right dates.
- Export a CSV with a header row and one row per employee, including email, first name and last name.
- Add date of birth and start date columns for the gifts you plan to send, and note their date formats.
- Get an SFTP login. On your own server, ask your IT team for one and to allow CorporateGift's IP addresses. If you don't have a server, ask your account manager for a login on ours.
- If you need encrypted files, get our public key from your account manager.
- Upload the file and note the full folder path.
- Connect in My Integrations > HR integrations > SFTP.
- Create a test automation for a small group, and check that its upcoming sends show the right people and dates.
- Schedule your HR export to overwrite the same file regularly.