JavaScript SDK: swarmhit.accounts.salesNavigator.accountSearch(accountId, params?)
Search Sales Navigator for companies (accounts) on this sender's session and get the results directly. Pass free-text keywords, or a pasted Sales Navigator company search URL (url) for a filtered search; cursor pages (25 results a page). Any other link (a people search, a classic LinkedIn search, a Sales Navigator page with no search in it) is a 400 with code: invalid_search_url, and nothing is sent to LinkedIn. Needs a Sales Navigator seat on the account — otherwise 422 (409 when the account is not connected or can't be used right now).
Authorization
bearerAuth An API key created on the Access tokens page.
In: header
Path Parameters
Query Parameters
Free-text company search. Provide this or url.
A Sales Navigator company search URL, as the browser shows it on an account search: https://www.linkedin.com/sales/search/company?query=… (/sales/search/companies too). Its filters, in query, are used as-is. Pasted without https://, or with http://, it is read as the https page. Given with keywords, the URL is the one that runs. 4,000 characters at most. To import people from a people search, use POST /lead-imports.
length <= 4000The previous response's nextCursor, to fetch the next page.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/accounts/string/sales-navigator/account-search"{ "data": [ { "id": "string", "name": "string", "industry": "string", "location": "string", "employeeCount": 0, "saved": true, "profileUrl": "string", "picture": "string" } ], "paging": { "total": 0, "nextCursor": "string" }}Look up a profile GET
**JavaScript SDK:** [`swarmhit.accounts.profiles.get(accountId, identifier)`](/smart-api/sdk/methods#accounts.profiles) Resolve a LinkedIn profile by its public identifier (the username in linkedin.com/in/<identifier>) from this sender account. A silent read — no profile view is registered.
Send a connection request POST
**JavaScript SDK:** [`swarmhit.accounts.connections.send(accountId, params)`](/smart-api/sdk/methods#accounts.connections) Send a LinkedIn connection request from this sender account to a profile, with an optional note. Notes are a premium feature of up to 300 characters (a longer note is a 400 and nothing is sent); free sender accounts can't include one, so their invites are sent without the note and the returned action has `note: null`. The profile is tracked as a lead and a connection.accepted webhook fires when it is accepted. Returns 409 when this sender already has a pending invitation to the profile from an earlier direct request (invitations sent by campaigns are not checked), or 429 when the sender hit its daily cap, its weekly connection-request limit (a rolling 7 days, tier-based: 130 for free accounts, 150 for paid; admin-configurable) or its pending-invitation backlog (500 by default), unless the workspace has the limit bypass enabled.