How to Use the Import cURL API to Import Data into Ripple
Site Admins and Site Managers can use Ripple’s Import cURL API to import data in bulk from a third-party system—such as a CTMS, EDC, or CRM—into the Registry or a specific study. This eliminates the need to log into Ripple to manually use the Import Tool and helps keep your data harmonized across platforms.
What You Need Before You Start
To successfully run the Import cURL command, you’ll need the following:
-
Ripple Site URL
-
Study ID (or
"global"
for the Registry) -
Update Option for handling existing participants
-
Name and location of the Excel file on your device
-
The appropriate Import cURL Command based on your operating system
Format Your Data First
Before using the Import API, your Excel file must:
-
Use the .xlsx format
-
Follow the correct column names and formats listed in the Ripple Data Dictionary
-
Contain only existing fields in Ripple (new variables cannot be created via import)
Import cURL Command
For Mac Users:
curl --location --request POST'RippleSiteURL/v1/import?importtype=StudyId&updateoption=UpdateOption' \
--header'Authorization:Basic AuthorizationKey'\
--header'Content-Type:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'\
--header'Connection:keep-alive'\
--header'Keep-Alive:timeout=360,max=1000'\
--data-binary'@LocationAndNameOfExcel.xlsx'
For Windows Users:
curl --location --request POST"RippleSiteURL/v1/import?importtype=StudyId&updateoption=UpdateOption"
--header"Authorization:Basic AuthorizationKey"
--header"Content-Type:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
--header"Connection:keep-alive"
--header"Keep-Alive:timeout=360,max=1000"
--data-binary"@LocationAndNameOfExcel.xlsx"
NOTE:
Windows Users: Replace all single quotes ('
) with double quotes ("
) and remove backslashes (\
) used for line breaks.Step-by-Step Instructions
-
Open your command line tool:
-
Mac: Open Terminal
-
Windows: Open Command Prompt
-
-
Paste in the Import cURL command.
-
Replace the placeholders:
Placeholder | Replace with |
---|---|
RippleSiteURL |
Your site’s Ripple URL (e.g., https://yourlab.ripplescience.com ) |
StudyId |
Study ID string (from study URL) or |
UpdateOption |
One of the options below |
AuthorizationKey |
Your Base64-encoded Ripple authorization key |
LocationAndNameOfExcel |
Full file path and name of your .xlsx file (e.g., /Users/janedoe/file.xlsx ) |
Update Options
Specify how Ripple should treat existing participants:
Action | What to Use in Command |
---|---|
Update All Information | all |
Do Not Update Contact Information | nocontact |
Do Not Update Any Existing Participants | noexisting |

Example Import cURL Command
You are importing custom variable data and event completion records into the Ancillary A study. All participants already exist, and you want to update all participant data.
curl --location --request POST 'https://successplayground.ripplescience.com/v1/import?importtype=9oS3TfDyFN5npePSA&updateoption=all'\
--header'Authorization:Basic ZXhhbXBsZXVzZXJAcmlwcGxlc2NpZW5jZS5jb206c3VwZXJzZWNyZXRwYXNzd29yZDEyMyEKCg=='\
--header'Content-Type:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'\
--header'Connection:keep-alive'\
--header'Keep-Alive:timeout=360, max=1000'\
--data-binary'@/Users/janedoe/Desktop/AncillaryA.xlsx'
REMINDERS:
Make sure to:
- Choose the correct cURL format for your device
- Use the correct Site URL, Authorization Key, and Study ID
- Confirm that your Excel file matches Data Dictionary formatting