Skip to content

Import prospects from a CSV

POST
/api/v1/outreach/imports/csv
curl --request POST \
--url https://digize.com/api/v1/outreach/imports/csv \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: 5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69' \
--header 'x-api-key: <x-api-key>' \
--data '{ "filename": "example", "csv": "example", "preset": "csv", "mapping": [ "example" ], "listId": "example", "listName": "example" }'

Imports prospects from a CSV with a header row, such as Expandi’s export (preset, worked out from the header when left out), each column given a target by mapping (by its place; suggested from the header when left out): profile_url, first_name, last_name, name, email, phone, headline, company, location, picture, or empty to leave it out. Every row needs a LinkedIn profile URL. People are matched to contacts on their LinkedIn profile, then email or phone. 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
filename
required
string
>= 1 characters <= 200 characters
csv
required
string
>= 1 characters <= 10000000 characters
preset
string
Allowed values: csv expandi
mapping
Array<string>
<= 200 items
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"
}
}