Read CRM sync logs via API and MCP
You can now read CRM sync logs outside the app, through a new GET /api/v2/crm/logs endpoint. It's also reachable from the lemlist MCP (via call_api) and the lemlist CLI, so you or your agent can ask "what happened to this contact in the CRM?" without opening lemlist.
Query a single record with
contactIdorcompanyIdto get its full sync history across every connected CRM, newest first, with no date limit.Query without an ID to get the team's logs with its connected CRM, for up to the last 31 days (
from/toto pick a period).Each log includes the CRM, sync direction, action, category (contact, company, activity, task, call, association, deal, note…), status, the contact or company, the CRM record ID, updated fields, dates, and on failure the error code, HTTP status and the CRM's error message.
Filter by state, category, method, or date range. Results are paginated (100 per page max), returned as
{ data, hasMore }.Up to 5,000 logs per series of calls; beyond that, call again with
toset to the date of the last log received.
This returns the same rows you see in Settings > Integrations > CRM > Logs and in a contact or company's Activities tab. A company's history doesn't include its contacts' syncs — query the contact directly to see why it didn't reach the CRM. Logs for deleted or merged records aren't returned. This is read-only and available on Email Pro plan and above; nothing changes in the app itself.