A valid request URL is required to generate request examples{
"_id": "<string>",
"aiMappingSuggestions": [
{
"csvColumn": "<string>",
"fieldId": "<string>"
}
],
"fileName": "<string>",
"firstTenRecords": [
[
"<string>"
]
],
"headers": [
"<string>"
],
"lists": [
"<string>"
],
"mapping": [
"<string>"
],
"mappingResult": {
"error": "<string>",
"keys": {
"duplicated": 123,
"existing": 123,
"new": 123
},
"rowsToImport": 123,
"rowsWithErrors": 123,
"skippedRows": 123,
"tags": {
"existing": 123,
"list": [
"<string>"
],
"new": 123
}
},
"result": {
"bounced": 123,
"existing": 123,
"existingUpdated": 123,
"failed": 123,
"new": 123,
"unsubscribed": 123
},
"settings": {
"dateFormat": "MM/DD/YYYY",
"decimalSeparator": ".",
"overwrite": true,
"requiredFields": true,
"unsubscribe": true
},
"status": "UPLOADING",
"tags": [
"<string>"
],
"totalRecords": 123
}Get an import
The full state of an import: the file preview, the mapping and its result, the options, and the result once it has run.
A valid request URL is required to generate request examples{
"_id": "<string>",
"aiMappingSuggestions": [
{
"csvColumn": "<string>",
"fieldId": "<string>"
}
],
"fileName": "<string>",
"firstTenRecords": [
[
"<string>"
]
],
"headers": [
"<string>"
],
"lists": [
"<string>"
],
"mapping": [
"<string>"
],
"mappingResult": {
"error": "<string>",
"keys": {
"duplicated": 123,
"existing": 123,
"new": 123
},
"rowsToImport": 123,
"rowsWithErrors": 123,
"skippedRows": 123,
"tags": {
"existing": 123,
"list": [
"<string>"
],
"new": 123
}
},
"result": {
"bounced": 123,
"existing": 123,
"existingUpdated": 123,
"failed": 123,
"new": 123,
"unsubscribed": 123
},
"settings": {
"dateFormat": "MM/DD/YYYY",
"decimalSeparator": ".",
"overwrite": true,
"requiredFields": true,
"unsubscribe": true
},
"status": "UPLOADING",
"tags": [
"<string>"
],
"totalRecords": 123
}Response
The import
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.
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.
UPLOADING, UPLOADED, MAPPING, MAPPED, RUNNING, SUCCEEDED, FAILED, ABORTED