Skip to main content
GET
Error

Authorizations

X-API-Key
string
header
required

API key authentication

Path Parameters

importId
string<mongo-id>
required

Id of the import, as returned by the upload

Response

The import

_id
string

Id of the import

aiMappingSuggestions
object[]

Suggested matches between file columns and contact fields, one entry per column a field could be matched to. To use one, put field_<fieldId> (or key when fieldId is key) at that column's position in the mapping.

fileName
string

Original name of the uploaded file

firstTenRecords
string[][]

The first ten data rows, each as an array of cell values in column order

headers
string[]

Column headers of the uploaded file, in file order

lists
string<mongo-id>[]

Ids of lists to add every imported contact to

mapping
string[]

One entry per file column, in column order, so the list must have exactly as many entries as the file has columns: key for the contact key (email) column (exactly one), field_<fieldId> for a contact-structure field, tag_<n> for a column whose values become tags (the number is ignored and reassigned in column order), or an empty string for a column to ignore. Any other value is treated as an empty string.

mappingResult
object

Outcome of applying the mapping; set once the import reaches MAPPED

result
object

Counts of what the import did; set while RUNNING and final once SUCCEEDED or FAILED

settings
object
status
enum<string>

Current status. An import moves through UPLOADING (file being parsed), UPLOADED (ready for a mapping), MAPPING (mapping being applied), MAPPED (ready to start), RUNNING, then SUCCEEDED or FAILED. ABORTED is set by an explicit abort or when a new import for the same contact structure is started with cancelIncomplete=true.

Available options:
UPLOADING,
UPLOADED,
MAPPING,
MAPPED,
RUNNING,
SUCCEEDED,
FAILED,
ABORTED
tags
string<mongo-id>[]

Ids of existing tags to apply to every imported contact

totalRecords
number

Number of data rows in the uploaded file