Documentation Index
Fetch the complete documentation index at: https://api.lensmor.com/llms.txt
Use this file to discover all available pages before exploring further.
Contacts search
Search contacts by company name. Use this endpoint when you want a lightweight contact result set keyed off a company query, with optional role and person-name filtering.Endpoint
GET /external/contacts/search
Authentication
See AuthenticationSuccess status code
200 OK
Query parameters
| Name | Required | Type | Notes |
|---|---|---|---|
company_name | Yes | string | Company lookup term. Length 1 to 200. |
role | No | string | Optional position or role filter. Blank values are ignored. |
person_name | No | string | Optional person-name filter. Blank values are ignored. |
page | No | integer | Defaults to 1. |
pageSize | No | integer | Defaults to 20, max 100. |
Response body
Top-level fields
| Field | Type | Notes |
|---|---|---|
items | object[] | Same contact summary shape as GET /external/personnel/list items[]. |
total | integer | Total distinct personnel matches. |
page | integer | Current page number. |
pageSize | integer | Page size used for this response. |
totalPages | integer | 0 when total is 0. |
hasMore | boolean | true when another page exists. |
Response example
Error responses
400 Bad Requestwhencompany_nameis empty or invalid.401 Unauthorizedwhen the API key is missing, malformed, or invalid.
Notes
- Request-side
company_nameis snake_case, while response-side fields are camelCase. person_namecan narrow the company-scoped result set by personnel name without requiring an event context.emailandcontactUnlockStatusdepend on the authenticated caller’s current access state.- Results reflect the authenticated caller’s current access state.