---
updatedAt: 2026-06-25T09:31:02.000Z
agentTools:
  projectIndex: https://marketing.developer.dotdigital.com/llms.txt
---

# Get the status of a contacts import request

Gets the status of a contacts import request and the results if available.<br><br>**Note:** When importing, contacts are created or updated but if any associated data sets fail to import then details of these are included in the **failures** results

<span class="callRateUnlimited"></span>

## Possible failure codes

The following table lists some of the possible failure codes that can be returned when a contact can't be imported in the `failureCode` field:

<br />

| Failure code           | Description                                                                                         |
| :--------------------- | :-------------------------------------------------------------------------------------------------- |
| ApiSchemaViolation     | The JSON passed for the contact was schema invalid                                                  |
| Blocker                |                                                                                                     |
| Duplicate              | You have passed a duplicate identifier                                                              |
| GloballySuppressed     | Globally Suppressed, so a barred identifier has been passed                                         |
| InvalidEmail           | The email address passed for the contact was not formatted correctly or contains invalid characters |
| InvalidContactId       | The contact ID was invalid; it must be a numeric integer                                            |
| InvalidPhoneNumber     | The phone number passed for the contact was not formatted correctly, needs to be E.164 format       |
| InvalidDomain          | The email address passed has an invalid domain section                                              |
| InvalidContact         | The JSON passed for the contact was schema invalid                                                  |
| InvalidAddressBookIds  | The list / address book IDs passed are unrecognized                                                 |
| InvalidMatchIdentifier | The match identifier passed is unrecognized                                                         |
| InvalidContactStatus   | The contact status passed is unrecognized                                                           |
| NoValidIdentifiers     | No valid identifiers were passed, so no action could be taken                                       |
| SuppressedByDomain     | The email address passed belongs to a domain that cannot be contacted                               |

