Contacts
Create contact
Creates a new Contact in the caller's organization, normalizing phone numbers and emails and assigning the contact to the requested pipeline + stage (defaulting to the org's Contact pipeline and its first stage). Requires at least one phone number or email. A phone number (primary or in conflictingPhoneNumbers) or a secondary email that is not in the stored format after normalization is rejected with 400 INVALID_CONTACT_METHOD and nothing is written; a malformed primary email fails the request contract as 400 VALIDATION_ERROR. A phone or email that another contact in the organization already holds does not fail the request: the contact is still created, the value is parked in conflictingPhoneNumbers / conflictingEmails, the pair is queued for dedup review, and data.warnings carries one CONTACT_METHOD_QUARANTINED entry per parked value. A body carrying commandIdempotencyKey is validated the same way and resolved through the same organization merge policy, so it returns the same outcome as the same body without a key. Emits the contact_created socket event and logs a manual event.
Authorization
bearerAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
At least one of phoneNumber or email is required; all other fields are optional.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/contact" \ -H "Content-Type: application/json" \ -d '{ "firstName": "Jane", "lastName": "Doe", "phoneNumber": [ { "value": "+14165550100", "isPrimary": true } ], "email": "jane.doe@example.com", "status": "New Lead", "pipelineId": "64f0a1b2c3d4e5f6a7b8c9d1" }'{ "success": true, "data": { "contact": { "_id": "64f0a1b2c3d4e5f6a7b8c9d0", "firstName": "Jane", "lastName": "Doe", "status": "New", "email": [ { "value": "jane@example.com", "isPrimary": true } ], "phoneNumber": [], "conflictingPhoneNumbers": [ "+15879207825" ], "channelTypes": [ "email" ] }, "message": "Contact added successfully", "outcome": "sent_to_review", "dedupApplied": true, "reviewCandidates": [ { "contactId": "6a4fe7db96a0ad3cd583bb11", "firstName": "John", "lastName": "Doe", "score": 55 } ], "warnings": [ { "code": "CONTACT_METHOD_QUARANTINED", "message": "The phone number +15879207825 is already linked to John Doe. It was saved as a conflicting phone number on this contact and queued for dedup review. To claim it, resend it on an update with a verifiedAt timestamp.", "meta": { "field": "phoneNumber", "value": "+15879207825", "conflictingContactId": "6a4fe7db96a0ad3cd583bb11", "conflictingContactName": "John Doe" } } ] }}