Skip to content

Import prospects from the CRM

POST
/api/v1/outreach/imports/crm
curl --request POST \
--url https://digize.com/api/v1/outreach/imports/crm \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: 5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69' \
--header 'x-api-key: <x-api-key>' \
--data '{ "fromListId": "example", "filter": { "search": "example", "stage": [ "lead" ], "source": [ "checkout" ], "ownerId": [ "example" ], "tag": [ "example" ], "tagMode": "any", "excludeTag": [ "example" ], "companyId": "example", "fields": { "additionalProperty": [ "example" ] }, "conditions": [ { "key": "example", "op": "is", "value": "example" } ], "scoreMin": 1, "scoreMax": 1, "activeWithinDays": 1, "inactiveForDays": 1, "createdWithinDays": 1, "newsletter": [ { "kind": "status", "in": [ "pending" ] } ] }, "listId": "example", "listName": "example" }'

Adds the contacts of a CRM list (fromListId) or a filter (the same as crm.contacts.list’s) who have a LinkedIn profile to an Outreach list; those without one are left out and counted. It reaches every contact the list or filter takes, so a member whose role shows them only some contacts can’t run it. It runs in the background: 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
fromListId
string
>= 1 characters <= 64 characters
filter
object
search
string
<= 200 characters
stage
Array<string>
Allowed values: lead customer repeat
source
Array<string>
Allowed values: checkout form booking import manual message google_ads google_local_services lead_ad
ownerId
Array<string>
<= 50 items
tag
Array<string>
<= 50 items
tagMode

Whether a contact needs any of the tags (the default) or all of them.

string
Allowed values: any all
excludeTag

Leaves out contacts with any of these tags.

Array<string>
<= 50 items
companyId
string
>= 1 characters <= 64 characters
fields

Dropdown fields’ options to match, by field key.

object
key
additional properties
Array<string>
conditions

Custom field conditions, all of which must hold. gt and lt compare numbers, money (in minor units) and dates.

Array<object>
<= 20 items
object
key
required

A contact custom field’s key.

string
<= 40 characters
op
required
string
Allowed values: is is_not contains set not_set gt lt
value
Any of:
string
<= 200 characters
scoreMin

Lead score at least this.

integer
>= -9007199254740991 <= 9007199254740991
scoreMax

Lead score at most this.

integer
>= -9007199254740991 <= 9007199254740991
activeWithinDays

Something happened with them in the last this many days.

integer
>= 1 <= 3650
inactiveForDays

Nothing has happened with them for at least this many days.

integer
>= 1 <= 3650
createdWithinDays
integer
>= 1 <= 3650
newsletter

Newsletter conditions, all of which must hold: subscription state, engagement stars, opened or clicked lately, signup source, form, UTM tag, country.

Array
<= 20 items
One of:
object
kind
required
string
Allowed value: status
in
required

Their subscription is in one of these states; none for contacts never on the list.

Array<string>
>= 1 items <= 4 items
Allowed values: pending subscribed unsubscribed none
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"
}
}