# Overview

Canonical URL: https://developers.iagenify.com/sdk/ref/mail/contacts/
Language: en

The account's address book: a name and a photo for a correspondent. The photo wins over any logo found on the sender's domain.

Status: 4 methods · the photo wins · stored on the account

| Call | Does |
| --- | --- |
| [list()](/sdk/ref/mail/contacts/list) | Every contact. |
| [get(address)](/sdk/ref/mail/contacts/get) | One, or `null`. |
| [save({ address, name, image })](/sdk/ref/mail/contacts/save) | Creates or changes one. |
| [remove(address)](/sdk/ref/mail/contacts/remove) | Deletes one. |

```javascript
await api.mail.contacts.save({
  address: "fedy@example.net",
  name: "Fedy",
  image: { data: bytes, type: "image/jpeg" },
});
```

## A contact photo always wins {#priority}

| Order | Source |
| --- | --- |
| 1 | The mailbox's own picture, for your own addresses |
| 2 | **A contact photo** |
| 3 | A logo found on the sender's domain |
| 4 | Nothing — keep initials |

> **It is the only thing that puts a face next to a person**
>
> A domain logo is a company's mark. On a consumer domain it would be the provider's logo — the same picture for fifteen different correspondents, which is a wrong answer rather than a missing one. So nothing is looked up there at all.

## Where the bytes go {#where}

Into the account's object storage, visible in its listing, counted in its quota, deletable. Nothing is sent to a third party to find out who writes to the customer.

## Pictures are resolved at delivery {#resolution}

Not when a message is read — so opening a folder is two reads of our own data, with nothing fetched from outside while someone is looking at their inbox.

- [save()](/sdk/ref/mail/contacts/save): Adding one.
- [messages.get()](/sdk/ref/mailbox/messages/get): Where it appears.

```python
api.mail.contacts.save(
    address="fedy@example.net",
    name="Fedy",
    image={"data": jpeg_bytes, "type": "image/jpeg"},
)
```
