Contacts
Your address book: add, merge, import and export.
On this page
mailset contacts list
List your contacts, by name.
Flags
How many contacts a page holds, 1 to 200.
Default
50.The
nextof the page before, for the page after it.Only contacts with this label.
Returns
With --json it prints what the API returns.
mailset contacts list [--limit <n>] [--after <after>] [--label <label>]
mailset contacts list --label Customers --limit 100
mailset contacts search
Search your contacts: name, address, phone, company, notes, labels.
Flags
What to find, in a name, address, phone, company, note or label.
How many contacts a page holds, 1 to 200.
Default
50.The
nextof the page before, for the page after it.
Returns
With --json it prints what the API returns.
mailset contacts search <query> [--limit <n>] [--after <after>]
mailset contacts search maria
mailset contacts get
Show one contact.
Flags
The contact’s id.
Returns
With --json it prints the Contact object.
mailset contacts get <id>
mailset contacts get con_4e9a2c7f1b6d3058a3c7e1b9
mailset contacts add
Save someone.
Flags
The full name as shown. Left empty, it is put together from the parts.
Their first name.
Their middle name.
Their last name.
What goes before the name: Dr.
What goes after it: Jr.
What you call them.
Where they work.
Their job title.
Their department.
Addresses, the first is primary. Each is an address, or
{ value, label }. Up to 20.Or @<path>, to read the JSON from a file.
Phone numbers, each a number or
{ value, label }. Up to 20.Or @<path>, to read the JSON from a file.
Postal addresses, each as text or
{ value, label }. Up to 10.Or @<path>, to read the JSON from a file.
Websites, each a URL or
{ value, label }. Up to 10.Or @<path>, to read the JSON from a file.
Their birthday, as written:
1990-04-12.Your own notes about them.
The labels on the contact, by name. Up to 50.
Or @<path>, to read the JSON from a file.
Anything else a contact came with: events, relations, custom fields.
Or @<path>, to read the JSON from a file.
Returns
With --json it prints the Contact object.
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,…>]
mailset contacts add "Maria Lopez" --emails moc.elpmaxe@airam --phones "+1 555 0100" --company "Example Inc"
mailset contacts update
Change a contact. Only the fields you pass change.
Flags
The contact’s id.
The full name as shown. Left empty, it is put together from the parts.
Their first name.
Their middle name.
Their last name.
What goes before the name: Dr.
What goes after it: Jr.
What you call them.
Where they work.
Their job title.
Their department.
Addresses, the first is primary. Each is an address, or
{ value, label }. Up to 20.Or @<path>, to read the JSON from a file.
Phone numbers, each a number or
{ value, label }. Up to 20.Or @<path>, to read the JSON from a file.
Postal addresses, each as text or
{ value, label }. Up to 10.Or @<path>, to read the JSON from a file.
Websites, each a URL or
{ value, label }. Up to 10.Or @<path>, to read the JSON from a file.
Their birthday, as written:
1990-04-12.Your own notes about them.
The labels on the contact, by name. Up to 50.
Or @<path>, to read the JSON from a file.
Anything else a contact came with: events, relations, custom fields.
Or @<path>, to read the JSON from a file.
Returns
With --json it prints the Contact object.
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,…>]
mailset contacts update con_4e9a2c7f1b6d3058a3c7e1b9 --company "Example Inc" --title "Head of Finance"
mailset contacts remove
Delete contacts and their photos.
Flags
One contact’s id, or a list of up to 200.
Returns
With --json it prints what the API returns.
mailset contacts remove <ids>
mailset contacts remove con_4e9a2c7f1b6d3058a3c7e1b9
mailset contacts duplicates
Find contacts that look like the same person.
Returns
With --json it prints what the API returns.
mailset contacts duplicates
mailset contacts duplicates
mailset contacts merge
Merge duplicates.
Flags
The contacts to merge, 2 to 50. The first is kept.
Or @<path>, to read the JSON from a file.
Merge every group
contacts duplicatesfinds.
Returns
With --json it prints what the API returns.
mailset contacts merge [--ids <a,b,…>] [--all]
mailset contacts merge --ids con_4e9a2c7f1b6d3058a3c7e1b9,con_a1c6e3b9f2d74058b6e2a9c4
mailset contacts import
Import a Google Contacts CSV or a vCard file.
Flags
The file to send, read from this machine.
Returns
With --json it prints what the API returns.
mailset contacts import --file <path>
mailset contacts import --file contacts.vcf
mailset contacts export
Print your contacts as vCard or CSV.
Flags
vcardorcsv.One of
vcardcsvDefault
vcard.Inline each photo in a vCard.
Returns
With --json it prints what the API returns.
mailset contacts export [--format vcard|csv] [--photos]
mailset contacts export --format csv
mailset contacts others
People you’ve exchanged mail with and haven’t saved.
Flags
How many people a page holds, 1 to 200.
Default
50.The
nextof the page before, for the page after it.Only people whose name or address has this in it.
Returns
With --json it prints what the API returns.
mailset contacts others [--limit <n>] [--after <after>] [--query <query>]
mailset contacts others --query example.com
mailset contacts forget
Take someone off your other contacts.
Flags
The person’s address.
Returns
With --json it prints what the API returns.
mailset contacts forget <address>
mailset contacts forget moc.elpmaxe@airam
mailset contacts photo set
Set a contact’s photo from a PNG, JPEG or WebP file.
Flags
The contact’s id.
The file to send, read from this machine.
Returns
With --json it prints what the API returns.
mailset contacts photo set <id> --file <path>
mailset contacts photo set con_4e9a2c7f1b6d3058a3c7e1b9 --file maria.jpg
mailset contacts photo remove
Remove a contact’s photo.
Flags
The contact’s id.
Returns
With --json it prints what the API returns.
mailset contacts photo remove <id>
mailset contacts photo remove con_4e9a2c7f1b6d3058a3c7e1b9