> ## Documentation Index
> Fetch the complete documentation index at: https://docs.messagedesk.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create, Delete & Import Contacts

> Create, delete, and import MessageDesk contacts one at a time or in bulk via CSV. Covers required formats, validation rules, and import limits.

# Add individual contacts one-by-one, or import many via CSV

You can create a single contact or bring in thousands at once with a CSV. Here's how, and the limits to avoid errors.

> [!NOTE]
>
> **Need to export your contacts?** Go to **Settings → Data & Integrations → [Export](https://docs.messagedesk.com/settings/workspace-settings/data-center.md#export)** and click **Start Export** on the **Export Contacts** card for a full CSV dump of every contact in your workspace.

***

## Add an individual contact

### 1. Go to **Contacts**

Click **+ Add Contact**. On desktop, this opens a dialog where you can create the contact without leaving the page.

![Contacts Add Contact](https://mintcdn.com/messagedesk/SGNksXxbonY6erUh/images/contacts-add-contact.png?fit=max\&auto=format\&n=SGNksXxbonY6erUh\&q=85\&s=7c175a80c7e8d24329dd103559dc0e2c)

> [!NOTE]
>
> On mobile, clicking **+ Add Contact** navigates to a separate page instead of opening a dialog.

### 2. Enter details

Add **First name**, **Last name**, and **Phone**, then click **+ Create Contact**.

> [!NOTE]
>
> First name, last name, and phone number are **required when creating contacts**. Phone numbers without names are treated as **anonymous contacts** until you add contact details later.

> [!WARNING]
>
> If the phone number already belongs to another contact, you'll see an error. Phone numbers are **unique identifiers** in MessageDesk (one number → one contact). A single contact can have **multiple** numbers.

![Contacts Create Contact](https://mintcdn.com/messagedesk/SGNksXxbonY6erUh/images/contacts-create-contact.png?fit=max\&auto=format\&n=SGNksXxbonY6erUh\&q=85\&s=3231c6f9b033a8f76ebdf639b838f681)

### 3. View and edit the contact

From the contact panel, you can:

1. Add additional phone numbers.
2. Copy the contact's number.
3. Send a message from the Inbox.
4. Unlink ("delete") a number from the profile.
5. Block the contact from messaging your workspace.
6. Manage the contact's billing and shipping addresses.

> [!WARNING]
>
> Changing a contact's primary phone may **unlink** past conversations from the profile.

![Contacts Profile View](https://mintcdn.com/messagedesk/uRc0J8xB9CMbgX1M/images/contacts-profile-view.png?fit=max\&auto=format\&n=uRc0J8xB9CMbgX1M\&q=85\&s=68a0057e5a475ad9b48e381d786e9560)

### Manage addresses

The contact profile shows the contact's **Default Billing** and **Default Shipping** addresses.

1. Open the contact profile from the [Inbox](https://docs.messagedesk.com/inbox/overview.md) or **Contacts** module.
2. Click the **Default Billing** or **Default Shipping** value. A dialog opens with all of the contact's addresses.
3. In the dialog, you can:
   * View the contact's saved addresses.
   * Add a new address.
   * Edit or delete an existing address.
   * Set which address is the default billing address and which is the default shipping address.

> [!NOTE]
>
> A contact can have only one default billing address and one default shipping address at a time. Setting a new default replaces the previous one.

***

## Delete or edit a contact

To permanently remove a contact from your workspace:

1. Go to **Contacts**.
2. Find and select the contact(s) you want to delete.
3. Select your **items per page** (25, 50, 100, or 250)
4. Hover and click to select individual contacts or multiselect the entire page
5. Click the **vertical ellipse icon** to delete an individual contact.
6. Confirm the deletion or edit when prompted.

> [!WARNING]
>
> Deleting a contact is **permanent** and can't be undone. MessageDesk preserves the contact's conversation history, but it appears as an anonymous contact.

> [!TIP]
>
> Bulk deletes are processed as a single batch request. Contacts are removed from the list as the deletion completes, and a confirmation shows the total number of contacts deleted.

![Contacts Multi Select](https://mintcdn.com/messagedesk/n-Jkz4LLlCd4qCH7/images/contacts-multi-select.png?fit=max\&auto=format\&n=n-Jkz4LLlCd4qCH7\&q=85\&s=81943aaa1d73240c11b480324fed626f)

### Sort contacts

Click the **Sort** dropdown menu above the contacts list to change the sort order. Available sort options include:

* **Alphabetical by first name (A–Z)**
* **Alphabetical by last name (A–Z)**
* **Newest:** most recently added or updated contacts at the top
* **Oldest:** oldest contacts at the top

> [!NOTE]
>
> Sort is a **dropdown menu** (not a toolbar). Open the menu, pick an option, and the contacts list re-orders immediately.

### Search contacts

The search bar appears **only on filtered Contact views** ([saved filters](https://docs.messagedesk.com/contacts/saved-filters.md) or any applied filter). To search, first apply or open a saved filter, then use the search bar to find contacts within that view.

> [!NOTE]
>
> The search bar **isn't available on All Contacts**. Use a filter or saved filter to search a specific subset of your contacts.

***

## Filter contacts

Filters have moved to their own page. Build filters from criteria and conditions, save them as reusable views, and message everyone in a saved filter at once.

See [Saved filters](https://docs.messagedesk.com/contacts/saved-filters.md).

***

## Import contacts in bulk via CSV

Upload contact lists in bulk when you have a large amount of contact information to bring into MessageDesk.

### CSV limits and requirements (read first)

> [!NOTE]
>
> **TL;DR**
>
> * **Row count:** up to **5,000 rows** per CSV (hard limit)
> * **File size:** up to **10 MB**
> * **Platform:** **Web-only** (imports aren't supported on mobile/desktop apps)
> * **Format:** must use **.csv** files **with a header row**. UTF-8 encoding is preferred. MessageDesk strips a byte order mark (BOM) and other invalid bytes automatically
> * **Required per row:** **Phone**. Email, first name, and last name are optional

> [!WARNING]
>
> **Your CSV must:**
>
> * Include a **header row** (first line in .csv file).
> * Use **consistent columns** on every row (same number of columns as the header).
> * Include a **Phone** number on every row.
> * Preferred: Use **E.164** format for phone number formatting (e.g., `+15551234567`).

> [!TIP]
>
> Download: [**Make a copy of our sample contact import .csv template here**](https://docs.google.com/spreadsheets/d/1P8JIfQngIJnMRo5cfCEf8gdxvIKpzmoeLEAfImYII58/copy).

### 1. Go to **Contacts** → **Import Contacts**

Click **Import Contacts**.

> [!NOTE]
>
> **Note:** You can also access the contact import feature from **Settings → Workspace Settings → [Data & Integrations](https://docs.messagedesk.com/settings/workspace-settings/data-center.md)**

![Contacts Import](https://mintcdn.com/messagedesk/SGNksXxbonY6erUh/images/contacts-import.png?fit=max\&auto=format\&n=SGNksXxbonY6erUh\&q=85\&s=f60265c85d52716d1b87139bb777187f)

### 2. Select your .CSV

Select a `.csv` file from your computer or make a copy of our [**shared Google Sheet (MessageDesk Contact Import Template)**](https://docs.google.com/spreadsheets/d/1P8JIfQngIJnMRo5cfCEf8gdxvIKpzmoeLEAfImYII58/copy)

> [!NOTE]
>
> **Note:** The file picker only accepts .**CSV type files**.

![Contacts Import Dialog](https://mintcdn.com/messagedesk/SGNksXxbonY6erUh/images/contacts-import-dialog.png?fit=max\&auto=format\&n=SGNksXxbonY6erUh\&q=85\&s=d00743297b2d540c31255dff52f6bc71)

### 3. Identify contacts by mapping properties in MessageDesk to columns in your file

You can adjust the field mapping manually, but in most cases, fields will auto-map when column names match properties in MessageDesk.

Click **+ Add Custom Field** to map [custom fields](https://docs.messagedesk.com/settings/workspace-settings/custom-fields.md) from your .csv file to custom fields in MessageDesk.

> [!NOTE]
>
> **A contact can have multiple phones, emails, and addresses.** Map each column (for example, `mobile`, `work_phone`, `email_home`, `email_work`, `address_billing`, `address_shipping`) to its own field. All values attach to the same contact record instead of creating duplicates.

> [!WARNING]
>
> **Note:** Phone is the only required property for every contact uploaded to MessageDesk. Email, first name, and last name are optional.

![Contacts Identify](https://mintcdn.com/messagedesk/SGNksXxbonY6erUh/images/contacts-identify.png?fit=max\&auto=format\&n=SGNksXxbonY6erUh\&q=85\&s=f4aedf1d0b12c026d35d8e2cbb26fba1)

### 4. Fix duplicates and errors (preview step)

Click Preview Import to confirm that your fields are properly matched. MessageDesk validates your data and flags issues **before** import, showing which field in a row failed validation. Invalid rows are **skipped**.

![Clean Shot2025 08 26at12 18 42 Pn](https://mintcdn.com/messagedesk/wsLEbMmra6cOyiqj/images/CleanShot2025-08-26at12.18.42.png?fit=max\&auto=format\&n=wsLEbMmra6cOyiqj\&q=85\&s=1e3349e4d36e6ff99f05520ba0e91f5d)

***

## Validation rules and what we check

* **Phone**: required for every row. Must be in **E.164** format (e.g., `+15551234567`).
* **Email**: optional. When provided, must be a valid email address (`name@example.com`).
* **Encoding**: MessageDesk strips a byte order mark (BOM) and other invalid bytes while parsing, so files saved with a BOM or stray non-UTF-8 characters import instead of failing.
* **Custom fields**: must match defined **types** and constraints. See [custom fields](https://docs.messagedesk.com/settings/workspace-settings/custom-fields.md) for supported types.
* **Duplicates**: checked by **email** and **phone**. Matching contacts are **updated** rather than skipped (see [How duplicate updates work](#how-duplicate-updates-work)).

***

## How duplicate updates work

When an imported row matches an existing contact by **email** or **phone**, MessageDesk **updates** that contact instead of skipping the row:

* Updates only apply to columns you **mapped** in the import.
* A field is updated only when the mapped column has a **value** for that row. Empty values leave the existing field unchanged.
* Updates can apply to **standard fields** (first name, last name, email, phone, address, etc.) and **custom fields**.

***

## How imports run

* **Batching**: processed in batches up to **5,000** (aligned with the row limit).
* **Async processing**: large uploads are staged and processed on the server for reliability.
* **CSV only**: the importer accepts **.csv files**. Other formats aren't supported.

***

## Common errors and fixes

* **"CSV file is too large."**\
  Split your file so each CSV has **≤ 5,000 rows** and **≤ 10 MB**.
* **"CSV imports are only supported on the desktop web platform. Please use the web interface for importing contacts."**\
  Switch to the **web app** to run the import.
* **"Invalid phone format."**\
  Convert to **E.164** (country code + number, no spaces).
* **"Invalid email address."**\
  Correct typos or remove invalid emails.
* **"Row has an inconsistent number of columns."**\
  Ensure every row matches the header's column count.
* **Missing phone number**\
  Add a **Phone** value for that row.

***

## Best practices

* **Normalize phones to E.164** before uploading.
* **Deduplicate** by email/phone first to avoid partial merges.
* **Test with 25 rows** to confirm mapping and validation.
* **Use [custom fields](https://docs.messagedesk.com/settings/workspace-settings/custom-fields.md)** intentionally. Ensure data types match your definitions.
* **Keep under limits** (≤ **5,000** rows, ≤ **10 MB**) for smooth importing.

***

## FAQ

**Can I import from my phone or desktop app?**\
No. CSV imports are **web-only**.

**Can I import other data (labels, message templates, messages, opt-outs)?**\
Yes. Besides contacts, [Data & Integrations](https://docs.messagedesk.com/settings/workspace-settings/data-center.md) imports **messages**, **message templates**, **labels**, and **opt-outs**. See [How to import message templates, labels, and opt-outs](https://docs.messagedesk.com/settings/workspace-settings/data-center.md#how-to-import-message-templates-labels-and-opt-outs). This doc covers **Contacts CSV**.

**What happens to skipped rows?**\
Invalid rows are **skipped**. Fix the CSV and re-import those rows separately.

**Can I update existing contacts?**\
Yes. CSV imports **update** existing contacts when an imported row matches an existing contact by **email** or **phone**. Only mapped columns with a value are updated. Empty cells leave existing fields unchanged. Updates apply to standard fields (name, email, phone, address, etc.) and custom fields.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.