Skip to main content
POST
cURL

Authorizations

x-api-key
string
header
required

Provide your API key in the x-api-key header.

Body

application/json

Flat form: provide email, linkedin_url, or a name (first_name/last_name) together with company_domain or company_name; a name is never searched unconstrained. Records form: contacts and/or companies (the crm-sync records), answered per record.

contacts
object[]

Contact records in the crm-sync vocabulary (main_email, lonescale_linkedin_url, lonescale_first_name / lonescale_last_name, lonescale_company_domain / lonescale_company_name; aliases accepted). Each one is searched like the flat form and answered in contacts[i]. At most 20 records (contacts + companies) per request.

Maximum array length: 20
companies
object[]

Company records: lonescale_company_domain, lonescale_company_name, lonescale_company_linkedin_url (aliases accepted), or account_crm_id to read one by id. Answered in companies[i]. Other lonescale_company_* keys on the record feed your company unicity criteria.

Maximum array length: 20
settings_type
string

Pin the per-use-case settings record (api_sync, contact_sourcing, …) the search reads its LinkedIn property and unicity criteria from, same values as POST /trigger/crm-sync. Only the CRMs carrying that record are searched; 422 when none does.

email
string

Email to look up in the connected CRM(s).

linkedin_url
string

LinkedIn profile URL to look up. HubSpot/Salesforce only.

first_name
string

Used with last_name + a company when no email/LinkedIn is available. Matches are fuzzier and reported with a lower confidence.

last_name
string
company_domain
string

Constrains a name search to that company. Preferred over company_name (more precise).

company_name
string

Fallback company constraint when no domain is known. Yields confidence: low.

crm
enum<string>

Restrict the search to a single CRM instead of all connected ones.

Available options:
hubspot,
salesforce,
pipedrive,
sellsy

Response

CRM matches with owner

matches
object[]

Flat form only.

contacts
object[]

Records form only: one entry per contacts[i] of the request, in order.

companies
object[]

Records form only: one entry per companies[i] of the request, in order.

The CRM user linked to the API key holder (Settings > Members), per CRM. Records created by a CRM write-back (sync_to_crm, Chrome extension) are assigned to that user; null means not linked, so created records go to the connection's default owner. Pipedrive/Sellsy have no per-user link.

searched_crms
string[]

The connected CRMs actually queried.

default_crm
string | null

The CRM a crm-less sync would resolve to (same rules as POST /trigger/crm-sync). Null when ambiguous: ask the user which CRM to act on.

errors
object[]

Per-CRM lookup failures. Present only when a provider errored. IMPORTANT: an empty matches alongside errors is NOT a confirmed "no match" — do not treat it as "contact is new".

warnings
object[]

Lookups a CRM skipped (for example a LinkedIn URL with no LinkedIn property mapped): the other identifiers were searched, so a "no match" is weaker than it looks. Deduplicated across records.