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)",
"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.
| 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. |
name | Optional. 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.
| Arg | Required | Description |
|---|---|---|
search-url | yes | URL of a Sales Navigator lead or account search, matching --type |
| Flag | Description |
|---|---|
--type | Required. lead or account. |
--name | Optional. Name for the saved search, 1 to 256 characters. |
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, with its current name, andnameis 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'sidwith the IDsnv.retrieveSavedSearchesreturned 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. Withname, the action then renames that saved search toname, 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 withsavedSearchAlreadyExistsbefore anything is saved. Withoutname, 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 anameto 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 itsidand that name. Look it up withnv.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 withsavedSearchQueryMismatchand 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
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.
To delete a saved search, use nv.deleteSavedSearch.
Result options
{
"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"
}
}| 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 of the saved search: name when you passed it, otherwise the name Sales Navigator gave it. |
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": "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, withoutname, 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 withnv.deleteSavedSearchand try again. Nothing is saved.savedSearchRenameUnconfirmed— the search was saved under Sales Navigator's own name, but the rename tonamecould not be confirmed. The search is kept; the message gives itsidand name.savedSearchQueryMismatch— Sales Navigator tried to save the search with criteria other than those ofcustomSearchUrl. A search saved that way is deleted; the message says whether the deletion was confirmed, and if it was not, gives the search'sidso 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: checknv.retrieveSavedSearchesbefore calling again, so you do not save it twice.