Skip to main content

One operation lemlist ran with the team's connected CRM for a contact or a company, as returned by GET /v2/crm/logs.

_id
string
required

Unique log identifier (csa_xxx)

crm
string
required

The CRM the operation ran against, e.g. hubspot, salesforce, pipedrive. A contact's or a company's history keeps the logs of a CRM the team has since left; the team history lists the connected CRM only.

direction
enum<string>
required

lemlist_to_crm for a write lemlist sent to the CRM, crm_to_lemlist for a change received from the CRM

Available options:
lemlist_to_crm,
crm_to_lemlist
method
string
required

Name of the operation, e.g. contact_update. direction tells a lemlist write from the CRM change it mirrors. Known values: activity_create, activity_import, association_from_company, association_from_contact, association_remove, association_update, call_create, call_update, company_create, company_delete, company_merge, company_owner_update, company_restore, company_update, contact_create, contact_delete, contact_merge, contact_owner_update, contact_restore, contact_update, custom_activity_create, deal_create, email_message_create, event_create, experience_update, lead_status_update, linkedin_message_create, note_create, note_import, note_update, sms_message_create, task_complete, task_create, task_delete, task_import, task_update, whatsapp_message_create. An operation lemlist has not named yet keeps its own identifier: filter with category rather than on this value.

label
string
required

Human-readable name of the operation, in English, e.g. Contact update. Equals method when the operation has no label.

state
enum<string>
required

pending: queued, not run yet. done: the CRM accepted it. error: the CRM refused it, see error. aborted: lemlist skipped it, error.code gives the reason.

Available options:
pending,
done,
error,
aborted
createdAt
string<date-time>

When lemlist queued the operation

doneAt
string<date-time>

When lemlist finished the operation. Present on done logs and on logs aborted by a user or by a campaign move; absent on pending and error logs, and on other aborts.

category
enum<string>

Kind of record the operation acted on. Absent when the operation has no category.

Available options:
contact,
company,
association,
activity,
email,
linkedin,
sms,
whatsapp,
call,
note,
task,
deal,
event
contactId
string

The contact the operation is about (ctc_xxx). Present on contact rows and on the rows of a contact-company association.

companyId
string

The company the operation is about (cpn_xxx). Present on company rows and on the rows of a contact-company association.

crmObjectId
string

ID of the record in the CRM

updatedFields
object

Fields sent to or received from the CRM, with their values

error
object

Present on error rows, and on aborted rows where it carries the reason.