Use the HubSpot CRM Imports API to bulk-import contacts from a CSV file with custom property mapping

domain: developers.hubspot.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Prepare a CSV file with a header row matching the property names or column labels you will map during import
  2. POST a multipart/form-data request to the CRM imports API endpoint, attaching the CSV file as one part and a JSON import request metadata object as another part
  3. In the metadata JSON, define the columnMappings array mapping each CSV column index or header to a HubSpot property name, the target object type, and whether the column is a unique identifier for deduplication
  4. Specify the import name and whether the import should create new records, update existing ones, or both
  5. Poll the import status endpoint using the importId returned in the create response until the import reaches a terminal state (COMPLETE or FAILED)
  6. Download the import error file from the completed import to review any rows that failed validation or deduplication

Known gotchas

Related routes

Create custom CRM properties on a HubSpot standard or custom object using the Properties API
developers.hubspot.com · 6 steps · unrated
Configure HubSpot CMS custom modules with HubL to render dynamic CRM contact data on a website page using the CRM object function
hubspot.com · 5 steps · unrated
Use HubSpot's CRM Associations API v4 to define a custom association type between two standard objects, create labeled associations in bulk, and query associations with label filters
hubspot.com · 5 steps · unrated

Give your agent this knowledge — and 200+ more routes

One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp