nv.createSavedSearch

Save a Sales Navigator lead search or account search, given the search's URL. For example, build a search in Sales Navigator, copy its URL from the address bar, and save it so Sales Navigator keeps track of it. To read the saved search's results later, pass its url as customSearchUrl to nv.searchPeople or nv.searchCompanies.

An active Sales Navigator subscription is required. To see the searches you already saved, call nv.retrieveSavedSearches.

Constraints

⏺️ Root Start: allowed.

⬆️ Parent Actions: N/A.

⬇️ Child Actions: N/A.

Parameters

{
  "actionType": "nv.createSavedSearch",
  "label": "headsOfSales",
  "type": "lead",
  "customSearchUrl": "https://www.linkedin.com/sales/search/people?query=(spellCorrectionEnabled%3Atrue%2Ckeywords%3AHead%2520of%2520Sales)",
  "name": "Heads of Sales"
}

In AI assistants, the MCP tool is nv_create_saved_search. The n8n action is Create saved search in Sales Navigator; the Make module is Create Saved Search in Sales Navigator.

ParameterDescription
labelOptional label included in workflow completion.
typeRequired. lead to save a lead search or account to save an account search.
customSearchUrlRequired. URL of a Sales Navigator search of that type: a lead search (https://www.linkedin.com/sales/search/people?…) for lead, or an account search (https://www.linkedin.com/sales/search/company?…) for account.
nameOptional. Name for the saved search, on a single line, from 1 to 256 characters after spaces at the start and end are removed. No other saved search of the same type may already have it; names are compared exactly, so names that differ only in letter case are different. Without name, the search keeps the name Sales Navigator gives it (see Saving behaviour).

A customSearchUrl that is not a Sales Navigator search of the requested type, or a name outside these limits, is rejected with invalidWorkflow before the workflow starts. Nothing is ever shortened.

Saving behaviour

  • Saved with Sales Navigator's own control. The action opens the search and saves it with Sales Navigator's Save search control, as you would in the browser. The result describes the saved search, including its id.
  • A search that is already saved. If customSearchUrl opens one of your saved searches, as a URL copied while viewing a saved search or a saved search's url from nv.retrieveSavedSearches does (its URL carries ?savedSearchId=), nothing new is saved: the result describes that existing saved search, with its current name, and name is not applied to it. A successful call therefore does not prove that a new saved search was created. To tell the two apart, compare the result's id with the IDs nv.retrieveSavedSearches returned before the call.
  • The name. Sales Navigator always saves the search under a name it derives from the search itself, such as its keywords or Lead Search 1. With name, the action then renames that saved search to name, and the result carries the new name. Notification settings and new-results-only reading are not available yet.
  • One name per type. Sales Navigator does not keep two saved searches of the same type under one name. With name, the action checks your saved searches first and fails with savedSearchAlreadyExists before anything is saved. Without name, the same refusal comes from Sales Navigator when its own name for the search is already taken, for example by an earlier search with the same keywords; the error message names that name. Pass a name to save such a search anyway. The same name is allowed for a lead search and an account search.
  • If the rename is not confirmed. When the search was saved but its rename could not be confirmed, the call fails with savedSearchRenameUnconfirmed. The search stays saved under Sales Navigator's name: the error message gives its id and that name. Look it up with nv.retrieveSavedSearches, or delete it, before you call again.
  • Saved criteria are checked. Linked API checks that the search Sales Navigator saves has the criteria of customSearchUrl. If it does not, the call fails with savedSearchQueryMismatch and the wrongly saved search is deleted; the error message says whether that deletion was confirmed.
  • Use a URL copied from Sales Navigator. The search must open in Sales Navigator exactly as given. A URL copied from Sales Navigator's address bar works. If Sales Navigator changes the search when it opens the URL, the call fails with unexpectedError and nothing is saved.
  • No duplicate check for equivalent searches. Apart from that case, Linked API does not check whether another of your saved searches has the same criteria. To avoid saving one twice, look it up with nv.retrieveSavedSearches first.
  • One call saves at most one search. If the call is retried internally, it never saves the search twice.

To delete a saved search, use nv.deleteSavedSearch.

Result options

json
{
  "actionType": "nv.createSavedSearch",
  "label": "headsOfSales",
  "success": true,
  "data": {
    "id": "1900000001",
    "name": "Heads of Sales",
    "type": "lead",
    "url": "https://www.linkedin.com/sales/search/people?savedSearchId=1900000001"
  }
}
FieldMeaning
idID of the saved search, as a string: the one this call created, or the existing one customSearchUrl opened (see Saving behaviour). Pass it as savedSearchId to delete it.
nameName of the saved search: name when you passed it, otherwise the name Sales Navigator gave it.
typelead or account, matching the requested type.
urlOpens the saved search, in the same form as url in nv.retrieveSavedSearches. Pass it as customSearchUrl to nv.searchPeople or nv.searchCompanies to read its results.

label is included only if specified in the action parameters.

Error result

An unsuccessful action returns success: false with an error object:

json
{
  "actionType": "nv.createSavedSearch",
  "label": "headsOfSales",
  "success": false,
  "error": {
    "type": "savedSearchAlreadyExists",
    "message": "A saved lead search named \"Heads of Sales\" already exists. Choose a different name."
  }
}

Possible error.type values:

  • noSalesNavigator — the account does not have an active Sales Navigator subscription.
  • savedSearchAlreadyExists — another of your saved searches of the same type already has this name: name, or, without name, the name Sales Navigator gives the search. Nothing is saved.
  • savedSearchLimitReached — Sales Navigator refused to save another search because the account has reached its limit of saved searches. Delete a saved search with nv.deleteSavedSearch and try again. Nothing is saved.
  • savedSearchRenameUnconfirmed — the search was saved under Sales Navigator's own name, but the rename to name could not be confirmed. The search is kept; the message gives its id and name.
  • savedSearchQueryMismatch — Sales Navigator tried to save the search with criteria other than those of customSearchUrl. A search saved that way is deleted; the message says whether the deletion was confirmed, and if it was not, gives the search's id so you can delete it.
  • unexpectedError — the search could not be saved, or Linked API could not confirm that it was. In the second case it may have been saved anyway: check nv.retrieveSavedSearches before calling again, so you do not save it twice.