Prospects
Search People by Company
Search for people at a specific company with pagination support
GET
Search for people (contacts/employees) at a specific company using the Lance database. Results are automatically mapped and upserted to the database for future reference.
Authentication
This endpoint requires authentication. The user must be logged in.The search prioritizes company matching in this order: LinkedIn URL, domain,
then company name. Companies must have at least one of these identifiers to be
searchable.
Request
Path Parameters
The unique identifier (UUID) of the company to search people for.
Query Parameters
Page number for pagination (0-indexed). Values less than 0 are normalized to
0.
Number of results per page. Must be between 1 and 100. Values outside this
range are clamped to the nearest valid value.
Response
Array of person objects found at the company.
Total number of people matching the search criteria across all pages.
Total number of pages available based on size parameter.
Current page number (0-indexed).
Number of results per page.
Examples
Error Responses
404 Not Found
Returned when the specified company does not exist in the database.
400 Bad Request
Returned when the company exists but lacks sufficient data for searching (missing LinkedIn URL, domain, and company name).
Search Strategy
The endpoint uses a prioritized search strategy to find people at a company:- LinkedIn URL (most reliable): If the company has a LinkedIn company page URL, it is used as the primary filter.
- Domain (good fallback): If no LinkedIn URL is available, the company’s domain is used to match people.
- Company Name (last resort): If neither LinkedIn URL nor domain is available, the company name is used. This may have more false positives as company names are not unique.
Results are automatically upserted to the database. Existing person records
are updated with new data, and new persons are created with fresh UUIDs.
Performance Notes
This endpoint is optimized for performance:- Batch fetches existing persons in a single database query
- Uses synchronous mapping instead of N+1 database lookups
- Bulk upserts all persons in one operation