<br />

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Contacts",
    "description": "Create, Get, update, and delete contacts. Use this API to look up contacts\nby identifier, perform full or partial updates on a single contact, bulk-import\ncollections of contacts asynchronously, and bulk-delete contacts. When listing\ncontacts you can filter by contact status, list subscription status, list\nmembership, segment, or creation and modification date. Each contact can carry\ndata fields, channel properties (email, SMS, WhatsApp), list memberships,\nmarketing preferences, and consent records.",
    "version": "3.5.0"
  },
  "externalDocs": {
    "description": "Learn more about Dotdigital APIs",
    "url": "https://developer.dotdigital.com"
  },
  "servers": [
    {
      "url": "https://{region}-api.dotdigital.com",
      "variables": {
        "region": {
          "description": "The Dotdigital region id your account belongs to",
          "enum": [
            "r1",
            "r2",
            "r3"
          ],
          "default": "r1"
        }
      }
    }
  ],
  "security": [
    {
      "basicAuth": []
    }
  ],
  "paths": {
    "/contacts/v3/import/{importId}": {
      "get": {
        "summary": "Get the status of a contacts import request",
        "description": "Gets the status of a contacts import request and the results if available.<br><br>**Note:** When importing, contacts are created or updated but if any associated data sets fail to import then details of these are included in the **failures** results",
        "operationId": "getImportStatus",
        "parameters": [
          {
            "name": "importId",
            "in": "path",
            "description": "The import id you want the status for",
            "required": true,
            "schema": {
              "type": "string",
              "example": "d7de900d-d337-43f6-b1e1-c8ec73e1a434"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "importId",
                    "status"
                  ],
                  "type": "object",
                  "properties": {
                    "importId": {
                      "type": "string",
                      "description": "The import id you want the status for",
                      "example": "d7de900d-d337-43f6-b1e1-c8ec73e1a434"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "Finished",
                        "NotFinished",
                        "RejectedByWatchdog",
                        "Failed",
                        "ExceedsAllowedContactLimit"
                      ]
                    },
                    "summary": {
                      "type": "object",
                      "properties": {
                        "newContacts": {
                          "type": "integer",
                          "description": "Number of new contacts added",
                          "format": "int32",
                          "example": 10
                        },
                        "updatedContacts": {
                          "type": "integer",
                          "description": "Number of contacts updated",
                          "format": "int32",
                          "example": 14
                        },
                        "globallySuppressed": {
                          "type": "integer",
                          "description": "Number of contacts that are suppressed at the account level, so can't be updated",
                          "format": "int32",
                          "example": 0
                        },
                        "invalidEntries": {
                          "type": "integer",
                          "description": "Number of contacts with invalid data, so can't be updated or created",
                          "format": "int32",
                          "example": 2
                        },
                        "duplicateIdentifiers": {
                          "type": "integer",
                          "description": "Number of contacts with a duplicate identifier, so can't be updated or created",
                          "format": "int32",
                          "example": 2
                        }
                      }
                    },
                    "created": {
                      "type": "array",
                      "description": "Contacts that were successfully created",
                      "items": {
                        "$ref": "#/components/schemas/contactReference"
                      }
                    },
                    "updated": {
                      "type": "array",
                      "description": "Contacts that were successfully updated",
                      "items": {
                        "$ref": "#/components/schemas/contactReference"
                      }
                    },
                    "failures": {
                      "type": "array",
                      "description": "Contacts that were not imported. **contactId** is included if the contact matched an existing contact, or if you sent it in the request.",
                      "example": [
                        {
                          "contactId": 35213007,
                          "identifiers": {
                            "email": "priya.halvorsen@emailsim.io",
                            "mobileNumber": "447700900362"
                          },
                          "failures": [
                            {
                              "failureCode": "Invalid Contact",
                              "description": "Cannot update: channel data belongs to another contact."
                            }
                          ]
                        },
                        {
                          "identifiers": {
                            "email": "",
                            "mobileNumber": "",
                            "loyaltyId": "LOY-000777"
                          },
                          "failures": [
                            {
                              "failureCode": "Invalid Contact",
                              "description": "Cannot update: A contact cannot be created with only custom identifiers."
                            }
                          ]
                        }
                      ],
                      "items": {
                        "required": [
                          "failures",
                          "identifiers"
                        ],
                        "type": "object",
                        "properties": {
                          "contactId": {
                            "$ref": "#/components/schemas/contactId"
                          },
                          "matchIdentifier": {
                            "maxLength": 50,
                            "minLength": 1,
                            "pattern": "(^[-A-Za-z0-9_]{1,50}$)",
                            "type": "string",
                            "description": "Which identifier in the provided `identifiers` was used to match the contact to an existing record. This can also include the name of a custom identifier.",
                            "example": "mobileNumber"
                          },
                          "identifiers": {
                            "$ref": "#/components/schemas/identifiers"
                          },
                          "failures": {
                            "type": "array",
                            "description": "Reasons the contact failed to import",
                            "items": {
                              "required": [
                                "description",
                                "failureCode"
                              ],
                              "type": "object",
                              "properties": {
                                "failureCode": {
                                  "type": "string",
                                  "description": "Unique failure code for this failure reason",
                                  "example": "invalidEmail"
                                },
                                "description": {
                                  "type": "string",
                                  "description": "Description of the reason for the failure",
                                  "example": "Invalid value for 'email'"
                                }
                              },
                              "description": "A failure reason"
                            }
                          }
                        },
                        "description": "Contact import failure summary"
                      }
                    }
                  }
                },
                "examples": {
                  "notFinished": {
                    "summary": "Import still in progress",
                    "description": "The import has not finished. Call **getImportStatus** again later. The response does not include **summary** until the import has finished.",
                    "value": {
                      "importId": "d7de900d-d337-43f6-b1e1-c8ec73e1a434",
                      "status": "NotFinished"
                    }
                  },
                  "finishedWithFailures": {
                    "summary": "Import finished with some contacts not imported",
                    "description": "An import of four contacts. One contact was created, one contact was updated and two contacts were not imported.<br><br>\n**Note:**\n* In **created** and **updated**, **identifiers** always contains **email** and **mobileNumber**, with an empty value if the contact does not have one. Custom identifiers are only included if you sent them.\n* In **failures**, **contactId** is included if the contact matched an existing contact, or if you sent it in the request.",
                    "value": {
                      "importId": "d7de900d-d337-43f6-b1e1-c8ec73e1a434",
                      "status": "Finished",
                      "summary": {
                        "newContacts": 1,
                        "updatedContacts": 1,
                        "globallySuppressed": 0,
                        "invalidEntries": 2,
                        "duplicateIdentifiers": 0
                      },
                      "created": [
                        {
                          "contactId": 35214388,
                          "identifiers": {
                            "email": "tobias.wrenfield@emailsim.io",
                            "mobileNumber": ""
                          }
                        }
                      ],
                      "updated": [
                        {
                          "contactId": 35212498,
                          "identifiers": {
                            "email": "marcus.oldacre@emailsim.io",
                            "mobileNumber": ""
                          }
                        }
                      ],
                      "failures": [
                        {
                          "contactId": 35213007,
                          "identifiers": {
                            "email": "priya.halvorsen@emailsim.io",
                            "mobileNumber": "447700900362",
                            "loyaltyId": "LOY-000362"
                          },
                          "failures": [
                            {
                              "failureCode": "Invalid Contact",
                              "description": "Cannot update: channel data belongs to another contact."
                            }
                          ]
                        },
                        {
                          "contactId": 35212311,
                          "identifiers": {
                            "email": "amelia.thornbury@emailsim.io",
                            "mobileNumber": "447700900185"
                          },
                          "failures": [
                            {
                              "failureCode": "Invalid Contact",
                              "description": "Cannot update a suppressed channel with a new identifier."
                            }
                          ]
                        }
                      ]
                    }
                  },
                  "onlyCustomIdentifier": {
                    "summary": "Import finished with a contact that has only a custom identifier",
                    "description": "The import had one new contact with only the custom identifier **loyaltyId**. A contact cannot be created without an email address or mobile number, so the contact is in **failures**. When no contacts were created or updated, **created** and **updated** are empty arrays.",
                    "value": {
                      "importId": "188eb627-df77-4130-a3cf-06440365d065",
                      "status": "Finished",
                      "summary": {
                        "newContacts": 0,
                        "updatedContacts": 0,
                        "globallySuppressed": 0,
                        "invalidEntries": 1,
                        "duplicateIdentifiers": 0
                      },
                      "created": [],
                      "updated": [],
                      "failures": [
                        {
                          "identifiers": {
                            "email": "",
                            "mobileNumber": "",
                            "loyaltyId": "LOY-000777"
                          },
                          "failures": [
                            {
                              "failureCode": "Invalid Contact",
                              "description": "Cannot update: A contact cannot be created with only custom identifiers."
                            }
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/errorResponse"
                },
                "example": {
                  "errorCode": "contacts:invalidId",
                  "description": "The id value '123646' is invalid for the identifier 'email'"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Import request not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/errorResponse"
                },
                "example": {
                  "errorCode": "contacts:importNotFound",
                  "description": "The import request 'd7de900d-d337-43f6-b1e1-c8ec73e1a434' could not be found!"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "errorResponse": {
        "required": [
          "description",
          "errorCode"
        ],
        "type": "object",
        "properties": {
          "errorCode": {
            "type": "string",
            "description": "Unique error code"
          },
          "description": {
            "type": "string",
            "description": "Description of the issue"
          },
          "details": {
            "type": "array",
            "items": {
              "required": [
                "description",
                "item"
              ],
              "type": "object",
              "properties": {
                "item": {
                  "type": "string",
                  "description": "Item the error is associated with, for example, field name, unique identifier for an entity or item in batch"
                },
                "description": {
                  "type": "string",
                  "description": "Description of the error"
                }
              }
            }
          }
        }
      },
      "contactReference": {
        "required": [
          "contactId",
          "identifiers"
        ],
        "type": "object",
        "properties": {
          "contactId": {
            "$ref": "#/components/schemas/contactId"
          },
          "identifiers": {
            "$ref": "#/components/schemas/identifiers"
          }
        },
        "description": "Contact reference"
      },
      "contactId": {
        "minimum": 0,
        "type": "integer",
        "description": "Immutable unique identifier for the contact",
        "example": 35212311
      },
      "identifiers": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "description": "Contact email address",
            "nullable": true,
            "example": "someone@emailsim.io"
          },
          "mobileNumber": {
            "type": "string",
            "description": "Contact phone number in [E.164 format](https://en.wikipedia.org/wiki/E.164)",
            "nullable": true,
            "example": "447123123123"
          }
        },
        "additionalProperties": {
          "type": "string",
          "description": "Any additional custom identifiers. Property names must match one of the custom identifiers that exists in the account.",
          "nullable": true
        },
        "description": "Identifiers this contact can be referenced by",
        "example": {
          "email": "someone@emailsim.io",
          "mobileNumber": "447123123123",
          "myCustomId": "MYID_12345"
        }
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "x-ddg-notes": "This version corrects the schema and documentation for importing contacts and for email channel properties. The changes are additive; the API behaviour does not change.\n* **importContacts:** Added request examples for these use cases: update data fields and identifiers, unsubscribe from email, set email open tracking, add a consent record, and update data fields, identifiers and list membership.\n* **getContacts:** Added response examples: key details only, selected data fields with lists and preferences, a page with a next link, contacts modified since the last poll, and modified contacts in a list or a segment.\n* **importContact:** Added request examples for the same use cases, and an example to resubscribe a contact to email. Added request examples that create and then update a contact, with their 201 and 200 response examples. The description now states that a new contact needs **identifiers.email** or **identifiers.mobileNumber** in the request body, and a 400 example shows the error.\n* **deleteContacts:** Each item must now contain exactly one identifier. Items that use **email** or **mobileNumber** are now valid against the schema. Added a request example and corrected the 400 error example.\n* **getImportStatus:** Added response examples, including a contact that has only a custom identifier. **matchIdentifier** is no longer required in **failures**, because the API does not return it. Replaced the failures example.\n* **Contact responses:** The email, SMS and WhatsApp channel status values now match the values the API returns. A deleted channel is not included in **channelProperties**.\n* **getContact:** Added examples for each identifier type in the path, and response examples for a full contact and for a contact whose mobile number was deleted.\n* **replaceContact:** Added examples for each identifier type in the path, request examples to replace data and lists and to remove a mobile number, and a response example.\n* **deleteContact:** Added examples for each identifier type in the path, and a response example.\n* **getContact, replaceContact and deleteContact:** Corrected the 404 error examples to match the API.\n* **getDeleteStatus:** Added response examples. Corrected the 404 response, which described an import request in place of a delete job.\n* **createContact:** Added request examples: email address only, a full profile with channels, lists, preferences and consent, verified double opt-in, and mobile number only. Added a 201 response example. Corrected the 409 error example. The description now states that the request must contain **email** or **mobileNumber**, and a 400 example shows the error.\n* **importContacts:** The description now states that a new contact needs **email** or **mobileNumber** in its identifiers, and the failure the import reports if it does not.\n* **importContacts:** Contacts that match on **contactId** are now valid against the schema. The request uses the new **contactRequestIdentifiers** schema, where **contactId** is an integer.\n* **Email channel properties:** **emailType**, **optInType**, **status** and **openTracking** are no longer required. The descriptions now give the default for contacts that do not have an email channel yet, and the behaviour for contacts that already have one.\n* **Email channel properties:** **resubscribeOptions** can now be sent together with the other email channel properties.\n* **resubscribeWithNoChallenge:** The default is now **false**, which agrees with the API behaviour.\n* **Contact responses:** Email channel properties now pass validation. **emailType** and **optInType** values are now camelCase (for example **html** and **single**), which agrees with the API. **openTracking** is now included and is always returned. The request channel properties schema is no longer applied to responses, so all email and SMS statuses and the SMS **countryCode** are now valid.\n* **Contact responses:** Consent records and preferences now pass validation. Preferences require **publicName** and **privateName**, which the API returns, in place of the undefined **name** property.\n* **x-ddg-integration-token:** The header now uses **format: uuid** in place of a pattern that rejected every value. Send the token as a UUID without braces.\n* **Contact responses:** The **created**, **updated** and consent record **dateTimeCreated** descriptions now state the formats the API returns. The **preferences** and **consentRecords** arrays can now be empty or not included.\n* **Deleted contacts:** The descriptions now explain when **email** and **mobileNumber** have the value **deleted**.\n* **replaceContact:** The description now states that email channel properties you do not specify remain unaltered.",
  "x-samples-languages": [
    "curl",
    "csharp",
    "java",
    "javascript",
    "node",
    "python",
    "php",
    "ruby"
  ]
}
```

# Sibling pages

* [Get contacts based on your criteria](https://marketing.developer.dotdigital.com/reference/getcontacts-1.md)
* [Import contact collection](https://marketing.developer.dotdigital.com/reference/importcontacts-1.md)
* [Get a contact by an identifier](https://marketing.developer.dotdigital.com/reference/getcontact.md)
* [Get the status of a delete contacts job](https://marketing.developer.dotdigital.com/reference/getdeletestatus.md)
* [Delete multiple contacts](https://marketing.developer.dotdigital.com/reference/deletecontacts.md)
* [Create a contact](https://marketing.developer.dotdigital.com/reference/createcontact-1.md)
* [Replace a contact](https://marketing.developer.dotdigital.com/reference/replacecontact.md)
* [Deletes a contact using a specific identifier](https://marketing.developer.dotdigital.com/reference/deletecontact-1.md)
* [Import a single contact](https://marketing.developer.dotdigital.com/reference/importcontact.md)