Skip to content

Import a LinkedIn search

POST
/api/v1/outreach/imports/search
curl --request POST \
--url https://digize.com/api/v1/outreach/imports/search \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: 5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69' \
--header 'x-api-key: <x-api-key>' \
--data '{ "accountId": "example", "api": "classic", "url": "example", "filters": { "keywords": "example", "title": "example", "company": "example", "locations": [ { "id": "example", "title": "example" } ], "network": [ 1 ], "seniority": [ "owner/partner" ] }, "max": 100, "listId": "example", "listName": "example" }'

Imports the people a LinkedIn people search finds into a list: by filters, or a pasted search url (a LinkedIn people search, or a Sales Navigator search, saved search or lead list), which overrides them. LinkedIn hands out the first 1,000 people of a search (2,500 on Sales Navigator, which needs an account with it). It reads in the background, within the account’s working hours and LinkedIn’s daily numbers (1,000 search results a day, 2,500 on Sales Navigator): follow it with outreach.imports.get.

Needs the outreach:write permission.

Idempotency-Key
string
>= 1 characters <= 255 characters

Makes the request safe to send again: for 24 hours the same key and request answer the first response without repeating the change.

Example

5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69
Media typeapplication/json
object
accountId
required

The LinkedIn account that reads (id in unipile.accounts.list): one you may send from.

string
>= 1 characters <= 64 characters
api

Which search: LinkedIn’s own, or Sales Navigator’s.

string
default: classic
Allowed values: classic sales_navigator
url
string
<= 4000 characters
filters
object
keywords
string
<= 200 characters
title

A job title they hold now.

string
<= 120 characters
company

A company they work at now, by name.

string
<= 120 characters
locations

Places, from outreach.search.locations.

Array<object>
<= 10 items
object
id
required
string
<= 40 characters
title
required
string
<= 200 characters
network

Connection degrees of the reading account: 1, 2 or 3.

Array
<= 3 items
seniority

Sales Navigator only.

Array<string>
<= 10 items
Allowed values: owner/partner cxo vice_president director experienced_manager entry_level_manager strategic senior entry_level in_training
max

The most people to bring in.

integer
default: 100 >= 1 <= 2500
listId

A static CRM list to add them to.

string
>= 1 characters <= 64 characters
listName

Or a name for a new list to make.

string
>= 1 characters <= 80 characters

Done

Media typeapplication/json
object
id
required
string
source
required

Post (a post’s engagers), search, csv or crm.

string
Allowed values: post search csv crm
label
required

What it imports, in words.

string
listId
required
string | null
listName
required
string | null
accountId
required
string | null
accountName
required
string | null
status
required
string
Allowed values: running done failed cancelled
expected
required

How many people the source holds, when it says.

number | null
done
required

People gone through so far.

number
counts
required
object
added
required

New contacts.

number
matched
required

People already contacts here.

number
skipped
required

People left out.

number
reasons
required

How many were left out for each reason.

Array<object>
object
reason
required
string
count
required
number
problems
required

The first 200 left out, and why.

Array<object>
object
who
required
string
reason
required
string
waitingUntil
required
Any of:
string format: date-time
waitReason
required
string | null
error
required
string | null
actorName
required
string
startedAt
required
string format: date-time
finishedAt
required
Any of:
string format: date-time

Example

{
"source": "post",
"status": "running"
}

What was sent isn’t valid (invalid).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

No key, or one that’s unknown, off or expired.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The key doesn’t have the permission this needs.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Nothing has that id (not_found).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

A request with the same Idempotency-Key is still running (conflict).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The Idempotency-Key was used with a different request.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Over the rate limit; see retry-after.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}