Merge Contacts
Contacts
Merge Contacts
Merge two contacts into one. All data from the duplicate contact is moved to the primary contact, and the duplicate is deleted.
POST
Merge Contacts
Headers
Your API key for authentication.
Body Parameters
The ID of the contact that will remain after the merge. Data from the duplicate will be merged into this contact.
The ID of the contact to merge and delete. All associated data (calls, conversations, memory) will be transferred to the primary contact.
Response
The merged contact object.
Unique identifier for the merged contact (same as primary_contact_id).
Organization ID the contact belongs to.
Contact’s name (prefers primary, falls back to duplicate if primary is empty).
Merged metadata from both contacts (primary takes precedence for conflicting keys).
ISO timestamp when the contact was created.
ISO timestamp when the contact was last updated.
Error array (null on success).
Merge Behavior
When merging contacts:- Identifiers: All phone numbers, emails, and external IDs from the duplicate are added to the primary contact
- Metadata: Metadata objects are merged, with primary contact values taking precedence for conflicting keys
- Name: The primary contact’s name is kept, unless it’s empty (then the duplicate’s name is used)
- Calls: All calls associated with the duplicate are reassigned to the primary contact
- SMS Conversations: All SMS conversations are reassigned to the primary contact
- Contact Memory: Memory data is merged (facts, recent messages, summaries) for each persona/agent. If both contacts have memory for the same persona, the data is intelligently combined
Docs for agents: llms.txt