Skip to main content
This walkthrough reads a CSV of contacts, converts it to the format Supersonic expects, and imports them using records.bulk_create. The tool accepts up to 100 records per call.

Prerequisites

You need a Contacts object type in your workspace. If you don’t have one, create it first:

Prepare your CSV

Your CSV should have headers that match your field names. Example contacts.csv:

Python import script

This script reads the CSV and sends batches of 100 to the API.
Run it:

CLI version

If your data is already in a JSON file, you can use the CLI directly.
1

Convert CSV to JSON

Create a file called contacts.json:
2

Run the bulk create

3

Verify the import

records.bulk_create accepts a maximum of 100 records per call. For larger imports, split into batches as the Python script does.
Field names in your CSV must match the field names on your object type exactly, including capitalization. If your CSV has email but the field is Email, the data won’t map.

Handling duplicates

records.bulk_create does not deduplicate. If you run the import twice, you’ll get duplicate records. To avoid this, query existing records first: