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

# Create contact

Creates or updates a contact

<br />

> 🚧 We apply API rate limiting, so use bulk calls where possible!
>
> If you're looking to import or update multiple contacts at once, then we highly recommend using [Bulk import contacts](https://marketing.developer.dotdigital.com/reference/bulk-import-contacts-collection) instead.
>
> It allows you to import a collection of contacts and has the benefit of being a single API call only, making it far less likely that your account will exceed its API calls per hour limit.

> 📘 Need to add contacts to an address book as well?
>
> The following methods can create/update a contact whilst adding them to an address book therefore saving time and API calls.
>
> Check out [Bulk import contacts](https://marketing.developer.dotdigital.com/reference/bulk-import-contacts-collection) when working on multiple contacts and [Add contact to address book](https://marketing.developer.dotdigital.com/reference/add-contact-to-address-book) when working with a single contact.

This operation creates a new contact or updates an existing contact within the account and adds it to the 'All contacts' address book.

Setting the OptInType to 'VerifiedDouble' will result in a double opt-in confirmation email being sent to the contact. The result will state that the contact's OptInType is 'Double' and Status is 'PendingOptIn'. These will only update to 'VerifiedDouble'  and 'Subscribed' respectively once the contact has clicked the link in the confirmation email, at which point they will be added to the account.

Note that it is possible to update an existing contact using this operation. A duplicate contact will *not* be created. If the contact already exists, then any data provided in your request that is already held for the contact will be overwritten and updated in the system.

<span class="callRateMedium" />

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Email contacts",
    "version": "2.0.1",
    "description": "Deprecated v2 endpoints for managing email contacts. Use this API to create,\nretrieve, update, and delete individual contacts; bulk-import contacts from a\nJSON collection or a base64-encoded file; record consent information and\nmarketing preferences; and query contacts by address-book membership, creation\ndate, or modification date. All endpoints in this spec are deprecated — new\nintegrations should use the v3 Contacts API instead."
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "x-samples-languages": [
    "curl",
    "csharp",
    "java",
    "javascript",
    "node",
    "python",
    "php",
    "ruby"
  ],
  "externalDocs": {
    "description": "Learn more about Dotdigital APIs",
    "url": "https://developer.dotdigital.com"
  },
  "servers": [
    {
      "url": "https://{region}-api.dotdigital.com",
      "variables": {
        "region": {
          "default": "r1",
          "enum": [
            "r1",
            "r2",
            "r3"
          ],
          "description": "The Dotdigital region id your account belongs to"
        }
      }
    }
  ],
  "security": [
    {
      "basicAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "paths": {
    "/v2/contacts": {
      "parameters": [
        {
          "in": "header",
          "name": "x-ddg-integration-token",
          "required": false,
          "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.co/docs/verified-integration-tracking) here.",
          "schema": {
            "type": "string",
            "pattern": "/^(?:\\{{0,1}(?:[0-9a-fA-F]){8}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){12}\\}{0,1})$/",
            "example": "5a96bc79-19a7-4544-973b-e2da0c9136f9"
          }
        }
      ],
      "post": {
        "summary": "Create contact",
        "deprecated": true,
        "description": "Creates or updates a contact",
        "operationId": "create-contact",
        "tags": [
          "Email contacts"
        ],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "description": "The email address of the contact"
                  },
                  "optInType": {
                    "type": "string",
                    "description": "The opt-in type of the contact",
                    "enum": [
                      "Unknown",
                      "Single",
                      "Double",
                      "VerifiedDouble"
                    ]
                  },
                  "emailType": {
                    "type": "string",
                    "description": "The email type of the contact",
                    "enum": [
                      "PlainText",
                      "Html"
                    ]
                  },
                  "dataFields": {
                    "type": "array",
                    "description": "Each contact data field is a key-value pair; the key is a string matching the data field name in Dotdigital",
                    "items": {
                      "properties": {
                        "key": {
                          "type": "string",
                          "description": "The key name"
                        },
                        "value": {
                          "type": "string",
                          "description": "The value associated with the key"
                        }
                      },
                      "required": [
                        "key",
                        "value"
                      ],
                      "type": "object"
                    }
                  }
                }
              },
              "examples": {
                "Request Example": {
                  "value": {
                    "email": "john.smith@emailsim.io",
                    "optInType": "Single",
                    "emailType": "Html",
                    "dataFields": [
                      {
                        "key": "FIRSTNAME",
                        "value": "John"
                      },
                      {
                        "key": "FULLNAME",
                        "value": "John Smith"
                      },
                      {
                        "key": "GENDER",
                        "value": "Male"
                      },
                      {
                        "key": "LASTNAME",
                        "value": "Smith"
                      },
                      {
                        "key": "POSTCODE",
                        "value": "N5 1DP"
                      }
                    ]
                  },
                  "summary": "Request Example"
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "default": 0,
                      "examples": [
                        100
                      ]
                    },
                    "email": {
                      "type": "string",
                      "examples": [
                        "john.smith@emailsim.io"
                      ]
                    },
                    "optInType": {
                      "type": "string",
                      "examples": [
                        "Single"
                      ]
                    },
                    "emailType": {
                      "type": "string",
                      "examples": [
                        "Html"
                      ]
                    },
                    "dataFields": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string",
                            "examples": [
                              "FIRSTNAME"
                            ]
                          },
                          "value": {
                            "type": "string",
                            "examples": [
                              "John"
                            ]
                          }
                        }
                      }
                    },
                    "status": {
                      "type": "string",
                      "examples": [
                        "Subscribed"
                      ]
                    }
                  }
                },
                "examples": {
                  "Result": {
                    "summary": "Result",
                    "value": {
                      "id": 100,
                      "email": "john.smith@emailsim.io",
                      "optInType": "Single",
                      "emailType": "Html",
                      "dataFields": [
                        {
                          "key": "FIRSTNAME",
                          "value": "John"
                        },
                        {
                          "key": "FULLNAME",
                          "value": "John Smith"
                        },
                        {
                          "key": "GENDER",
                          "value": "Male"
                        },
                        {
                          "key": "LASTNAME",
                          "value": "Smith"
                        },
                        {
                          "key": "LASTSUBSCRIBED",
                          "value": "2016-08-01 10:09:22"
                        },
                        {
                          "key": "POSTCODE",
                          "value": "N5 1DP"
                        }
                      ],
                      "status": "Subscribed"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
```

# Sibling pages

* [Create contact with consent](https://marketing.developer.dotdigital.com/reference/create-contact-with-consent.md)
* [Create contact with consent and preferences](https://marketing.developer.dotdigital.com/reference/create-contact-with-consent-and-preferences.md)
* [Bulk import contacts collection](https://marketing.developer.dotdigital.com/reference/bulk-import-contacts-collection.md)
* [Bulk import contacts](https://marketing.developer.dotdigital.com/reference/bulk-import-contacts.md)
* [Get contact import status](https://marketing.developer.dotdigital.com/reference/get-contact-import-status.md)
* [Get contact import report](https://marketing.developer.dotdigital.com/reference/get-contact-import-report.md)
* [Update contact with consent and preferences](https://marketing.developer.dotdigital.com/reference/update-contact-with-consent.md)
* [Delete contact](https://marketing.developer.dotdigital.com/reference/delete-contact.md)
* [Get contact](https://marketing.developer.dotdigital.com/reference/get-contact.md)
* [Get contact with consent](https://marketing.developer.dotdigital.com/reference/get-contact-with-consent.md)
* [Get contact address books](https://marketing.developer.dotdigital.com/reference/get-contact-address-books.md)
* [Get all contacts count](https://marketing.developer.dotdigital.com/reference/get-all-contacts-count.md)
* [Get contacts](https://marketing.developer.dotdigital.com/reference/get-contacts.md)
* [Get contacts created since date](https://marketing.developer.dotdigital.com/reference/get-contacts-created-since-date.md)
* [Get modified contacts since date](https://marketing.developer.dotdigital.com/reference/get-modified-contacts-since-date.md)
* [Update contact with consent](https://marketing.developer.dotdigital.com/reference/update-contact-with-consent-1.md)
* [Update contact](https://marketing.developer.dotdigital.com/reference/update-contact.md)