CRM
Preview or import a list of CRM contacts
Preview (dryRun: true, default) or import (dryRun: false) up to 500 contact rows into an authorized CRM workspace or event. Recognizes name, email, phone, Instagram, X/Twitter, Bluesky, generic social URL, company, job title, city, state, and tags columns, including handle-only contacts without an email or phone. Creates new contacts or merges into matching ones by email, phone plus name, or normalized social handle. Preview before importing; never sends messages or enables email opt-in unless explicitly marked subscribed in the rows. Send an Idempotency-Key header.
Method
POST
Path
/v1/crm/contacts/import
Required scope
crm:writeRequest
curl -X POST "https://api.endurancehq.app/v1/crm/contacts/import" \
-H "Authorization: Bearer $EHQ_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"JSON body schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"organizationId": {
"description": "CRM workspace owner: use platform for Endurance HQ's own CRM (platform admins only), or an authorized organization ID. Omit for personal CRM unless eventId is given.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"eventId": {
"description": "Optional event ID to attach imported contacts to.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"fileName": {
"description": "Optional source label or filename such as athletes.csv.",
"type": "string",
"maxLength": 255
},
"dryRun": {
"default": true,
"description": "When true (default), previews parsed contacts and skipped counts without writing. Pass false after review to save.",
"type": "boolean"
},
"preserveExisting": {
"default": false,
"description": "When true, fills blank fields on matching contacts without overwriting saved values.",
"type": "boolean"
},
"rows": {
"minItems": 1,
"maxItems": 500,
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string",
"maxLength": 120
},
"additionalProperties": {
"anyOf": [
{
"type": "string",
"maxLength": 1000
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
}
]
}
},
"description": "Contact rows with column keys such as name, first name, last name, email, phone, instagram, x, twitter, bluesky, social, company, job title, city, state, and tags. Accepts handles or full profile URLs."
}
},
"required": [
"dryRun",
"preserveExisting",
"rows"
],
"additionalProperties": false
}Response
Success status: 200
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"dryRun": {
"type": "boolean"
},
"fetched": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"importable": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"imported": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"failed": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"skippedMissingChannel": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"errors": {
"type": "array",
"items": {
"type": "object",
"properties": {
"identity": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"identity",
"message"
],
"additionalProperties": false
}
},
"preview": {
"type": "array",
"items": {
"type": "object",
"properties": {
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
},
"email": {
"type": "string"
},
"phone": {
"type": [
"string",
"null"
]
},
"socialHandles": {
"type": "object",
"properties": {
"instagram": {
"type": "string"
},
"x": {
"type": "string"
},
"bluesky": {
"type": "string"
}
},
"additionalProperties": false
},
"company": {
"type": [
"string",
"null"
]
}
},
"required": [
"firstName",
"lastName",
"email",
"phone",
"socialHandles",
"company"
],
"additionalProperties": false
}
}
},
"required": [
"dryRun",
"fetched",
"importable",
"imported",
"failed",
"skippedMissingChannel",
"errors",
"preview"
],
"additionalProperties": false
}
},
"required": [
"data"
],
"additionalProperties": false
}Other surfaces
MCP tool: ehq_crm_contacts_import