Mailbox

Overview

One address: its messages, its aliases, its picture and signature, and what it sends.

4 methodsmessages and aliasesquota is the account's
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

MemberDoes
send(options)Sends from this address.
update(changes)Name, catch-all, picture, signature.
forward(addresses)Copies elsewhere. Five at most.
remove()Deletes it.
messageslist · get · update · remove · search.
aliaseslist · add · remove.
const box = await api.mail.get("hello@example.com");

const { messages, unreadCount } = await box.messages.list({ folder: "inbox", unread: true });
await box.send({ to: "someone@example.net", subject: "Hi", text: "…" });
box = api.mail.get("hello@example.com")

page = box.messages.list(folder="inbox", unread=True)
messages, unread_count = page["messages"], page.get("unreadCount")
box.send(to=["someone@example.net"], subject="Hi", text="…")

What it carries

address · local · hoststring

The address, and its two halves.

namestring

The display name.

avatar · avatarSourcestring|null

Its picture, and where it comes from: mailbox, account, or nothing.

signatureobject|null

{ html, image }, added to sends.

sourcestring

iagenify or imap.

usedBytes · quotaBytesinteger

What it holds, against the account's object storage.

aliasList · forwardTostring[]

Addresses that land here, and copies sent on.

catchAllboolean

Whether unknown addresses on the host land here.

status · lastMessageAt

Its state, and when something last arrived.

A picture follows a chain

The mailbox's own, then the account's, then nothing. avatarSource says which — so an interface can offer « use a picture of its own » meaningfully.