Add a contact
mail_add_contactCreate a contact in an address book, defaulting to your mailbox or a shared one. Check for duplicates first.
Instructions
Creates a contact in an address book. Default is the signed-in mailbox's own address book; pass the account of a shared mailbox to store it in the shared one (everyone with access sees it, on phones too through CardDAV). Check mail_search_contacts first so you do not create a duplicate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Note. | |
| given | No | First name. | |
| title | No | Job title. | |
| emails | No | E-mail addresses. | |
| phones | No | Phone numbers (international format, e.g. +1 202 555 0123). | |
| account | No | Which account: leave empty for the signed-in mailbox, or name a shared mailbox / group you have access to (the part before @ is enough; a full address works too). mail_list_mailboxes shows what exists. | |
| surname | No | Surname. | |
| nickname | No | Nickname. | |
| full_name | No | Full name, when splitting it makes no sense (e.g. a company as a contact). | |
| address_book | No | Address book name (default = the account's default address book). | |
| organization | No | Company / organization. |