Skip to main content
POST
/
actions
/
salesnavigator-search-company-employees
/
run
/
async
Run salesnavigator-search-company-employees action asynchronously
curl --request POST \
  --url https://api.edges.run/v1/actions/salesnavigator-search-company-employees/run/async \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "inputs": [
    {
      "sales_navigator_company_url": "<string>",
      "sales_navigator_profile_search_url": "<string>",
      "custom_data": {}
    }
  ],
  "parameters": {},
  "identity_ids": [
    "44444444-4444-4444-4444-444444444444"
  ],
  "identity_mode": "direct",
  "callback": {
    "url": "https://example.com/callback",
    "headers": {},
    "on": "all"
  }
}
'
{
  "run_id": 123,
  "run_uid": "<string>",
  "workspace_uid": "<string>",
  "user_uid": "<string>",
  "action_name": "<string>",
  "status": "pending",
  "postponed_until": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}
To run LinkedIn actions, you must first create an identity and connect a LinkedIn account, either using our Chrome Extension, username/password login, or Managed Accounts for a hassle-free setup.
Async action calls automatically handle pagination through the X-AUTO-PAGINATE header, iterating over all pages of results and sending batches to your callback URL. You can limit the total number of results with the parameters.max_results param (see “Body” section).
Callback Delivery: Both async and schedule modes deliver results via the callback URL provided in your request.Consistent Format: All execution modes use the same action logic, so inputs and results are identical regardless of mode.Error Handling: Errors follow the standard API error format.
Using async and schedule modes, you have to implement some kind of callback management. Be sure to check the Managing Callbacks guide to better understand how it works and what your can do.

Inputs

  • sales_navigator_company_url or linkedin_company_id— Identifies the company whose employees you want to search.
  • sales_navigator_profile_search_url(optional) is a Sales Navigator people search URL (https://www.linkedin.com/sales/search/people...) to reuse an existing search. When provided, the action applies the filters (and optionally keywords) from that URL to the company’s employees.
When you pass sales_navigator_profile_search_url:
  1. The action force the current_company filter in the request with the company id.
  2. It merges the query= from your people search URL with the base query.
  3. Keywords from the people search are kept or added if not already in the base query.
When to use sales_navigator_profile_search_url: If you provide this URL, the action relies mainly on the filters from that URL. Use it to reuse a saved or existing people search and apply it to the company’s employees.

Notes

  • Maximum results : up to 2,500 results.
  • Various filters are supported, including exclusion fields (e.g. function_excluded, geography_excluded, current_job_title_excluded) and exclusion booleans (exclude_saved_leads, exclude_viewed_leads, etc.). See the API schema for the full list.

Authorizations

X-API-Key
string
header
required

Body

application/json
inputs
object[]
required
Required array length: 1 - 100000 elements
parameters
object
identity_ids
string<uuid>[] | null

An array of Identity UUIDs linked to identities (e.g. LinkedIn) used to execute the Action. You must provide at least one valid UID with access to the integration. Do not use account_uid values — only user_uid is supported.

Example:
["44444444-4444-4444-4444-444444444444"]
identity_mode
enum<string> | null
default:direct

If "auto", the Action will use any identities from the current workspace (unless you have provided a list of identity_ids). "managed" will use the Edges pool of identities for an extra credit cost

Available options:
direct,
auto,
managed
callback
object

Response

Default Response

run_id
integer

The ID of the run.

run_uid
string

The UID of the run.

workspace_uid
string

The UID of the workspace.

user_uid
string

The UID of the user.

action_name
string

The name of the action.

status
enum<string>

The status of the run.

Available options:
pending,
running,
completed,
failed
postponed_until
string<date-time> | null

If the run is postponed, this field indicates when it will be retried.

created_at
string<date-time>

The date and time when the run was created.

updated_at
string<date-time> | null

The date and time when the run was last updated.