Kick off an async Sales Navigator people-search import backed by a Trigger.dev task. Returns a runId immediately; rows stream into the list as the task progresses.
sales-nav-import Trigger.dev task, and returns the task’s runId.
Key behaviours:
/people. Company and account URLs are rejected with 400.has_sales_navigator = true. Check with getSalesNavAccess before calling.listId to auto-create a list named Sales Nav Import - mm/dd/yyyy (or pass listName for a custom name).IMPORT_LEAD credits (1 per lead). If the caller’s balance is below the requested maxResults, the import is capped to the affordable quantity and wasCapped: true is returned. A zero balance responds 402.skipExistingCustomers is true (default), the import task skips leads already present in the user’s other lists.getSalesNavAccess first. A 400 with No Sales Navigator account found means the user has not connected a Sales Nav LinkedIn account yet.listId, the list must belong to the caller — otherwise 403.GET /api/lists/{listId}/rows to observe rows appearing. Typical imports take several minutes for a few thousand leads.runId corresponds to the Trigger.dev sales-nav-import task. Use the Trigger.dev dashboard or seer skill for deep inspection if the import stalls.wasCapped and maxResults in the response. If wasCapped: true, warn the human that the import was shortened; propose a credit top-up before re-running.runId to the user.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Kick off a Sales Navigator import. The caller must have at least one connected LinkedIn account with Sales Navigator premium — check first via getSalesNavAccess.
LinkedIn Sales Navigator people search URL. The path must contain /people — lead/company search URLs are rejected with 400.
Existing list to append into. If omitted, a new list is created on the fly using listName (or a default timestamped name).
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Name for the new list when listId is omitted. Defaults to Sales Nav Import - <mm/dd/yyyy>.
Upper bound on leads to import. Defaults to 2500. The server additionally caps this to what the caller can afford in credits (1 credit per lead via IMPORT_LEAD); the effective cap is returned in the response as maxResults.
0 < x <= 9007199254740991When true (default), leads already present in the user's other lists are skipped server-side during the import task.
Import accepted and scheduled on Trigger.dev. Leads will populate into the list asynchronously.
true The list being imported into — either the provided listId or the freshly created list.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Trigger.dev run id for the sales-nav-import task. Poll it via the Trigger.dev dashboard or look for rows appearing under GET /api/lists/{id}/rows.
Effective cap applied to the import after credit-based adjustment. May be lower than the requested maxResults if the user's credit balance couldn't cover the full request.
-9007199254740991 <= x <= 9007199254740991True when the effective maxResults was reduced below the requested value because the user didn't have enough credits for the full import.