# Contacts

Your address book: add, merge, import and export.

## mailset contacts list

List your contacts, by name.

```bash
mailset contacts list [--limit <n>] [--after <after>] [--label <label>]
```

### Flags

- `--limit` (\<n\>, optional): How many contacts a page holds, 1 to 200. Default `50`.
- `--after` (\<after\>, optional): The `next` of the page before, for the page after it.
- `--label` (\<label\>, optional): Only contacts with this label.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/contacts#contacts.list-returns).

Example:

```bash
mailset contacts list --label Customers --limit 100
```

In the API: [POST /v1/contacts.list](https://mailset.app/docs/api/contacts#contacts.list)

## mailset contacts search

Search your contacts: name, address, phone, company, notes, labels.

```bash
mailset contacts search <query> [--limit <n>] [--after <after>]
```

### Flags

- `<query>` (argument, required): What to find, in a name, address, phone, company, note or label.
- `--limit` (\<n\>, optional): How many contacts a page holds, 1 to 200. Default `50`.
- `--after` (\<after\>, optional): The `next` of the page before, for the page after it.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/contacts#contacts.search-returns).

Example:

```bash
mailset contacts search maria
```

In the API: [POST /v1/contacts.search](https://mailset.app/docs/api/contacts#contacts.search)

## mailset contacts get

Show one contact.

```bash
mailset contacts get <id>
```

### Flags

- `<id>` (argument, required): The contact’s id.

With `--json` it prints the [Contact object](https://mailset.app/docs/api/contacts#contact).

Example:

```bash
mailset contacts get con_4e9a2c7f1b6d3058a3c7e1b9
```

In the API: [POST /v1/contacts.get](https://mailset.app/docs/api/contacts#contacts.get)

## mailset contacts add

Save someone.

```bash
mailset contacts add [<name>] [--first-name <first-name>] [--middle-name <middle-name>] [--last-name <last-name>] [--prefix <prefix>] [--suffix <suffix>] [--nickname <nickname>] [--company <company>] [--title <title>] [--department <department>] [--emails <a,b,…>] [--phones <a,b,…>] [--addresses <a,b,…>] [--websites <a,b,…>] [--birthday <birthday>] [--notes <notes>] [--labels <a,b,…>] [--other <a,b,…>]
```

### Flags

- `<name>` (argument, optional): The full name as shown. Left empty, it is put together from the parts.
- `--first-name` (\<first-name\>, optional): Their first name.
- `--middle-name` (\<middle-name\>, optional): Their middle name.
- `--last-name` (\<last-name\>, optional): Their last name.
- `--prefix` (\<prefix\>, optional): What goes before the name: Dr.
- `--suffix` (\<suffix\>, optional): What goes after it: Jr.
- `--nickname` (\<nickname\>, optional): What you call them.
- `--company` (\<company\>, optional): Where they work.
- `--title` (\<title\>, optional): Their job title.
- `--department` (\<department\>, optional): Their department.
- `--emails` (\<a,b,…\>, optional): Addresses, the first is primary. Each is an address, or `{ value, label }`. Up to 20. Or @<path>, to read the JSON from a file.
- `--phones` (\<a,b,…\>, optional): Phone numbers, each a number or `{ value, label }`. Up to 20. Or @<path>, to read the JSON from a file.
- `--addresses` (\<a,b,…\>, optional): Postal addresses, each as text or `{ value, label }`. Up to 10. Or @<path>, to read the JSON from a file.
- `--websites` (\<a,b,…\>, optional): Websites, each a URL or `{ value, label }`. Up to 10. Or @<path>, to read the JSON from a file.
- `--birthday` (\<birthday\>, optional): Their birthday, as written: `1990-04-12`.
- `--notes` (\<notes\>, optional): Your own notes about them.
- `--labels` (\<a,b,…\>, optional): The labels on the contact, by name. Up to 50. Or @<path>, to read the JSON from a file.
- `--other` (\<a,b,…\>, optional): Anything else a contact came with: events, relations, custom fields. Or @<path>, to read the JSON from a file.

With `--json` it prints the [Contact object](https://mailset.app/docs/api/contacts#contact).

Example:

```bash
mailset contacts add "Maria Lopez" --emails maria@example.com --phones "+1 555 0100" --company "Example Inc"
```

In the API: [POST /v1/contacts.add](https://mailset.app/docs/api/contacts#contacts.add)

## mailset contacts update

Change a contact. Only the fields you pass change.

```bash
mailset contacts update <id> [--name <name>] [--first-name <first-name>] [--middle-name <middle-name>] [--last-name <last-name>] [--prefix <prefix>] [--suffix <suffix>] [--nickname <nickname>] [--company <company>] [--title <title>] [--department <department>] [--emails <a,b,…>] [--phones <a,b,…>] [--addresses <a,b,…>] [--websites <a,b,…>] [--birthday <birthday>] [--notes <notes>] [--labels <a,b,…>] [--other <a,b,…>]
```

### Flags

- `<id>` (argument, required): The contact’s id.
- `--name` (\<name\>, optional): The full name as shown. Left empty, it is put together from the parts.
- `--first-name` (\<first-name\>, optional): Their first name.
- `--middle-name` (\<middle-name\>, optional): Their middle name.
- `--last-name` (\<last-name\>, optional): Their last name.
- `--prefix` (\<prefix\>, optional): What goes before the name: Dr.
- `--suffix` (\<suffix\>, optional): What goes after it: Jr.
- `--nickname` (\<nickname\>, optional): What you call them.
- `--company` (\<company\>, optional): Where they work.
- `--title` (\<title\>, optional): Their job title.
- `--department` (\<department\>, optional): Their department.
- `--emails` (\<a,b,…\>, optional): Addresses, the first is primary. Each is an address, or `{ value, label }`. Up to 20. Or @<path>, to read the JSON from a file.
- `--phones` (\<a,b,…\>, optional): Phone numbers, each a number or `{ value, label }`. Up to 20. Or @<path>, to read the JSON from a file.
- `--addresses` (\<a,b,…\>, optional): Postal addresses, each as text or `{ value, label }`. Up to 10. Or @<path>, to read the JSON from a file.
- `--websites` (\<a,b,…\>, optional): Websites, each a URL or `{ value, label }`. Up to 10. Or @<path>, to read the JSON from a file.
- `--birthday` (\<birthday\>, optional): Their birthday, as written: `1990-04-12`.
- `--notes` (\<notes\>, optional): Your own notes about them.
- `--labels` (\<a,b,…\>, optional): The labels on the contact, by name. Up to 50. Or @<path>, to read the JSON from a file.
- `--other` (\<a,b,…\>, optional): Anything else a contact came with: events, relations, custom fields. Or @<path>, to read the JSON from a file.

With `--json` it prints the [Contact object](https://mailset.app/docs/api/contacts#contact).

Example:

```bash
mailset contacts update con_4e9a2c7f1b6d3058a3c7e1b9 --company "Example Inc" --title "Head of Finance"
```

In the API: [POST /v1/contacts.update](https://mailset.app/docs/api/contacts#contacts.update)

## mailset contacts remove

Delete contacts and their photos.

```bash
mailset contacts remove <ids>
```

### Flags

- `<ids>` (argument, required): One contact’s id, or a list of up to 200.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/contacts#contacts.remove-returns).

Example:

```bash
mailset contacts remove con_4e9a2c7f1b6d3058a3c7e1b9
```

In the API: [POST /v1/contacts.remove](https://mailset.app/docs/api/contacts#contacts.remove)

## mailset contacts duplicates

Find contacts that look like the same person.

```bash
mailset contacts duplicates
```

With `--json` it prints what [the API returns](https://mailset.app/docs/api/contacts#contacts.duplicates-returns).

Example:

```bash
mailset contacts duplicates
```

In the API: [POST /v1/contacts.duplicates](https://mailset.app/docs/api/contacts#contacts.duplicates)

## mailset contacts merge

Merge duplicates.

```bash
mailset contacts merge [--ids <a,b,…>] [--all]
```

### Flags

- `--ids` (\<a,b,…\>, optional): The contacts to merge, 2 to 50. The first is kept. Or @<path>, to read the JSON from a file.
- `--all` (flag, optional): Merge every group `contacts duplicates` finds.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/contacts#contacts.merge-returns).

Example:

```bash
mailset contacts merge --ids con_4e9a2c7f1b6d3058a3c7e1b9,con_a1c6e3b9f2d74058b6e2a9c4
```

In the API: [POST /v1/contacts.merge](https://mailset.app/docs/api/contacts#contacts.merge)

## mailset contacts import

Import a Google Contacts CSV or a vCard file.

```bash
mailset contacts import --file <path>
```

### Flags

- `--file` (\<path\>, required): The file to send, read from this machine.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/contacts#contacts.import-returns).

Example:

```bash
mailset contacts import --file contacts.vcf
```

In the API: [POST /v1/contacts.import](https://mailset.app/docs/api/contacts#contacts.import)

## mailset contacts export

Print your contacts as vCard or CSV.

```bash
mailset contacts export [--format vcard|csv] [--photos]
```

### Flags

- `--format` (enum, optional): `vcard` or `csv`. One of `vcard`, `csv`. Default `vcard`.
- `--photos` (flag, optional): Inline each photo in a vCard.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/contacts#contacts.export-returns).

Example:

```bash
mailset contacts export --format csv
```

In the API: [POST /v1/contacts.export](https://mailset.app/docs/api/contacts#contacts.export)

## mailset contacts others

People you’ve exchanged mail with and haven’t saved.

```bash
mailset contacts others [--limit <n>] [--after <after>] [--query <query>]
```

### Flags

- `--limit` (\<n\>, optional): How many people a page holds, 1 to 200. Default `50`.
- `--after` (\<after\>, optional): The `next` of the page before, for the page after it.
- `--query` (\<query\>, optional): Only people whose name or address has this in it.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/contacts#contacts.others-returns).

Example:

```bash
mailset contacts others --query example.com
```

In the API: [POST /v1/contacts.others](https://mailset.app/docs/api/contacts#contacts.others)

## mailset contacts forget

Take someone off your other contacts.

```bash
mailset contacts forget <address>
```

### Flags

- `<address>` (argument, required): The person’s address.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/contacts#contacts.forget-returns).

Example:

```bash
mailset contacts forget maria@example.com
```

In the API: [POST /v1/contacts.forget](https://mailset.app/docs/api/contacts#contacts.forget)

## mailset contacts photo set

Set a contact’s photo from a PNG, JPEG or WebP file.

```bash
mailset contacts photo set <id> --file <path>
```

### Flags

- `<id>` (argument, required): The contact’s id.
- `--file` (\<path\>, required): The file to send, read from this machine.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/contacts#contacts.photo.set-returns).

Example:

```bash
mailset contacts photo set con_4e9a2c7f1b6d3058a3c7e1b9 --file maria.jpg
```

In the API: [POST /v1/contacts.photo.set](https://mailset.app/docs/api/contacts#contacts.photo.set)

## mailset contacts photo remove

Remove a contact’s photo.

```bash
mailset contacts photo remove <id>
```

### Flags

- `<id>` (argument, required): The contact’s id.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/contacts#contacts.photo.remove-returns).

Example:

```bash
mailset contacts photo remove con_4e9a2c7f1b6d3058a3c7e1b9
```

In the API: [POST /v1/contacts.photo.remove](https://mailset.app/docs/api/contacts#contacts.photo.remove)

---

© 2026 Intenseloop, Inc. Mailset’s site, docs and guides are copyrighted. You may read them and use their code to build with Mailset. Don’t republish them or use them to build a copy of Mailset. Terms: https://mailset.app/terms#content