# get()

Canonical URL: https://developers.iagenify.com/pt/sdk/ref/mail/get/
Language: pt

`api.mail.get(id) → Promise<Mailbox>`

Una caixa postale, per identificatori o per indirizzo — get("hello@example.com") funcionà.

Status: id or address · free · 404 if unknown

```javascript
const box  = await api.mail.get("hello@example.com");
const same = await api.mail.get(box.id);
```

> **Prendere l'adresse è la parte utile**
>
> Un buxbox è identificat dal suo indirizzo in ogni parte un umano che le fa riferimento. Avere a cercare un identificatore prima sarebbe un passo per nulla.

## E 'un let {#fresh}

`usedBytes`, `quotaBytes` e il resto è quello che la piattaforma ha ora — un snapshot più recente que uno de una lista tirata anteriormente.

## i messaggi e aliass vin con il {#subobjects}

```javascript
const box = await api.mail.get("hello@example.com");

await box.messages.list({ folder: "inbox" });
await box.aliases.add("hi@example.com");
```

## Un alias non risolve qui {#alias}

Alienes sono indirizzi che *land* in una caixa de correio; la caixa de correio è identificata da sua propria dirección. Cerca un alias in `aliasList` nas caixas de correio che deten.

- [Box de posta](/pt/sdk/ref/mailbox): Ce porta un buxbox, e ce poti fare a lui.
- [messages.list()](/pt/sdk/ref/mailbox/messages/list): Legtura.

```python
box = api.mail.get("hello@example.com")
same = api.mail.get(box.id)
```

```python
box = api.mail.get("hello@example.com")

box.messages.list(folder="inbox")
box.aliases.add("hi@example.com")
```
