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. Examplecontacts.csv:
Python import script
This script reads the CSV and sends batches of 100 to the API.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.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: