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.
In the SDK this is the nvCreateSavedSearch method. It takes the parameters below except label, which exists only in workflow JSON. The result below is returned in data.
The command is linkedin navigator saved-searches create. Its argument and flag are listed below.
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)"
}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.
| Parameter | Description |
|---|---|
label | Optional label included in workflow completion. |
type | Required. lead to save a lead search or account to save an account search. |
customSearchUrl | Required. 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. |
A customSearchUrl that is not a Sales Navigator search of the requested type is rejected with invalidWorkflow before the workflow starts.
| Arg | Required | Description |
|---|---|---|
search-url | yes | URL of a Sales Navigator lead or account search, matching --type |
| Flag | Description |
|---|---|
--type | Required. lead or account. |
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
customSearchUrlopens one of your saved searches, as a URL copied while viewing a saved search or a saved search'surlfromnv.retrieveSavedSearchesdoes (its URL carries?savedSearchId=), nothing new is saved: the result describes that existing saved search. A successful call therefore does not prove that a new saved search was created. To tell the two apart, compare the result'sidwith the IDsnv.retrieveSavedSearchesreturned before the call. - Sales Navigator names it. The saved search gets Sales Navigator's default name, such as
Lead Search 1. Choosing a name, notification settings, or new-results-only reading is not available yet. - 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
unexpectedErrorand 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.retrieveSavedSearchesfirst. - One call saves at most one search. If the call is retried internally, it never saves the search twice.
- English interface only, for now. This is a current limitation: saved searches work only with an English Sales Navigator interface. On a German, Spanish, French or Portuguese interface, the call fails with
interfaceLanguageNotSupported.
To delete a saved search, use nv.deleteSavedSearch.
Result options
{
"actionType": "nv.createSavedSearch",
"label": "headsOfSales",
"success": true,
"data": {
"id": "1900000001",
"name": "Lead Search 1",
"type": "lead",
"url": "https://www.linkedin.com/sales/search/people?savedSearchId=1900000001"
}
}| Field | Meaning |
|---|---|
id | ID 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. |
name | Name Sales Navigator gave the saved search. |
type | lead or account, matching the requested type. |
url | Opens 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:
{
"actionType": "nv.createSavedSearch",
"label": "headsOfSales",
"success": false,
"error": {
"type": "interfaceLanguageNotSupported",
"message": "This action currently supports only the English Sales Navigator interface."
}
}Possible error.type values:
noSalesNavigator— the account does not have an active Sales Navigator subscription.interfaceLanguageNotSupported— the account's Sales Navigator interface is German, Spanish, French or Portuguese rather than English. Nothing is saved; this is a current limitation (see above).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: checknv.retrieveSavedSearchesbefore calling again, so you do not save it twice.