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

# Import contact collection

Imports a collection of contacts. Creates contacts if they do not exist and updates contacts if they do. This is an async operation and you will need to check when it is complete by calling **getImportStatus** <br><br>**Note:** It isn't possible to specify the value for the **contactId** field when creating a contact, so it is only used to check for a matching contact when specified.<br><br>**Note:** To create a new contact, its **identifiers** must contain **email** or **mobileNumber**. A contact cannot be created with only a custom identifier. If it has only a custom identifier, it is not imported, and **getImportStatus** shows it in **failures** with the failure code **Invalid Contact**.

<span class="callRateLow"></span>

<br />

This method allows you submit data in bulk and an asynchronous calling pattern:

![](https://files.readme.io/e009d26cb2065ae2bbf231c3265a31bec53e18cb462899ed2b2553bf61d91add-Contacts_Async_flow_import.drawio.png)

<br />

The method for polling for import job status is [Get import status](https://marketing.developer.dotdigital.com/reference/getimportstatus) and once complete also returns the import report showing what contacts were created, updated or failed; this is also when you can capture the **contactId** for each contact sent to Dotdigital Marketing.

> 📘 Phone numbers
>
> Phone numbers must be in international format ([E.164](https://en.wikipedia.org/wiki/E.164)); Google have a good library for reformatting phone number called [libphonenumber ](https://github.com/google/libphonenumber)which has been ported to most languages.

> 📘 Import limits
>
> Your JSON request body can be a maximum size of 50MB, therefore allowing a large number of contacts to be imported in a single call.
>
> Active contact imports are limited to 25. If you exceed this limit, you get the `Too many active imports` error.

> 🚧 Specifying `null` for a data fields value clears the field
>
> You must ensure that you only pass the fields you require to be updated for a contact.
>
> We interpret a field passed with a `null` value as an instruction to clear the value for that field.
>
> This only works with data fields in this call, **not identifiers**.

<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": {
      "put": {
        "summary": "Import contact collection",
        "description": "Imports a collection of contacts. Creates contacts if they do not exist and updates contacts if they do. This is an async operation and you will need to check when it is complete by calling **getImportStatus** <br><br>**Note:** It isn't possible to specify the value for the **contactId** field when creating a contact, so it is only used to check for a matching contact when specified.<br><br>**Note:** To create a new contact, its **identifiers** must contain **email** or **mobileNumber**. A contact cannot be created with only a custom identifier. If it has only a custom identifier, it is not imported, and **getImportStatus** shows it in **failures** with the failure code **Invalid Contact**.",
        "operationId": "importContacts",
        "parameters": [
          {
            "name": "x-ddg-integration-token",
            "in": "header",
            "description": "If you are a partner of Dotdigital and have a [verified integration](https://developer.dotdigital.com/docs/partner-integration-verification) then include your [integration tracking token](https://developer.dotdigital.com/docs/verified-integration-tracking) here.",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "5a96bc79-19a7-4544-973b-e2da0c9136f9"
            }
          }
        ],
        "requestBody": {
          "description": "Contact data collection",
          "content": {
            "application/json": {
              "schema": {
                "required": [
                  "contacts"
                ],
                "type": "object",
                "properties": {
                  "mergeOption": {
                    "type": "string",
                    "description": "Specify how the merging of new data with existing data is handled",
                    "example": "overwrite",
                    "enum": [
                      "overwrite",
                      "overwriteIfNotEmpty",
                      "overwriteIfEmpty"
                    ],
                    "default": "overwrite"
                  },
                  "contacts": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/contactRequest"
                    }
                  }
                }
              },
              "examples": {
                "updateDataAndIdentifiers": {
                  "summary": "Update a contact's data fields and identifiers",
                  "description": "Finds each contact by **email** and updates the data fields. The request also adds a mobile number and a custom identifier to each contact.<br><br>\n**Note:** The custom identifier (`loyaltyId` in this example) must already exist in your account.",
                  "value": {
                    "mergeOption": "overwrite",
                    "contacts": [
                      {
                        "matchIdentifier": "email",
                        "identifiers": {
                          "email": "amelia.thornbury@emailsim.io",
                          "mobileNumber": "447700900184",
                          "loyaltyId": "LOY-000184"
                        },
                        "dataFields": {
                          "FIRSTNAME": "Amelia",
                          "LASTNAME": "Thornbury",
                          "GENDER": "female",
                          "POSTCODE": "ZZ1 4AB"
                        }
                      },
                      {
                        "matchIdentifier": "email",
                        "identifiers": {
                          "email": "rohan.castellane@emailsim.io",
                          "mobileNumber": "447700900527",
                          "loyaltyId": "LOY-000527"
                        },
                        "dataFields": {
                          "FIRSTNAME": "Rohan",
                          "LASTNAME": "Castellane",
                          "GENDER": "male",
                          "POSTCODE": "ZZ9 7QD"
                        }
                      }
                    ]
                  }
                },
                "unsubscribeFromEmail": {
                  "summary": "Unsubscribe a contact from the email channel",
                  "description": "Finds the contact by **email** and sets the email channel status to **unsubscribed**. The contact's data fields, identifiers and other channels do not change.",
                  "value": {
                    "contacts": [
                      {
                        "matchIdentifier": "email",
                        "identifiers": {
                          "email": "marcus.oldacre@emailsim.io"
                        },
                        "channelProperties": {
                          "email": {
                            "status": "unsubscribed"
                          }
                        }
                      }
                    ]
                  }
                },
                "setEmailOpenTracking": {
                  "summary": "Set email open tracking for a contact",
                  "description": "Finds each contact and sets only the **openTracking** property of the email channel. The first contact allows open tracking and the second contact does not. The email subscription status does not change.",
                  "value": {
                    "contacts": [
                      {
                        "matchIdentifier": "email",
                        "identifiers": {
                          "email": "priya.halvorsen@emailsim.io"
                        },
                        "channelProperties": {
                          "email": {
                            "openTracking": "subscribed"
                          }
                        }
                      },
                      {
                        "matchIdentifier": "mobileNumber",
                        "identifiers": {
                          "mobileNumber": "447700900362"
                        },
                        "channelProperties": {
                          "email": {
                            "openTracking": "unsubscribed"
                          }
                        }
                      }
                    ]
                  }
                },
                "addConsentRecord": {
                  "summary": "Add a consent record to a contact",
                  "description": "Finds the contact by **email** and adds a marketing consent record that was captured on a sign-up form.<br><br>\n**Note:** Each consent record must include **text**, **dateTimeConsented**, **url**, **ipAddress** and **userAgent**. You can send a maximum of 5 consent records for each contact.",
                  "value": {
                    "contacts": [
                      {
                        "matchIdentifier": "email",
                        "identifiers": {
                          "email": "elodie.marchetti@emailsim.io"
                        },
                        "consentRecords": [
                          {
                            "text": "Yes, I would like to receive the monthly newsletter and special offers by email",
                            "dateTimeConsented": "2026-09-14T10:42:17Z",
                            "url": "https://www.example.com/newsletter/signup",
                            "ipAddress": "203.0.113.48",
                            "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36"
                          }
                        ]
                      },
                      {
                        "matchIdentifier": "email",
                        "identifiers": {
                          "email": "tobias.wrenfield@emailsim.io"
                        },
                        "consentRecords": [
                          {
                            "text": "Yes, I would like to receive the monthly newsletter and special offers by email",
                            "dateTimeConsented": "2026-09-15T18:05:52Z",
                            "url": "https://www.example.com/newsletter/signup",
                            "ipAddress": "2001:db8:85a3::8a2e:370:7334",
                            "userAgent": "Mozilla/5.0 (iPhone; CPU iPhone OS 17_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Mobile/15E148 Safari/604.1"
                          }
                        ]
                      }
                    ]
                  }
                },
                "updateDataIdentifiersAndLists": {
                  "summary": "Update a contact's data fields, identifiers and list membership",
                  "description": "Finds each contact by the custom identifier **loyaltyId**, updates the data fields and identifiers, and adds the contact to one or more lists. If the contact does not exist, it is created.<br><br>\n**Note:** The custom identifier and the list IDs must already exist in your account. The contact is added to the lists you specify; it is not removed from other lists.",
                  "value": {
                    "mergeOption": "overwriteIfNotEmpty",
                    "contacts": [
                      {
                        "matchIdentifier": "loyaltyId",
                        "identifiers": {
                          "loyaltyId": "LOY-000912",
                          "email": "hana.velloway@emailsim.io",
                          "mobileNumber": "447700900912"
                        },
                        "dataFields": {
                          "FIRSTNAME": "Hana",
                          "LASTNAME": "Velloway",
                          "GENDER": "female",
                          "LOYALTYTIER": "Gold"
                        },
                        "lists": [
                          345579,
                          345612
                        ]
                      },
                      {
                        "matchIdentifier": "loyaltyId",
                        "identifiers": {
                          "loyaltyId": "LOY-000433",
                          "email": "declan.ashworth@emailsim.io"
                        },
                        "dataFields": {
                          "FIRSTNAME": "Declan",
                          "LASTNAME": "Ashworth",
                          "GENDER": "male",
                          "LOYALTYTIER": "Silver"
                        },
                        "lists": [
                          345579
                        ]
                      }
                    ]
                  }
                },
                "mixedMatchIdentifiers": {
                  "summary": "Import contacts that use different match identifiers",
                  "description": "Finds the first contact by **email**, the second contact by **mobileNumber** and the third contact by **contactId**. The third contact gets a new email address.",
                  "value": {
                    "mergeOption": "overwrite",
                    "contacts": [
                      {
                        "matchIdentifier": "email",
                        "identifiers": {
                          "email": "jane.doe@emailsim.io"
                        },
                        "dataFields": {
                          "FIRSTNAME": "Jane",
                          "LASTNAME": "Doe",
                          "GENDER": "female"
                        }
                      },
                      {
                        "matchIdentifier": "mobileNumber",
                        "identifiers": {
                          "email": "john.doe@emailsim.io",
                          "mobileNumber": "447123123123"
                        },
                        "dataFields": {
                          "FIRSTNAME": "John",
                          "LASTNAME": "Doe",
                          "GENDER": "male"
                        },
                        "channelProperties": {
                          "email": {
                            "emailType": "html"
                          }
                        }
                      },
                      {
                        "matchIdentifier": "contactId",
                        "identifiers": {
                          "contactId": 123456,
                          "email": "my-new-email@emailsim.io"
                        }
                      }
                    ]
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Import processing",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "importId": {
                      "type": "string",
                      "example": "d7de900d-d337-43f6-b1e1-c8ec73e1a434"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/errorResponse"
                },
                "example": {
                  "errorCode": "contacts:badJson",
                  "description": "The request JSON is badly formed"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "429": {
            "description": "Too many import requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/errorResponse"
                },
                "example": {
                  "errorCode": "contacts:tooManyActiveImports",
                  "description": "Your import request cannot be accepted as too many imports are being processed for you account. Please wait for an import to complete and then resubmit."
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "preference": {
        "required": [
          "id",
          "isOptedIn"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "ID of the preference",
            "format": "int32",
            "example": 1
          },
          "isOptedIn": {
            "type": "boolean",
            "description": "Specify whether the contact is opted into this preference"
          }
        }
      },
      "consentRecord": {
        "required": [
          "dateTimeConsented",
          "ipAddress",
          "text",
          "url",
          "userAgent"
        ],
        "type": "object",
        "properties": {
          "text": {
            "minLength": 1,
            "type": "string",
            "description": "Consent text displayed to the contact",
            "example": "Yes, I would like to receive a monthly newsletter"
          },
          "dateTimeConsented": {
            "type": "string",
            "description": "ISO 8601 UTC timestamp for when the consent was obtained",
            "format": "date-time",
            "example": "2023-01-26T21:29:00Z"
          },
          "url": {
            "type": "string",
            "description": "URL the consent was obtained with",
            "format": "uri",
            "example": "http://www.example.com/signup"
          },
          "ipAddress": {
            "oneOf": [
              {
                "type": "string",
                "description": "IPv4 address of the contact the consent was obtained for",
                "format": "ipv4",
                "example": "129.168.0.2"
              },
              {
                "type": "string",
                "description": "IPv6 address of the contact the consent was obtained for",
                "format": "ipv6",
                "example": "2b01:1234:136:0:116f:3244:a476:d6b7"
              }
            ]
          },
          "userAgent": {
            "minLength": 1,
            "type": "string",
            "description": "User agent header of the browser used by the contact the consent was obtained for",
            "example": "Mozilla/5.0 (X11; OpenBSD i386) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36"
          }
        },
        "description": "Marketing consent records to be associated with the contact"
      },
      "consentRecordsToBeInserted": {
        "maxItems": 5,
        "minItems": 1,
        "type": "array",
        "description": "The marketing consent records to be associated with the contact",
        "items": {
          "$ref": "#/components/schemas/consentRecord"
        }
      },
      "baseContact": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "dataFields": {
                "type": "object",
                "additionalProperties": true,
                "description": "Addtional data fields for the contact",
                "example": {
                  "FIRSTNAME": "John",
                  "LASTNAME": "Doe",
                  "GENDER": "male"
                }
              }
            }
          },
          {
            "$ref": "#/components/schemas/channelProperties"
          },
          {
            "type": "object",
            "properties": {
              "lists": {
                "maxItems": 100,
                "minItems": 1,
                "type": "array",
                "description": "List IDs for the lists the contact should be added to",
                "items": {
                  "type": "integer",
                  "description": "Unique list id",
                  "format": "int32",
                  "example": 345579
                }
              },
              "preferences": {
                "minItems": 1,
                "type": "array",
                "description": "Preferences you want to opt the contact into. ***Note:** Only required for preferences and not preference categories*",
                "items": {
                  "$ref": "#/components/schemas/preference"
                }
              }
            }
          }
        ]
      },
      "baseContactRequest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/baseContact"
          },
          {
            "type": "object",
            "properties": {
              "consentRecords": {
                "$ref": "#/components/schemas/consentRecordsToBeInserted"
              }
            }
          }
        ]
      },
      "contactRequest": {
        "allOf": [
          {
            "required": [
              "identifiers",
              "matchIdentifier"
            ],
            "type": "object",
            "properties": {
              "matchIdentifier": {
                "type": "string",
                "description": "Specify which identifier in the provided `identifiers` should be used to match the contact to an existing record. This can be a custom identifier or a contact identifier of contactId, email or mobileNumber.",
                "example": "mobileNumber"
              },
              "identifiers": {
                "$ref": "#/components/schemas/contactRequestIdentifiers"
              }
            },
            "description": "The contact data"
          },
          {
            "$ref": "#/components/schemas/baseContactRequest"
          },
          {
            "$ref": "#/components/schemas/channelPropertiesWithResubscribe"
          }
        ]
      },
      "contactRequestIdentifiers": {
        "type": "object",
        "properties": {
          "contactId": {
            "$ref": "#/components/schemas/contactId"
          },
          "email": {
            "$ref": "#/components/schemas/email"
          },
          "mobileNumber": {
            "$ref": "#/components/schemas/mobileNumber"
          }
        },
        "additionalProperties": {
          "$ref": "#/components/schemas/additionalProperties"
        },
        "description": "Identifiers this contact can be referenced by. Use **contactId** only to match an existing contact; you cannot set or change it.",
        "example": {
          "contactId": 35212311,
          "email": "someone@emailsim.io",
          "mobileNumber": "447123123123",
          "myCustomId": "MYID_12345"
        }
      },
      "channelStatusUpdate": {
        "type": "string",
        "description": "The subscription status for the channel; if not specified it remains unaltered for existing contacts, and for new contacts this defaults to values defined in _Settings > Contacts > Mobile subscription_",
        "example": "subscribed",
        "enum": [
          "noSubscription",
          "subscribed",
          "unsubscribed",
          "suppressed"
        ]
      },
      "channelProperties": {
        "type": "object",
        "properties": {
          "channelProperties": {
            "type": "object",
            "properties": {
              "email": {
                "type": "object",
                "properties": {
                  "emailType": {
                    "type": "string",
                    "description": "Format the contact receives emails in.<br>\n* **New contacts, or contacts that do not have an email channel yet:** If not specified, this is set to **html**.\n* **Contacts that already have an email channel:** If not specified, the existing value remains unaltered.<br>\n***Note:** When you import a collection of contacts and one or more contacts in the collection specify **emailType**, then the contacts in the same collection that do not specify it are set to **html**. To keep the existing value, specify **emailType** for each contact, or do not specify it for any contact in the collection.*",
                    "example": "html",
                    "enum": [
                      "plainText",
                      "html"
                    ]
                  },
                  "optInType": {
                    "type": "string",
                    "description": "Email opt-in type for the contact.<br>\n* **New contacts, or contacts that do not have an email channel yet:** If not specified, this is set to **unknown**.\n* **Contacts that already have an email channel:** If not specified, the existing value remains unaltered.<br>\n***Note:** If you set this to **verifiedDouble**, or the account setting *Enforce double opt-in for all signups, including bulk uploads* is on, the contact is sent an email to confirm their subscription. Until the contact confirms, the email channel status is **pendingOptIn** and **optInType** remains **unknown**.*",
                    "example": "double",
                    "enum": [
                      "unknown",
                      "single",
                      "double",
                      "verifiedDouble"
                    ]
                  },
                  "status": {
                    "type": "string",
                    "description": "The subscription status for the email channel.<br>\n* **New contacts, or contacts that do not have an email channel yet:** If not specified, this is set to **subscribed**.\n* **Contacts that already have an email channel:** If not specified, the existing value remains unaltered.<br>\n***Note:** If you change the email address of an existing contact and the current email channel status is **subscribed**, **binned** or **deleted**, the status is set to **subscribed**. If the current status is **subscribed** and the account setting *Enforce double opt-in for all signups, including bulk uploads* is on, the status is set to **pendingOptIn** until the contact confirms.*",
                    "enum": [
                      "subscribed",
                      "unsubscribed",
                      "suppressed"
                    ]
                  },
                  "openTracking": {
                    "type": "string",
                    "description": "Specifies if you are allowed to track email opens for the contact.<br>\n* **New contacts, or contacts that do not have an email channel yet:** If not specified, this is set to **unknown** and no explicit opt-in or opt-out record is written.\n* **Contacts that already have an email channel:** If not specified, the existing value remains unaltered.",
                    "enum": [
                      "unknown",
                      "subscribed",
                      "unsubscribed"
                    ],
                    "default": "unknown"
                  }
                },
                "description": "The channel properties for email. All properties are optional. Specify only the properties you want to set. For contacts that already have an email channel, properties you do not specify remain unaltered."
              },
              "sms": {
                "type": "object",
                "properties": {
                  "status": {
                    "$ref": "#/components/schemas/channelStatusUpdate"
                  }
                },
                "additionalProperties": false,
                "description": "The channel properties for SMS/MMS"
              },
              "whatsApp": {
                "type": "object",
                "properties": {
                  "status": {
                    "$ref": "#/components/schemas/channelStatusUpdate"
                  }
                },
                "additionalProperties": false,
                "description": "The channel properties for WhatsApp"
              }
            },
            "additionalProperties": false,
            "description": "Properties associated with each channel for a contact. For example, message format or subscription status"
          }
        }
      },
      "channelPropertiesWithResubscribe": {
        "type": "object",
        "properties": {
          "channelProperties": {
            "type": "object",
            "properties": {
              "email": {
                "type": "object",
                "properties": {
                  "resubscribeOptions": {
                    "type": "object",
                    "properties": {
                      "resubscribeWithNoChallenge": {
                        "type": "boolean",
                        "description": "Set to **true** to resubscribe the contact without sending a resubscription confirmation email. If not specified, this is set to **false**, so the contact is sent a resubscription confirmation email.",
                        "default": false
                      },
                      "preferredLocale": {
                        "type": "string",
                        "description": "The language code for the language of the resubscription confirmation email. If not specified, the default locale of the account is used.<br><br>\n**Note:** Use the values exactly as listed. Some of them are not standard locale codes, for example **en-EN** for English and **se-SE** for Swedish.\n\n| Value | Language |\n|---|---|\n| `cs-CS` | Czech |\n| `da-DA` | Danish |\n| `de-DE` | German |\n| `el-EL` | Greek |\n| `en-EN` | English |\n| `es-ES` | Spanish (Spain) |\n| `es` | Spanish |\n| `fi-FI` | Finnish |\n| `fr-FR` | French |\n| `hu-HU` | Hungarian |\n| `it-IT` | Italian |\n| `nl-NL` | Dutch |\n| `nb-NO` | Norwegian Bokmål |\n| `pl-PL` | Polish |\n| `pt-PT` | Portuguese |\n| `ru-RU` | Russian |\n| `se-SE` | Swedish |\n| `sk-SK` | Slovak |\n| `tr-TR` | Turkish |\n| `zh-CN` | Chinese (Simplified) |",
                        "enum": [
                          "cs-CS",
                          "da-DA",
                          "de-DE",
                          "el-EL",
                          "en-EN",
                          "es-ES",
                          "es",
                          "fi-FI",
                          "fr-FR",
                          "hu-HU",
                          "it-IT",
                          "nl-NL",
                          "nb-NO",
                          "pl-PL",
                          "pt-PT",
                          "ru-RU",
                          "se-SE",
                          "sk-SK",
                          "tr-TR",
                          "zh-CN"
                        ]
                      },
                      "redirectUrlAfterChallenge": {
                        "type": "string",
                        "description": "The URL to send the contact to after they confirm their resubscription. If not specified, the standard default redirect page is used.",
                        "format": "uri",
                        "example": "https://somedomain.io/some/page"
                      }
                    },
                    "description": "Options for resubscribing the email channel of a contact. A resubscription is only triggered when you specify **resubscribeOptions**; if you do not specify it, no resubscription occurs."
                  }
                }
              }
            }
          }
        }
      },
      "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"
                }
              }
            }
          }
        }
      },
      "contactId": {
        "minimum": 0,
        "type": "integer",
        "description": "Immutable unique identifier for the contact",
        "example": 35212311
      },
      "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
      }
    },
    "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)
* [Get the status of a contacts import request](https://marketing.developer.dotdigital.com/reference/getimportstatus.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)