CRM
Add or merge a CRM contact
Add a CRM contact or merge new details into an existing matching contact in the chosen workspace or event. Requires at least one reachable channel: email, phone, or socialHandles (instagram, x, or bluesky handle or profile URL). Matches existing contacts by email, phone plus name, or normalized social handle without overwriting saved fields, sending messages, or enabling email marketing opt-in. Send an Idempotency-Key header.
Method
POST
Path
/v1/crm/contacts
Required scope
crm:writeRequest
curl -X POST "https://api.endurancehq.app/v1/crm/contacts" \
-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 the contact to.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"firstName": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "First name, or full company name when isCompany is true."
},
"lastName": {
"description": "Last name for a person (empty when isCompany is true).",
"type": "string",
"maxLength": 120
},
"isCompany": {
"description": "Set true for a company or organization contact rather than a person.",
"type": "boolean"
},
"personName": {
"description": "Contact person name when isCompany is true.",
"anyOf": [
{
"type": "string",
"maxLength": 200
},
{
"type": "null"
}
]
},
"email": {
"description": "Email address. Optional when phone or socialHandles is provided.",
"type": "string",
"maxLength": 255
},
"phone": {
"description": "Phone number. Optional when email or socialHandles is provided.",
"anyOf": [
{
"type": "string",
"maxLength": 80
},
{
"type": "null"
}
]
},
"socialHandles": {
"description": "Instagram, X, or Bluesky handles or profile URLs. Satisfies reachability when email and phone are omitted.",
"type": "object",
"properties": {
"instagram": {
"description": "Instagram handle (@handle or handle) or profile URL. Pass null or empty string on update to remove.",
"anyOf": [
{
"type": "string",
"maxLength": 200
},
{
"type": "null"
}
]
},
"x": {
"description": "X (Twitter) handle (@handle or handle) or profile URL. Pass null or empty string on update to remove.",
"anyOf": [
{
"type": "string",
"maxLength": 200
},
{
"type": "null"
}
]
},
"bluesky": {
"description": "Bluesky handle (like name.bsky.social) or profile URL. Pass null or empty string on update to remove.",
"anyOf": [
{
"type": "string",
"maxLength": 200
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"company": {
"anyOf": [
{
"type": "string",
"maxLength": 200
},
{
"type": "null"
}
]
},
"jobTitle": {
"anyOf": [
{
"type": "string",
"maxLength": 200
},
{
"type": "null"
}
]
},
"city": {
"anyOf": [
{
"type": "string",
"maxLength": 120
},
{
"type": "null"
}
]
},
"state": {
"anyOf": [
{
"type": "string",
"maxLength": 80
},
{
"type": "null"
}
]
},
"tags": {
"maxItems": 50,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 80
}
},
"adminNotes": {
"anyOf": [
{
"type": "string",
"maxLength": 5000
},
{
"type": "null"
}
]
}
},
"required": [
"firstName"
],
"additionalProperties": false
}Response
Success status: 200
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"contact": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"organizationId": {
"type": [
"string",
"null"
]
},
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
},
"isCompany": {
"type": "boolean"
},
"personName": {
"type": [
"string",
"null"
]
},
"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"
]
},
"jobTitle": {
"type": [
"string",
"null"
]
},
"city": {
"type": [
"string",
"null"
]
},
"state": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"eventIds": {
"type": "array",
"items": {
"type": "string"
}
},
"href": {
"type": "string"
}
},
"required": [
"id",
"organizationId",
"firstName",
"lastName",
"isCompany",
"personName",
"email",
"phone",
"socialHandles",
"company",
"jobTitle",
"city",
"state",
"status",
"tags",
"eventIds",
"href"
],
"additionalProperties": false
},
"outcome": {
"type": "string",
"enum": [
"created",
"updated"
]
}
},
"required": [
"contact",
"outcome"
],
"additionalProperties": false
}
},
"required": [
"data"
],
"additionalProperties": false
}Other surfaces
MCP tool: ehq_crm_contacts_upsert