CRM Sync
Push contacts and/or companies directly into your connected CRM. LoneScale creates or updates the records asynchronously, applying the team-level integration field mappings already configured in LoneScale (create/update fields and unicity criteria). No workflow is involved.
Record keys must match the LoneScale field keys referenced by your configured mappings (for example lonescale_first_name, lonescale_company_domain, or any custom key you mapped). Set account_crm_id on a record to target an existing CRM company by id instead of matching by unicity criteria.
Poll GET /trigger/crm-sync/{id} with the returned id, or pass a webhook_url to be called once with the run summary when every record has been processed.
Authorizations
Provide your API key in the x-api-key header.
Body
Target CRM. Required only when more than one connected CRM has mapping settings.
hubspot, salesforce, pipedrive, sellsy Which team-level settings record to sync with when several exist (settings are stored per use-case: contact_sourcing, job_changes, ...). Defaults to the contact_sourcing record, or the only existing record.
Contacts to create/update (company fields may be embedded on each contact).
100Companies to create/update, without contacts.
100Called once with the run summary when every record has been processed.
Reuse the same key to make client retries return the existing run instead of double-writing.

