Enrich Leads With Open Profile Status
enrich_leadsFetches Open Profile and InMail status for leads in a saved Sales Navigator search, stores results by member_id, skips enriched leads, retries failures, and reuses data across searches.
Instructions
Add Open Profile / InMail status to a saved contact search.
Search results cannot carry this. Sales Navigator's search payload has
an openLink field, but it is false for everyone — the real flag is
memberBadges.openLink, which only the profile endpoint returns, one
request per lead. There is no bulk endpoint.
Costs one LinkedIn request per lead (~1s each with pacing), so it is a
separate opt-in tool rather than part of search_contacts. Start with
a limit to sample before committing to a whole query.
Results go to the lead_enrichment table, keyed on the stable
member_id, and are joined in by get_results / export_results as
an enrichment block. Search records are never modified, and a lead
enriched once is reused by every search that finds them again.
Resumable and idempotent: with only_missing=true (the default),
leads that already have a successful fetch are skipped, so calling
repeatedly walks through the query. Failed fetches stay pending and
are retried.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max leads to enrich in THIS call (1-500). None means all pending — that can be a lot of requests, so prefer a limit. | |
| url_or_hash | Yes | The query's url_hash (from list_queries) or its original search URL. | |
| only_missing | No | Skip leads already enriched successfully. Set false to refresh statuses that may have gone stale. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||