Search & connect and Create in CRM now available via API and MCP
You can now trigger the same CRM sync actions from the API and through MCP tools that were already available in the Contacts and Companies grids: Search & connect (find each record in your CRM and link it, never creates anything) and Create in CRM (link if found, otherwise create the record).
New endpoints:
POST /api/contacts/crm/search-and-connect,POST /api/companies/crm/search-and-connect,POST /api/contacts/crm/create,POST /api/companies/crm/create. UseasLead: trueon contacts to create Salesforce Leads.Select records with a list of ids or emails (
idsOrEmails), ids or domains (idsOrDomains), or a whole list (static, CRM, or filter list). Up to 10,000 records per call.The call returns an immediate summary: how many were already linked, queued to search or create, not searchable (missing email, domain, or LinkedIn URL), already in progress, or not matching any record in lemlist.
Results land on each record a little later. The
crmSyncblock on contacts and companies now reflectssearchingandnotFoundAtstatuses, and thecrmSyncStatusfilter acceptssearchingandnot_found. The contacts list (GET /contacts) now also returns thecrmSyncblock, matching companies.Two new MCP tools,
crm_search_and_connectandcreate_in_crm, let lemAgent run these actions. The agent asks for confirmation before launching, explains that the work runs in the background, and can report CRM status when asked.Create in CRM is limited to team admins, and on Salesforce to the objects your connection grants (Contact, Account, Lead).
Works with HubSpot, Salesforce, and Pipedrive, plus Attio and Zoho for teams in their beta.
On Salesforce, the in-app Create in CRM entry now follows the object it creates: it shows on contacts when the connection grants Contact, and on companies when it grants Account.
These actions are asynchronous: the response tells you what was queued, not the final CRM outcome. A running search can't be cancelled, but you can simply launch the action again.