Skip to main content
Import contacts from a file

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Body

application/json
dataDelimiter
string

Character separating the columns of a CSV file. Ignored for JSON.

Example:

","

escapeChar
string

Character that escapes a quote inside a quoted CSV field. Ignored for JSON.

Example:

"\""

fileEncoding
string

Character encoding the file is written in. Wrong encoding shows up as mangled accented characters rather than as an error.

Example:

"utf8"

fileHash
string | null

Hash of the file to read, as returned when the file was uploaded.

Minimum string length: 1
Pattern: ^[a-z0-9]+$
Example:

"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj"

mapping
object

Translation from the field names the file uses to the property names of the imported records - key is the name in the file, value the target property. Needed only where the two differ; run the matching preview endpoint to see what the file actually carries.

Example:

Response

Returns how many records were imported and how many were rejected.

failed
integer

Number of records the database refused to store. Records that fail earlier, while the file is being read, abort the whole import instead of being counted here.

Example:

3

successful
integer

Number of records that were imported.

Example:

42