{
"message": "Invalid API Key",
"error": "Unauthorized",
"statusCode": 401
}
{
"message": "Provide email, linkedin_url, first_name + last_name, or a name part together with company_domain or company_name",
"error": "Unprocessable Entity",
"statusCode": 422
}
CRM Sync
CRM Search
Look up contacts and companies in your connected CRM(s) and surface the record owner. Two forms. Flat: one contact, with email, linkedin_url, or a name with a company; the answer is matches. Records: contacts and/or companies, the same free-form records as POST /trigger/crm-sync (lonescale_* keys, bare company_* and camelCase aliases, account_crm_id), at most 20 in all; each record is searched on its own and answered under its index in contacts[i] / companies[i], so you can pre-check the exact payload you are about to sync. Companies are matched, in order, by CRM id, by your company unicity criteria (of the settings_type record), by LinkedIn page, by domain, by exact name (matchedOn says which). Only connected CRMs are queried. Pipedrive and Sellsy search contacts by email and companies by name only. Each match carries owned_by_you, and caller_crm_links tells which CRM user the caller is linked to, so a client can say “already yours” vs “owned by X” and warn when a create would go to the default owner.
{
"message": "Invalid API Key",
"error": "Unauthorized",
"statusCode": 401
}
{
"message": "Provide email, linkedin_url, first_name + last_name, or a name part together with company_domain or company_name",
"error": "Unprocessable Entity",
"statusCode": 422
}
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.
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.
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.
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.
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.
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".
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.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"LoneScale API Doc","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/lonescale-5883e47c/WovNkkTIMlsr76Dy/logo/LoneScale-Logo-Preferred.png?fit=max\u0026auto=format\u0026n=WovNkkTIMlsr76Dy\u0026q=85\u0026s=f88739fcb1e0caffbf3f475cbb1af2ad","dark":"https://mintcdn.com/lonescale-5883e47c/-kZ_pqrQp3g0kjGD/logo/LoneScale-Logo-White.png?fit=max\u0026auto=format\u0026n=-kZ_pqrQp3g0kjGD\u0026q=85\u0026s=b67f1dbb75497277639848763ccfade6"},"favicon":"https://mintcdn.com/lonescale-5883e47c/IsnOuhnBDDXY9vur/svglogo.png?fit=max\u0026auto=format\u0026n=IsnOuhnBDDXY9vur\u0026q=85\u0026s=a65527d1f22c97e3b79ac7716f97447f","navbar":{"links":[{"href":"mailto:happy@lonescale.com","label":"Contact Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.lonescale.com"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/lonescale"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Documentation","icon":"book-open-cover","href":"https://docs.lonescale.com"},{"anchor":"Help Center","icon":"newspaper","href":"https://help-center.lonescale.com/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"lonescale-5883e47c","hasAudioNarration":false,"actualSubdomain":"lonescale-5883e47c","customDomains":["docs.lonescale.com"],"gitSource":{"type":"github","owner":"sanyann","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae8c2c70e678b1f73a1d030","clientVersion":"0.0.4088","searchFilterCounts":[{"language":"default","tag":"API Reference","count":33},{"language":"default","tag":"CLI","count":12},{"language":"default","tag":"Lists","count":7},{"language":"default","tag":"Today's accounts","count":7},{"language":"default","tag":"CRM Sync","count":6},{"language":"default","tag":"API Enrichment","count":6},{"language":"default","tag":"MCP","count":6},{"language":"default","tag":"Webhook Payload","count":3},{"language":"default","tag":"Getting Started","count":2},{"language":"default","tag":"Companies","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/endpoint/crm-search","slug":"/api-reference/endpoint/crm-search","pageMetadata":{"title":"CRM Search","openapi":"POST /crm/search","description":"Look up contacts and companies in your connected CRM(s) and surface the record owner. Two forms. **Flat**: one contact, with `email`, `linkedin_url`, or a name with a company; the answer is `matches`. **Records**: `contacts` and/or `companies`, the same free-form records as `POST /trigger/crm-sync` (`lonescale_*` keys, bare `company_*` and camelCase aliases, `account_crm_id`), at most 20 in all; each record is searched on its own and answered under its index in `contacts[i]` / `companies[i]`, so you can pre-check the exact payload you are about to sync. Companies are matched, in order, by CRM id, by your company unicity criteria (of the `settings_type` record), by LinkedIn page, by domain, by exact name (`matchedOn` says which). Only connected CRMs are queried. Pipedrive and Sellsy search contacts by email and companies by name only. Each match carries `owned_by_you`, and `caller_crm_links` tells which CRM user the caller is linked to, so a client can say \"already yours\" vs \"owned by X\" and warn when a create would go to the default owner.","href":"/api-reference/endpoint/crm-search"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n strong: \"strong\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Look up contacts and companies in your connected CRM(s) and surface the record owner. Two forms. \", _jsx(_components.strong, {\n children: \"Flat\"\n }), \": one contact, with \", _jsx(_components.code, {\n children: \"email\"\n }), \", \", _jsx(_components.code, {\n children: \"linkedin_url\"\n }), \", or a name with a company; the answer is \", _jsx(_components.code, {\n children: \"matches\"\n }), \". \", _jsx(_components.strong, {\n children: \"Records\"\n }), \": \", _jsx(_components.code, {\n children: \"contacts\"\n }), \" and/or \", _jsx(_components.code, {\n children: \"companies\"\n }), \", the same free-form records as \", _jsx(_components.code, {\n children: \"POST /trigger/crm-sync\"\n }), \" (\", _jsx(_components.code, {\n children: \"lonescale_*\"\n }), \" keys, bare \", _jsx(_components.code, {\n children: \"company_*\"\n }), \" and camelCase aliases, \", _jsx(_components.code, {\n children: \"account_crm_id\"\n }), \"), at most 20 in all; each record is searched on its own and answered under its index in \", _jsx(_components.code, {\n children: \"contacts[i]\"\n }), \" / \", _jsx(_components.code, {\n children: \"companies[i]\"\n }), \", so you can pre-check the exact payload you are about to sync. Companies are matched, in order, by CRM id, by your company unicity criteria (of the \", _jsx(_components.code, {\n children: \"settings_type\"\n }), \" record), by LinkedIn page, by domain, by exact name (\", _jsx(_components.code, {\n children: \"matchedOn\"\n }), \" says which). Only connected CRMs are queried. Pipedrive and Sellsy search contacts by email and companies by name only. Each match carries \", _jsx(_components.code, {\n children: \"owned_by_you\"\n }), \", and \", _jsx(_components.code, {\n children: \"caller_crm_links\"\n }), \" tells which CRM user the caller is linked to, so a client can say “already yours” vs “owned by X” and warn when a create would go to the default owner.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"CRM Search","openapi":"POST /crm/search","description":"Look up contacts and companies in your connected CRM(s) and surface the record owner. Two forms. **Flat**: one contact, with `email`, `linkedin_url`, or a name with a company; the answer is `matches`. **Records**: `contacts` and/or `companies`, the same free-form records as `POST /trigger/crm-sync` (`lonescale_*` keys, bare `company_*` and camelCase aliases, `account_crm_id`), at most 20 in all; each record is searched on its own and answered under its index in `contacts[i]` / `companies[i]`, so you can pre-check the exact payload you are about to sync. Companies are matched, in order, by CRM id, by your company unicity criteria (of the `settings_type` record), by LinkedIn page, by domain, by exact name (`matchedOn` says which). Only connected CRMs are queried. Pipedrive and Sellsy search contacts by email and companies by name only. Each match carries `owned_by_you`, and `caller_crm_links` tells which CRM user the caller is linked to, so a client can say \"already yours\" vs \"owned by X\" and warn when a create would go to the default owner.","href":"/api-reference/endpoint/crm-search"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Look up contacts and companies in your connected CRM(s) and surface the record owner. Two forms. **Flat**: one contact, with `email`, `linkedin_url`, or a name with a company; the answer is `matches`. **Records**: `contacts` and/or `companies`, the same free-form records as `POST /trigger/crm-sync` (`lonescale_*` keys, bare `company_*` and camelCase aliases, `account_crm_id`), at most 20 in all; each record is searched on its own and answered under its index in `contacts[i]` / `companies[i]`, so you can pre-check the exact payload you are about to sync. Companies are matched, in order, by CRM id, by your company unicity criteria (of the `settings_type` record), by LinkedIn page, by domain, by exact name (`matchedOn` says which). Only connected CRMs are queried. Pipedrive and Sellsy search contacts by email and companies by name only. Each match carries `owned_by_you`, and `caller_crm_links` tells which CRM user the caller is linked to, so a client can say \"already yours\" vs \"owned by X\" and warn when a create would go to the default owner.","requestBody":"8dac0829-3d77-48f0-8021-1c0cd09d9a1a","responses":{"200":"23651456-a15f-402a-bc60-b9b0671b1e98","401":"5957e618-c91a-4a39-8aa4-b8e07e7d68af","422":"d14135e5-a4f1-4a42-a5c7-068f13a80543"},"method":"post","type":"path","servers":["70167a7e-c866-4cf8-bba8-144111851d01"],"security":["3fdd0f0e-af82-4d8a-af9c-9a32e34a28d1"],"path":"/crm/search","baseUrlOptions":["https://public-api.lonescale.com"],"title":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"type":"object","description":"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.","properties":{"contacts":{"type":"array","maxItems":20,"items":{"type":"object","additionalProperties":true,"description":"Free-form record: keys must match the LoneScale field keys referenced by the configured mappings. See [Available Fields](/api-reference/crm-sync-fields) for the full list. The `lonescale_` / `main_` prefix is optional: `first_name`, `job_title`, `company_domain`, `email` and `phone` resolve like their prefixed form, and camelCase keys from enrich payloads (`firstName`, `jobTitle`, ...) are aliased too. A record whose keys match none of the mapped or unicity fields is failed, with the expected field keys in the error.","properties":{"account_crm_id":{"type":"string","description":"Optional CRM company id: targets that company directly instead of matching by unicity criteria.","uniqueKey":"contacts.items.[INDEX].account_crm_id","typeLabel":"string"},"contact_crm_id":{"type":"string","description":"Optional CRM contact id (e.g. the id returned by POST /crm/search): updates that exact contact instead of matching by unicity criteria.","uniqueKey":"contacts.items.[INDEX].contact_crm_id","typeLabel":"string"},"owner_id":{"type":"string","description":"Salesforce only. Optional User id (005…) that owns the created or updated Lead or Contact. Without it the CRM keeps its default owner on create and the current owner on update; a mapping row on OwnerId takes precedence.","uniqueKey":"contacts.items.[INDEX].owner_id","typeLabel":"string"}},"uniqueKey":"contacts.items.[INDEX]","typeLabel":"object"},"description":"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.","uniqueKey":"contacts","typeLabel":"object[]"},"companies":{"type":"array","maxItems":20,"items":{"type":"object","additionalProperties":true,"description":"Free-form record: keys must match the LoneScale field keys referenced by the configured mappings. See [Available Fields](/api-reference/crm-sync-fields) for the full list. The `lonescale_` / `main_` prefix is optional: `first_name`, `job_title`, `company_domain`, `email` and `phone` resolve like their prefixed form, and camelCase keys from enrich payloads (`firstName`, `jobTitle`, ...) are aliased too. A record whose keys match none of the mapped or unicity fields is failed, with the expected field keys in the error.","properties":{"account_crm_id":{"type":"string","description":"Optional CRM company id: targets that company directly instead of matching by unicity criteria.","uniqueKey":"companies.items.[INDEX].account_crm_id","typeLabel":"string"},"contact_crm_id":{"type":"string","description":"Optional CRM contact id (e.g. the id returned by POST /crm/search): updates that exact contact instead of matching by unicity criteria.","uniqueKey":"companies.items.[INDEX].contact_crm_id","typeLabel":"string"},"owner_id":{"type":"string","description":"Salesforce only. Optional User id (005…) that owns the created or updated Lead or Contact. Without it the CRM keeps its default owner on create and the current owner on update; a mapping row on OwnerId takes precedence.","uniqueKey":"companies.items.[INDEX].owner_id","typeLabel":"string"}},"uniqueKey":"companies.items.[INDEX]","typeLabel":"object"},"description":"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.","uniqueKey":"companies","typeLabel":"object[]"},"settings_type":{"type":"string","description":"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.","uniqueKey":"settings_type","typeLabel":"string"},"email":{"type":"string","description":"Email to look up in the connected CRM(s).","uniqueKey":"email","typeLabel":"string"},"linkedin_url":{"type":"string","description":"LinkedIn profile URL to look up. HubSpot/Salesforce only.","uniqueKey":"linkedin_url","typeLabel":"string"},"first_name":{"type":"string","description":"Used with `last_name` + a company when no email/LinkedIn is available. Matches are fuzzier and reported with a lower `confidence`.","uniqueKey":"first_name","typeLabel":"string"},"last_name":{"type":"string","uniqueKey":"last_name","typeLabel":"string"},"company_domain":{"type":"string","description":"Constrains a name search to that company. Preferred over `company_name` (more precise).","uniqueKey":"company_domain","typeLabel":"string"},"company_name":{"type":"string","description":"Fallback company constraint when no domain is known. Yields `confidence: low`.","uniqueKey":"company_name","typeLabel":"string"},"crm":{"type":"string","enum":["hubspot","salesforce","pipedrive","sellsy"],"description":"Restrict the search to a single CRM instead of all connected ones.","uniqueKey":"crm","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"contacts":[{"account_crm_id":"\u003cstring>","contact_crm_id":"\u003cstring>","owner_id":"\u003cstring>"}],"companies":[{"account_crm_id":"\u003cstring>","contact_crm_id":"\u003cstring>","owner_id":"\u003cstring>"}],"settings_type":"\u003cstring>","email":"\u003cstring>","linkedin_url":"\u003cstring>","first_name":"\u003cstring>","last_name":"\u003cstring>","company_domain":"\u003cstring>","company_name":"\u003cstring>"}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"23651456-a15f-402a-bc60-b9b0671b1e98":{"description":"CRM matches with owner","content":{"application/json":{"schema":{"type":"object","properties":{"matches":{"type":"array","description":"Flat form only.","items":{"type":"object","properties":{"crm":{"type":"string","enum":["hubspot","salesforce","pipedrive","sellsy"],"uniqueKey":"matches.items.[INDEX].crm","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"CRM record id","uniqueKey":"matches.items.[INDEX].id","typeLabel":"string"},"name":{"oneOf":[{"type":"string","uniqueKey":"matches.items.[INDEX].name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"matches.items.[INDEX].name.oneOf.1","typeLabel":"null"}],"uniqueKey":"matches.items.[INDEX].name","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","uniqueKey":"matches.items.[INDEX].email.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"matches.items.[INDEX].email.oneOf.1","typeLabel":"null"}],"uniqueKey":"matches.items.[INDEX].email","typeLabel":"string | null"},"phone":{"oneOf":[{"type":"string","description":"Phone already on the record (mobile first). HubSpot and Salesforce.","uniqueKey":"matches.items.[INDEX].phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Phone already on the record (mobile first). HubSpot and Salesforce.","uniqueKey":"matches.items.[INDEX].phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"matches.items.[INDEX].phone","typeLabel":"string | null"},"title":{"oneOf":[{"type":"string","uniqueKey":"matches.items.[INDEX].title.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"matches.items.[INDEX].title.oneOf.1","typeLabel":"null"}],"uniqueKey":"matches.items.[INDEX].title","typeLabel":"string | null"},"profileUrl":{"oneOf":[{"type":"string","description":"LinkedIn URL stored on the record","uniqueKey":"matches.items.[INDEX].profileUrl.oneOf.0","typeLabel":"string"},{"type":"null","description":"LinkedIn URL stored on the record","uniqueKey":"matches.items.[INDEX].profileUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"matches.items.[INDEX].profileUrl","typeLabel":"string | null"},"url":{"oneOf":[{"type":"string","description":"Link to the CRM record","uniqueKey":"matches.items.[INDEX].url.oneOf.0","typeLabel":"string"},{"type":"null","description":"Link to the CRM record","uniqueKey":"matches.items.[INDEX].url.oneOf.1","typeLabel":"null"}],"uniqueKey":"matches.items.[INDEX].url","typeLabel":"string | null"},"company":{"oneOf":[{"type":"string","uniqueKey":"matches.items.[INDEX].company.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"matches.items.[INDEX].company.oneOf.1","typeLabel":"null"}],"uniqueKey":"matches.items.[INDEX].company","typeLabel":"string | null"},"companyDomain":{"oneOf":[{"type":"string","uniqueKey":"matches.items.[INDEX].companyDomain.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"matches.items.[INDEX].companyDomain.oneOf.1","typeLabel":"null"}],"uniqueKey":"matches.items.[INDEX].companyDomain","typeLabel":"string | null"},"ownerId":{"oneOf":[{"type":"string","description":"CRM owner id","uniqueKey":"matches.items.[INDEX].ownerId.oneOf.0","typeLabel":"string"},{"type":"null","description":"CRM owner id","uniqueKey":"matches.items.[INDEX].ownerId.oneOf.1","typeLabel":"null"}],"uniqueKey":"matches.items.[INDEX].ownerId","typeLabel":"string | null"},"ownerName":{"oneOf":[{"type":"string","description":"CRM owner name (null for Sellsy)","uniqueKey":"matches.items.[INDEX].ownerName.oneOf.0","typeLabel":"string"},{"type":"null","description":"CRM owner name (null for Sellsy)","uniqueKey":"matches.items.[INDEX].ownerName.oneOf.1","typeLabel":"null"}],"uniqueKey":"matches.items.[INDEX].ownerName","typeLabel":"string | null"},"matchedEmail":{"oneOf":[{"type":"string","description":"The address that actually matched. HubSpot's contact search also matches secondary addresses, so the record's primary `email` can differ from the one you searched.","uniqueKey":"matches.items.[INDEX].matchedEmail.oneOf.0","typeLabel":"string"},{"type":"null","description":"The address that actually matched. HubSpot's contact search also matches secondary addresses, so the record's primary `email` can differ from the one you searched.","uniqueKey":"matches.items.[INDEX].matchedEmail.oneOf.1","typeLabel":"null"}],"uniqueKey":"matches.items.[INDEX].matchedEmail","typeLabel":"string | null"},"matchedOn":{"oneOf":[{"type":"string","enum":["primary_email","secondary_email","linkedin","unicity_criteria","name_company_id","name_company_name"],"description":"Which identifier produced the match. `unicity_criteria` means the team's own CRM unicity rules matched (the same rule crm-sync applies).","uniqueKey":"matches.items.[INDEX].matchedOn.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["primary_email","secondary_email","linkedin","unicity_criteria","name_company_id","name_company_name"],"description":"Which identifier produced the match. `unicity_criteria` means the team's own CRM unicity rules matched (the same rule crm-sync applies).","uniqueKey":"matches.items.[INDEX].matchedOn.oneOf.1","typeLabel":"null"}],"uniqueKey":"matches.items.[INDEX].matchedOn","typeLabel":"enum\u003cstring> | null"},"confidence":{"type":"string","enum":["high","medium","low"],"description":"How much to trust the match. Email / LinkedIn / unicity-criteria hits are `high`; a name constrained by a resolved company is `medium`; a name matched against a free-text company name is `low` (homonym risk) and should be verified before acting.","uniqueKey":"matches.items.[INDEX].confidence","typeLabel":"enum\u003cstring>"},"object":{"type":"string","enum":["contact","lead"],"description":"Salesforce only: `lead` when the team's mapping writes Leads.","uniqueKey":"matches.items.[INDEX].object","typeLabel":"enum\u003cstring>"},"owned_by_you":{"type":"boolean","description":"True when the record's owner is the CRM user linked to the API key holder (see `caller_crm_links`). Salesforce ids are compared on their 15-char prefix.","uniqueKey":"matches.items.[INDEX].owned_by_you","typeLabel":"boolean"}},"uniqueKey":"matches.items.[INDEX]","typeLabel":"object"},"uniqueKey":"matches","typeLabel":"object[]"},"contacts":{"type":"array","description":"Records form only: one entry per `contacts[i]` of the request, in order.","items":{"type":"object","description":"The answer for one record of the records form, under the record's position in the request.","properties":{"index":{"type":"integer","uniqueKey":"contacts.items.[INDEX].index","typeLabel":"integer"},"matches":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"crm":{"type":"string","enum":["hubspot","salesforce","pipedrive","sellsy"],"uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.crm","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"CRM record id","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.id","typeLabel":"string"},"name":{"oneOf":[{"type":"string","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.name","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.email.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.email.oneOf.1","typeLabel":"null"}],"uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.email","typeLabel":"string | null"},"phone":{"oneOf":[{"type":"string","description":"Phone already on the record (mobile first). HubSpot and Salesforce.","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Phone already on the record (mobile first). HubSpot and Salesforce.","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.phone","typeLabel":"string | null"},"title":{"oneOf":[{"type":"string","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.title.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.title.oneOf.1","typeLabel":"null"}],"uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.title","typeLabel":"string | null"},"profileUrl":{"oneOf":[{"type":"string","description":"LinkedIn URL stored on the record","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.profileUrl.oneOf.0","typeLabel":"string"},{"type":"null","description":"LinkedIn URL stored on the record","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.profileUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.profileUrl","typeLabel":"string | null"},"url":{"oneOf":[{"type":"string","description":"Link to the CRM record","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.url.oneOf.0","typeLabel":"string"},{"type":"null","description":"Link to the CRM record","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.url.oneOf.1","typeLabel":"null"}],"uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.url","typeLabel":"string | null"},"company":{"oneOf":[{"type":"string","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.company.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.company.oneOf.1","typeLabel":"null"}],"uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.company","typeLabel":"string | null"},"companyDomain":{"oneOf":[{"type":"string","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.companyDomain.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.companyDomain.oneOf.1","typeLabel":"null"}],"uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.companyDomain","typeLabel":"string | null"},"ownerId":{"oneOf":[{"type":"string","description":"CRM owner id","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.ownerId.oneOf.0","typeLabel":"string"},{"type":"null","description":"CRM owner id","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.ownerId.oneOf.1","typeLabel":"null"}],"uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.ownerId","typeLabel":"string | null"},"ownerName":{"oneOf":[{"type":"string","description":"CRM owner name (null for Sellsy)","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.ownerName.oneOf.0","typeLabel":"string"},{"type":"null","description":"CRM owner name (null for Sellsy)","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.ownerName.oneOf.1","typeLabel":"null"}],"uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.ownerName","typeLabel":"string | null"},"matchedEmail":{"oneOf":[{"type":"string","description":"The address that actually matched. HubSpot's contact search also matches secondary addresses, so the record's primary `email` can differ from the one you searched.","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.matchedEmail.oneOf.0","typeLabel":"string"},{"type":"null","description":"The address that actually matched. HubSpot's contact search also matches secondary addresses, so the record's primary `email` can differ from the one you searched.","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.matchedEmail.oneOf.1","typeLabel":"null"}],"uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.matchedEmail","typeLabel":"string | null"},"matchedOn":{"oneOf":[{"type":"string","enum":["primary_email","secondary_email","linkedin","unicity_criteria","name_company_id","name_company_name"],"description":"Which identifier produced the match. `unicity_criteria` means the team's own CRM unicity rules matched (the same rule crm-sync applies).","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.matchedOn.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["primary_email","secondary_email","linkedin","unicity_criteria","name_company_id","name_company_name"],"description":"Which identifier produced the match. `unicity_criteria` means the team's own CRM unicity rules matched (the same rule crm-sync applies).","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.matchedOn.oneOf.1","typeLabel":"null"}],"uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.matchedOn","typeLabel":"enum\u003cstring> | null"},"confidence":{"type":"string","enum":["high","medium","low"],"description":"How much to trust the match. Email / LinkedIn / unicity-criteria hits are `high`; a name constrained by a resolved company is `medium`; a name matched against a free-text company name is `low` (homonym risk) and should be verified before acting.","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.confidence","typeLabel":"enum\u003cstring>"},"object":{"type":"string","enum":["contact","lead"],"description":"Salesforce only: `lead` when the team's mapping writes Leads.","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.object","typeLabel":"enum\u003cstring>"},"owned_by_you":{"type":"boolean","description":"True when the record's owner is the CRM user linked to the API key holder (see `caller_crm_links`). Salesforce ids are compared on their 15-char prefix.","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0.owned_by_you","typeLabel":"boolean"}},"uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","properties":{"crm":{"type":"string","enum":["hubspot","salesforce","pipedrive","sellsy"],"uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.1.crm","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"CRM record id: pass it back as `account_crm_id` to `POST /trigger/crm-sync` to update that company.","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.1.id","typeLabel":"string"},"name":{"oneOf":[{"type":"string","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.1.name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.1.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.1.name","typeLabel":"string | null"},"domain":{"oneOf":[{"type":"string","description":"Website / domain stored on the record","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.1.domain.oneOf.0","typeLabel":"string"},{"type":"null","description":"Website / domain stored on the record","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.1.domain.oneOf.1","typeLabel":"null"}],"uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.1.domain","typeLabel":"string | null"},"linkedinUrl":{"oneOf":[{"type":"string","description":"LinkedIn company page stored on the record","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.1.linkedinUrl.oneOf.0","typeLabel":"string"},{"type":"null","description":"LinkedIn company page stored on the record","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.1.linkedinUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.1.linkedinUrl","typeLabel":"string | null"},"ownerId":{"oneOf":[{"type":"string","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.1.ownerId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.1.ownerId.oneOf.1","typeLabel":"null"}],"uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.1.ownerId","typeLabel":"string | null"},"ownerName":{"oneOf":[{"type":"string","description":"Null on Sellsy (no staff endpoint).","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.1.ownerName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Null on Sellsy (no staff endpoint).","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.1.ownerName.oneOf.1","typeLabel":"null"}],"uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.1.ownerName","typeLabel":"string | null"},"url":{"oneOf":[{"type":"string","description":"Link to the record in the CRM. Null on Sellsy.","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.1.url.oneOf.0","typeLabel":"string"},{"type":"null","description":"Link to the record in the CRM. Null on Sellsy.","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.1.url.oneOf.1","typeLabel":"null"}],"uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.1.url","typeLabel":"string | null"},"matchedOn":{"type":"string","enum":["crm_id","unicity_criteria","linkedin","domain","name"],"description":"The tier that found it, in search order. `unicity_criteria` is the rule crm-sync applies. A `linkedin` or `name` hit is a record a crm-sync without criteria would not find by domain: pass its id as `account_crm_id`.","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.1.matchedOn","typeLabel":"enum\u003cstring>"},"confidence":{"type":"string","enum":["high","low"],"description":"`low` for a name hit (homonym risk), `high` for every other tier.","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.1.confidence","typeLabel":"enum\u003cstring>"},"owned_by_you":{"type":"boolean","uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.1.owned_by_you","typeLabel":"boolean"}},"uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"contacts.items.[INDEX].matches.items.[INDEX]","typeLabel":"object"},"uniqueKey":"contacts.items.[INDEX].matches","typeLabel":"object[]"},"error":{"type":"string","description":"Present when the record carried nothing searchable (`no identifier`): no CRM was queried for it.","uniqueKey":"contacts.items.[INDEX].error","typeLabel":"string"}},"uniqueKey":"contacts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"contacts","typeLabel":"object[]"},"companies":{"type":"array","description":"Records form only: one entry per `companies[i]` of the request, in order.","items":{"type":"object","description":"The answer for one record of the records form, under the record's position in the request.","properties":{"index":{"type":"integer","uniqueKey":"companies.items.[INDEX].index","typeLabel":"integer"},"matches":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"crm":{"type":"string","enum":["hubspot","salesforce","pipedrive","sellsy"],"uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.crm","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"CRM record id","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.id","typeLabel":"string"},"name":{"oneOf":[{"type":"string","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.name","typeLabel":"string | null"},"email":{"oneOf":[{"type":"string","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.email.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.email.oneOf.1","typeLabel":"null"}],"uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.email","typeLabel":"string | null"},"phone":{"oneOf":[{"type":"string","description":"Phone already on the record (mobile first). HubSpot and Salesforce.","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.phone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Phone already on the record (mobile first). HubSpot and Salesforce.","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.phone","typeLabel":"string | null"},"title":{"oneOf":[{"type":"string","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.title.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.title.oneOf.1","typeLabel":"null"}],"uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.title","typeLabel":"string | null"},"profileUrl":{"oneOf":[{"type":"string","description":"LinkedIn URL stored on the record","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.profileUrl.oneOf.0","typeLabel":"string"},{"type":"null","description":"LinkedIn URL stored on the record","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.profileUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.profileUrl","typeLabel":"string | null"},"url":{"oneOf":[{"type":"string","description":"Link to the CRM record","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.url.oneOf.0","typeLabel":"string"},{"type":"null","description":"Link to the CRM record","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.url.oneOf.1","typeLabel":"null"}],"uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.url","typeLabel":"string | null"},"company":{"oneOf":[{"type":"string","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.company.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.company.oneOf.1","typeLabel":"null"}],"uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.company","typeLabel":"string | null"},"companyDomain":{"oneOf":[{"type":"string","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.companyDomain.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.companyDomain.oneOf.1","typeLabel":"null"}],"uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.companyDomain","typeLabel":"string | null"},"ownerId":{"oneOf":[{"type":"string","description":"CRM owner id","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.ownerId.oneOf.0","typeLabel":"string"},{"type":"null","description":"CRM owner id","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.ownerId.oneOf.1","typeLabel":"null"}],"uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.ownerId","typeLabel":"string | null"},"ownerName":{"oneOf":[{"type":"string","description":"CRM owner name (null for Sellsy)","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.ownerName.oneOf.0","typeLabel":"string"},{"type":"null","description":"CRM owner name (null for Sellsy)","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.ownerName.oneOf.1","typeLabel":"null"}],"uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.ownerName","typeLabel":"string | null"},"matchedEmail":{"oneOf":[{"type":"string","description":"The address that actually matched. HubSpot's contact search also matches secondary addresses, so the record's primary `email` can differ from the one you searched.","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.matchedEmail.oneOf.0","typeLabel":"string"},{"type":"null","description":"The address that actually matched. HubSpot's contact search also matches secondary addresses, so the record's primary `email` can differ from the one you searched.","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.matchedEmail.oneOf.1","typeLabel":"null"}],"uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.matchedEmail","typeLabel":"string | null"},"matchedOn":{"oneOf":[{"type":"string","enum":["primary_email","secondary_email","linkedin","unicity_criteria","name_company_id","name_company_name"],"description":"Which identifier produced the match. `unicity_criteria` means the team's own CRM unicity rules matched (the same rule crm-sync applies).","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.matchedOn.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["primary_email","secondary_email","linkedin","unicity_criteria","name_company_id","name_company_name"],"description":"Which identifier produced the match. `unicity_criteria` means the team's own CRM unicity rules matched (the same rule crm-sync applies).","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.matchedOn.oneOf.1","typeLabel":"null"}],"uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.matchedOn","typeLabel":"enum\u003cstring> | null"},"confidence":{"type":"string","enum":["high","medium","low"],"description":"How much to trust the match. Email / LinkedIn / unicity-criteria hits are `high`; a name constrained by a resolved company is `medium`; a name matched against a free-text company name is `low` (homonym risk) and should be verified before acting.","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.confidence","typeLabel":"enum\u003cstring>"},"object":{"type":"string","enum":["contact","lead"],"description":"Salesforce only: `lead` when the team's mapping writes Leads.","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.object","typeLabel":"enum\u003cstring>"},"owned_by_you":{"type":"boolean","description":"True when the record's owner is the CRM user linked to the API key holder (see `caller_crm_links`). Salesforce ids are compared on their 15-char prefix.","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0.owned_by_you","typeLabel":"boolean"}},"uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","properties":{"crm":{"type":"string","enum":["hubspot","salesforce","pipedrive","sellsy"],"uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.1.crm","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"CRM record id: pass it back as `account_crm_id` to `POST /trigger/crm-sync` to update that company.","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.1.id","typeLabel":"string"},"name":{"oneOf":[{"type":"string","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.1.name.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.1.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.1.name","typeLabel":"string | null"},"domain":{"oneOf":[{"type":"string","description":"Website / domain stored on the record","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.1.domain.oneOf.0","typeLabel":"string"},{"type":"null","description":"Website / domain stored on the record","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.1.domain.oneOf.1","typeLabel":"null"}],"uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.1.domain","typeLabel":"string | null"},"linkedinUrl":{"oneOf":[{"type":"string","description":"LinkedIn company page stored on the record","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.1.linkedinUrl.oneOf.0","typeLabel":"string"},{"type":"null","description":"LinkedIn company page stored on the record","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.1.linkedinUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.1.linkedinUrl","typeLabel":"string | null"},"ownerId":{"oneOf":[{"type":"string","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.1.ownerId.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.1.ownerId.oneOf.1","typeLabel":"null"}],"uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.1.ownerId","typeLabel":"string | null"},"ownerName":{"oneOf":[{"type":"string","description":"Null on Sellsy (no staff endpoint).","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.1.ownerName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Null on Sellsy (no staff endpoint).","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.1.ownerName.oneOf.1","typeLabel":"null"}],"uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.1.ownerName","typeLabel":"string | null"},"url":{"oneOf":[{"type":"string","description":"Link to the record in the CRM. Null on Sellsy.","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.1.url.oneOf.0","typeLabel":"string"},{"type":"null","description":"Link to the record in the CRM. Null on Sellsy.","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.1.url.oneOf.1","typeLabel":"null"}],"uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.1.url","typeLabel":"string | null"},"matchedOn":{"type":"string","enum":["crm_id","unicity_criteria","linkedin","domain","name"],"description":"The tier that found it, in search order. `unicity_criteria` is the rule crm-sync applies. A `linkedin` or `name` hit is a record a crm-sync without criteria would not find by domain: pass its id as `account_crm_id`.","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.1.matchedOn","typeLabel":"enum\u003cstring>"},"confidence":{"type":"string","enum":["high","low"],"description":"`low` for a name hit (homonym risk), `high` for every other tier.","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.1.confidence","typeLabel":"enum\u003cstring>"},"owned_by_you":{"type":"boolean","uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.1.owned_by_you","typeLabel":"boolean"}},"uniqueKey":"companies.items.[INDEX].matches.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"companies.items.[INDEX].matches.items.[INDEX]","typeLabel":"object"},"uniqueKey":"companies.items.[INDEX].matches","typeLabel":"object[]"},"error":{"type":"string","description":"Present when the record carried nothing searchable (`no identifier`): no CRM was queried for it.","uniqueKey":"companies.items.[INDEX].error","typeLabel":"string"}},"uniqueKey":"companies.items.[INDEX]","typeLabel":"object"},"uniqueKey":"companies","typeLabel":"object[]"},"caller_crm_links":{"type":"object","description":"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.","properties":{"hubspot":{"oneOf":[{"type":"object","properties":{"ownerId":{"type":"string","description":"HubSpot owner id","uniqueKey":"caller_crm_links.hubspot.oneOf.0.ownerId","typeLabel":"string"}},"uniqueKey":"caller_crm_links.hubspot.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"ownerId":{"type":"string","description":"HubSpot owner id"}},"uniqueKey":"caller_crm_links.hubspot.oneOf.1","typeLabel":"null"}],"uniqueKey":"caller_crm_links.hubspot","typeLabel":"object | null"},"salesforce":{"oneOf":[{"type":"object","properties":{"ownerId":{"type":"string","description":"Salesforce user id","uniqueKey":"caller_crm_links.salesforce.oneOf.0.ownerId","typeLabel":"string"}},"uniqueKey":"caller_crm_links.salesforce.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"ownerId":{"type":"string","description":"Salesforce user id"}},"uniqueKey":"caller_crm_links.salesforce.oneOf.1","typeLabel":"null"}],"uniqueKey":"caller_crm_links.salesforce","typeLabel":"object | null"}},"uniqueKey":"caller_crm_links","typeLabel":"object"},"searched_crms":{"type":"array","items":{"type":"string","uniqueKey":"searched_crms.items.[INDEX]","typeLabel":"string"},"description":"The connected CRMs actually queried.","uniqueKey":"searched_crms","typeLabel":"string[]"},"default_crm":{"oneOf":[{"type":"string","description":"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.","uniqueKey":"default_crm.oneOf.0","typeLabel":"string"},{"type":"null","description":"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.","uniqueKey":"default_crm.oneOf.1","typeLabel":"null"}],"uniqueKey":"default_crm","typeLabel":"string | null"},"errors":{"type":"array","description":"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\".","items":{"type":"object","properties":{"crm":{"type":"string","uniqueKey":"errors.items.[INDEX].crm","typeLabel":"string"},"error":{"type":"string","uniqueKey":"errors.items.[INDEX].error","typeLabel":"string"}},"uniqueKey":"errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"errors","typeLabel":"object[]"},"warnings":{"type":"array","description":"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.","items":{"type":"object","properties":{"crm":{"type":"string","uniqueKey":"warnings.items.[INDEX].crm","typeLabel":"string"},"warning":{"type":"string","uniqueKey":"warnings.items.[INDEX].warning","typeLabel":"string"}},"uniqueKey":"warnings.items.[INDEX]","typeLabel":"object"},"uniqueKey":"warnings","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"matches":[{"crm":"hubspot","id":"\u003cstring>","name":"\u003cstring>","email":"\u003cstring>","phone":"\u003cstring>","title":"\u003cstring>","profileUrl":"\u003cstring>","url":"\u003cstring>","company":"\u003cstring>","companyDomain":"\u003cstring>","ownerId":"\u003cstring>","ownerName":"\u003cstring>","matchedEmail":"\u003cstring>","matchedOn":"primary_email","confidence":"high","object":"contact","owned_by_you":true}],"contacts":[{"index":123,"matches":[{"crm":"hubspot","id":"\u003cstring>","name":"\u003cstring>","email":"\u003cstring>","phone":"\u003cstring>","title":"\u003cstring>","profileUrl":"\u003cstring>","url":"\u003cstring>","company":"\u003cstring>","companyDomain":"\u003cstring>","ownerId":"\u003cstring>","ownerName":"\u003cstring>","matchedEmail":"\u003cstring>","matchedOn":"primary_email","confidence":"high","object":"contact","owned_by_you":true}],"error":"\u003cstring>"}],"companies":[{"index":123,"matches":[{"crm":"hubspot","id":"\u003cstring>","name":"\u003cstring>","email":"\u003cstring>","phone":"\u003cstring>","title":"\u003cstring>","profileUrl":"\u003cstring>","url":"\u003cstring>","company":"\u003cstring>","companyDomain":"\u003cstring>","ownerId":"\u003cstring>","ownerName":"\u003cstring>","matchedEmail":"\u003cstring>","matchedOn":"primary_email","confidence":"high","object":"contact","owned_by_you":true}],"error":"\u003cstring>"}],"caller_crm_links":{"hubspot":{"ownerId":"\u003cstring>"},"salesforce":{"ownerId":"\u003cstring>"}},"searched_crms":["\u003cstring>"],"default_crm":"\u003cstring>","errors":[{"crm":"\u003cstring>","error":"\u003cstring>"}],"warnings":[{"crm":"\u003cstring>","warning":"\u003cstring>"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"5957e618-c91a-4a39-8aa4-b8e07e7d68af":{"description":"Invalid or missing authentication credentials","content":{"application/json":{"schema":{"required":["message","error","statusCode"],"type":"object","properties":{"message":{"type":"string","example":"Invalid API Key","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"error":{"type":"string","example":"Unauthorized","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"statusCode":{"type":"integer","example":401,"isRequired":true,"uniqueKey":"statusCode","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"example":{"message":"Invalid API Key","error":"Unauthorized","statusCode":401},"examples":{"Example":{"title":"Example","value":{"message":"Invalid API Key","error":"Unauthorized","statusCode":401}}},"exampleType":"examples"}},"exampleType":"examples"},"d14135e5-a4f1-4a42-a5c7-068f13a80543":{"description":"No usable identifier in the flat form (provide email, linkedin_url, first_name + last_name, or a name part with company_domain or company_name), empty record arrays, more than 20 records, or a `settings_type` no connected CRM has","content":{"application/json":{"schema":{"required":["error","message"],"type":"object","properties":{"error":{"type":"integer","format":"int32","isRequired":true,"uniqueKey":"error","typeLabel":"integer\u003cint32>"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"message":"Provide email, linkedin_url, first_name + last_name, or a name part together with company_domain or company_name","error":"Unprocessable Entity","statusCode":422},"examples":{"Example":{"title":"Example","value":{"message":"Provide email, linkedin_url, first_name + last_name, or a name part together with company_domain or company_name","error":"Unprocessable Entity","statusCode":422}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"3fdd0f0e-af82-4d8a-af9c-9a32e34a28d1":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"Provide your API key in the x-api-key header.","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"70167a7e-c866-4cf8-bba8-144111851d01":{"url":"https://public-api.lonescale.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"Provide your API key in the x-api-key header.","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"x-api-key","type":"string","description":"Provide your API key in the x-api-key header.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"x-api-key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"lonescale-5883e47c","siteName":"LoneScale API Doc","title":"CRM Search - LoneScale API Doc","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-27T15:27:20.629Z","originalFileLocation":"api-reference/endpoint/crm-search.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Look up contacts and companies in your connected CRM(s) and surface the record owner. Two forms. Flat: one contact, with email, linkedin_url, or a name with a company; the answer is matches. Records: contacts and/or companies, the same free-form records as POST /trigger/crm-sync (lonescale_ keys, bare company_ and camelCase aliases, account_crm_id), at most 20 in all; each record is searched on its own and answered under its index in contacts[i] / companies[i], so you can pre-check the exact payload you are about to sync. Companies are matched, in order, by CRM id, by your company unicity criteria (of the settings_type record), by LinkedIn page, by domain, by exact name (matchedOn says which). Only connected CRMs are queried. Pipedrive and Sellsy search contacts by email and companies by name only. Each match carries owned_by_you, and caller_crm_links tells which CRM user the caller is linked to, so a client can say \u0026quot;already yours\u0026quot; vs \u0026quot;owned by X\u0026quot; and warn when a create would go to the default owner.\">\u003cmeta data-mint-head name=\"application-name\" content=\"LoneScale API Doc\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lonescale-5883e47c/hs7sBa03sxH_yIJW/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/lonescale-5883e47c/hs7sBa03sxH_yIJW/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lonescale-5883e47c/hs7sBa03sxH_yIJW/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/lonescale-5883e47c/hs7sBa03sxH_yIJW/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/lonescale-5883e47c/hs7sBa03sxH_yIJW/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lonescale-5883e47c/hs7sBa03sxH_yIJW/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lonescale-5883e47c/hs7sBa03sxH_yIJW/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/lonescale-5883e47c/hs7sBa03sxH_yIJW/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/lonescale-5883e47c/hs7sBa03sxH_yIJW/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"CRM Search - LoneScale API Doc\">\u003cmeta data-mint-head property=\"og:description\" content=\"Look up contacts and companies in your connected CRM(s) and surface the record owner. Two forms. Flat: one contact, with email, linkedin_url, or a name with a company; the answer is matches. Records: contacts and/or companies, the same free-form records as POST /trigger/crm-sync (lonescale_ keys, bare company_ and camelCase aliases, account_crm_id), at most 20 in all; each record is searched on its own and answered under its index in contacts[i] / companies[i], so you can pre-check the exact payload you are about to sync. Companies are matched, in order, by CRM id, by your company unicity criteria (of the settings_type record), by LinkedIn page, by domain, by exact name (matchedOn says which). Only connected CRMs are queried. Pipedrive and Sellsy search contacts by email and companies by name only. Each match carries owned_by_you, and caller_crm_links tells which CRM user the caller is linked to, so a client can say \u0026quot;already yours\u0026quot; vs \u0026quot;owned by X\u0026quot; and warn when a create would go to the default owner.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"LoneScale API Doc\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.lonescale.com/api-reference/endpoint/crm-search\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://lonescale-5883e47c.mintlify.site/_mintlify/api/og/v2?division=CRM+Sync\u0026amp;title=CRM+Search\u0026amp;description=Look+up+contacts+and+companies+in+your+connected+CRM%28s%29+and+surface+the+record+owner.+Two+forms.+**Flat**%3A+one+contact%2C+with+%60email%60%2C+%60linkedin_url%60%2C+or+a+name+\u0026amp;theme=3d6426264ba5883086120849\u0026amp;signature=49322810c1405e7cef1f8738096a7a1f31992b4057cb4e9c5b6b1c04738bd9c5\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"CRM Search - LoneScale API Doc\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Look up contacts and companies in your connected CRM(s) and surface the record owner. Two forms. Flat: one contact, with email, linkedin_url, or a name with a company; the answer is matches. Records: contacts and/or companies, the same free-form records as POST /trigger/crm-sync (lonescale_ keys, bare company_ and camelCase aliases, account_crm_id), at most 20 in all; each record is searched on its own and answered under its index in contacts[i] / companies[i], so you can pre-check the exact payload you are about to sync. Companies are matched, in order, by CRM id, by your company unicity criteria (of the settings_type record), by LinkedIn page, by domain, by exact name (matchedOn says which). Only connected CRMs are queried. Pipedrive and Sellsy search contacts by email and companies by name only. Each match carries owned_by_you, and caller_crm_links tells which CRM user the caller is linked to, so a client can say \u0026quot;already yours\u0026quot; vs \u0026quot;owned by X\u0026quot; and warn when a create would go to the default owner.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://lonescale-5883e47c.mintlify.site/_mintlify/api/og/v2?division=CRM+Sync\u0026amp;title=CRM+Search\u0026amp;description=Look+up+contacts+and+companies+in+your+connected+CRM%28s%29+and+surface+the+record+owner.+Two+forms.+**Flat**%3A+one+contact%2C+with+%60email%60%2C+%60linkedin_url%60%2C+or+a+name+\u0026amp;theme=3d6426264ba5883086120849\u0026amp;signature=49322810c1405e7cef1f8738096a7a1f31992b4057cb4e9c5b6b1c04738bd9c5\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/lonescale-5883e47c/hs7sBa03sxH_yIJW/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"LoneScale API Doc\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.lonescale.com/api-reference/endpoint/crm-search\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/crm-search.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.lonescale.com/#organization\",\"name\":\"LoneScale API Doc\",\"url\":\"https://docs.lonescale.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/lonescale-5883e47c/WovNkkTIMlsr76Dy/logo/LoneScale-Logo-Preferred.png?fit=max\u0026auto=format\u0026n=WovNkkTIMlsr76Dy\u0026q=85\u0026s=f88739fcb1e0caffbf3f475cbb1af2ad\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.lonescale.com#website\",\"name\":\"LoneScale API Doc\",\"url\":\"https://docs.lonescale.com\",\"publisher\":{\"@id\":\"https://docs.lonescale.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.lonescale.com/api-reference/endpoint/crm-search#webpage\",\"url\":\"https://docs.lonescale.com/api-reference/endpoint/crm-search\",\"name\":\"CRM Search\",\"description\":\"Look up contacts and companies in your connected CRM(s) and surface the record owner. Two forms. Flat: one contact, with email, linkedin_url, or a name with a company; the answer is matches. Records: contacts and/or companies, the same free-form records as POST /trigger/crm-sync (lonescale_ keys, bare company_ and camelCase aliases, account_crm_id), at most 20 in all; each record is searched on its own and answered under its index in contacts[i] / companies[i], so you can pre-check the exact payload you are about to sync. Companies are matched, in order, by CRM id, by your company unicity criteria (of the settings_type record), by LinkedIn page, by domain, by exact name (matchedOn says which). Only connected CRMs are queried. Pipedrive and Sellsy search contacts by email and companies by name only. Each match carries owned_by_you, and caller_crm_links tells which CRM user the caller is linked to, so a client can say \\\"already yours\\\" vs \\\"owned by X\\\" and warn when a create would go to the default owner.\",\"dateModified\":\"2026-10-27T15:27:20.629Z\",\"isPartOf\":{\"@id\":\"https://docs.lonescale.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.lonescale.com/api-reference/endpoint/crm-search#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.lonescale.com/api-reference/endpoint/crm-search#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"CRM Sync\",\"item\":\"https://docs.lonescale.com/api-reference/crm-sync-fields\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CRM Search\",\"item\":\"https://docs.lonescale.com/api-reference/endpoint/crm-search\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.lonescale.com/api-reference/endpoint/crm-search#apireference\",\"headline\":\"CRM Search\",\"name\":\"CRM Search\",\"description\":\"Look up contacts and companies in your connected CRM(s) and surface the record owner. Two forms. Flat: one contact, with email, linkedin_url, or a name with a company; the answer is matches. Records: contacts and/or companies, the same free-form records as POST /trigger/crm-sync (lonescale_ keys, bare company_ and camelCase aliases, account_crm_id), at most 20 in all; each record is searched on its own and answered under its index in contacts[i] / companies[i], so you can pre-check the exact payload you are about to sync. Companies are matched, in order, by CRM id, by your company unicity criteria (of the settings_type record), by LinkedIn page, by domain, by exact name (matchedOn says which). Only connected CRMs are queried. Pipedrive and Sellsy search contacts by email and companies by name only. Each match carries owned_by_you, and caller_crm_links tells which CRM user the caller is linked to, so a client can say \\\"already yours\\\" vs \\\"owned by X\\\" and warn when a create would go to the default owner.\",\"url\":\"https://docs.lonescale.com/api-reference/endpoint/crm-search\",\"mainEntityOfPage\":{\"@id\":\"https://docs.lonescale.com/api-reference/endpoint/crm-search#webpage\"},\"dateModified\":\"2026-10-27T15:27:20.629Z\",\"publisher\":{\"@id\":\"https://docs.lonescale.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.lonescale.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"LoneScale API Doc\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"LoneScale API Doc","nav":{"global":{"anchors":[{"anchor":"Documentation","icon":"book-open-cover","href":"https://docs.lonescale.com"},{"anchor":"Help Center","icon":"newspaper","href":"https://help-center.lonescale.com/"}]},"tabs":[{"tab":"MCP","pages":[{"title":"MCP","href":"/mcp/overview"}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/cli/overview"}]},{"tab":"API Reference","groups":[{"group":"Getting Started","pages":[{"title":"Authentication","icon":"key","href":"/authentication"},{"title":"Get user information","openapi":"GET /users","href":"/api-reference/endpoint/get"}]},{"group":"API Enrichment","pages":[{"title":"Enrich Contacts","openapi":"POST /trigger/enrich","href":"/api-reference/endpoint/create"},{"title":"Enrich Contacts (Sync)","openapi":"POST /trigger/enrich/sync","href":"/api-reference/endpoint/enrich-sync"},{"title":"Contact Enrichment History","openapi":"GET /contacts/{identifier}/enrichment-history","href":"/api-reference/endpoint/enrichment-history"},{"title":"Verify Phone Number","openapi":"POST /verify-phone","href":"/api-reference/endpoint/verify-phone"},{"title":"Search Contacts","openapi":"POST /trigger/contact-sourcing","href":"/api-reference/endpoint/contact-sourcing"},{"title":"Search Contacts (Sync)","openapi":"POST /trigger/contact-sourcing/sync","href":"/api-reference/endpoint/contact-sourcing-sync"}]},{"group":"Companies","pages":[{"title":"Search Company","openapi":"GET /companies/search","href":"/api-reference/endpoint/companies-search"}]},{"group":"CRM Sync","pages":[{"title":"Available Fields","icon":"list","href":"/api-reference/crm-sync-fields"},{"title":"CRM Sync","openapi":"POST /trigger/crm-sync","href":"/api-reference/endpoint/crm-sync"},{"title":"CRM Sync Status","openapi":"GET /trigger/crm-sync/{id}","href":"/api-reference/endpoint/crm-sync-status"},{"title":"CRM Sync Delivery Log","openapi":"GET /trigger/crm-sync/{id}/records","description":"Delivery log of a CRM sync run: one entry per record with its final status (`synced` / `failed` / `pending`), the CRM ids created or updated, the error message when it failed and the number of attempts. Records not consumed yet (run still processing) are reported as `pending`.","href":"/api-reference/endpoint/crm-sync-records"},{"title":"CRM Search","openapi":"POST /crm/search","href":"/api-reference/endpoint/crm-search"},{"title":"CRM Mapping Preview","openapi":"GET /crm/mapping","description":"Preview which CRM fields a `POST /trigger/crm-sync` will write: the team's resolved contact/company create \u0026 update field mappings, the unicity criteria used for matching, and whether creation is enabled. Read-only.","href":"/api-reference/endpoint/crm-mapping"}]},{"group":"Today's accounts","pages":[{"title":"Get today's accounts","openapi":"GET /todays-accounts","href":"/api-reference/endpoint/todays-accounts-list"},{"title":"Refresh today's accounts","openapi":"POST /todays-accounts/refresh","href":"/api-reference/endpoint/todays-accounts-refresh"},{"title":"Search sales reps","openapi":"GET /todays-accounts/owners","href":"/api-reference/endpoint/todays-accounts-owners"},{"title":"Assign an account","openapi":"POST /todays-accounts/assign","href":"/api-reference/endpoint/todays-accounts-assign"},{"title":"Dismiss an account","openapi":"POST /todays-accounts/dismiss","href":"/api-reference/endpoint/todays-accounts-dismiss"},{"title":"Enrich the contact","openapi":"POST /todays-accounts/enrich","href":"/api-reference/endpoint/todays-accounts-enrich"},{"title":"Find people","openapi":"POST /todays-accounts/find-people","href":"/api-reference/endpoint/todays-accounts-find-people"}]},{"group":"Webhooks","pages":[{"title":"List Webhooks","openapi":"GET /webhooks","href":"/api-reference/endpoint/webhooks-list"}]},{"group":"Lists","pages":[{"title":"Get all lists","openapi":"GET /lists","href":"/api-reference/endpoint/lists-get-all"},{"title":"Create a list","openapi":"POST /lists","href":"/api-reference/endpoint/lists-create"},{"title":"Get a list","openapi":"GET /lists/{listId}","href":"/api-reference/endpoint/lists-get"},{"title":"Delete a list","openapi":"DELETE /lists/{listId}","href":"/api-reference/endpoint/lists-delete"},{"title":"Get list items","openapi":"GET /lists/{listId}/items","href":"/api-reference/endpoint/lists-get-items"},{"title":"Add an item to a list","openapi":"POST /lists/{listId}/item","href":"/api-reference/endpoint/lists-add-item"},{"title":"Remove an item from a list","openapi":"DELETE /lists/{listId}/item/{itemId}","href":"/api-reference/endpoint/lists-delete-item"}]},{"group":"Webhook Payload","pages":[{"title":"Contact Enrichment Payload","href":"/api-reference/webhookpayload/enrichment-payload"},{"title":"Search Contacts Payload","href":"/api-reference/webhookpayload/sourcing-payload"},{"title":"Notification Payload","href":"/api-reference/webhookpayload/notification-payload"}]}]}]},"basePath":"","title":"CRM Search - LoneScale API Doc","buildId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","deploymentId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-5FCzAcfS.js","utils-SLtAG4EZ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-2DZi8ZMu.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D7J3nkzE.js","snippetPresets-D0Alv0AH.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BI4qNJ2c.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BD3uyr8j.js","shallow-D8iEBr5z.js","getApiPlaygroundDisplay-CgNP4lzR.js","CodeSnippet-CX-QHuMs.js","CodeSnippets-VlXE-ZUf.js","Page-D9ithiIZ.js","getPastedJson-DYNQkZ1M.js","icon-CzacdwOi.js","MethodPill-2JVqoYKi.js","DuplicateIcon-_xVXs-U8.js","createIcon-BRHrweLo.js","DynamicMarkdown-mQG_iQiE.js","SectionHeading-DMpJzv8f.js","axios-vUo_bRtp.js","Markdown-5FGIym-8.js","clsx-D-TRO5q5.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CdrJecqK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-CHlcWBLM.js"]}