# List what delivers to a mailbox

Returns the addresses that deliver mail to this mailbox, and whether it may send as each: its primary address, its other routes and their alias-domain spellings, the wildcard patterns aimed at it (`catch_all` for a bare `*`), and the groups it is a member of or the persona of. `receives` includes a group's persona archive as well as its members; `canSend` requires the domain to permit sending and, for a group, this mailbox to be its persona. An alias spelling receives only when both its alias and canonical domains receive, and its subaddressing follows the canonical domain. Unlike send-as, this keeps addresses that cannot send and patterns a From picker cannot offer. At most 200 eligible, distinct entries unless operators set another number; `truncated` says when there were more. A domain-scoped key sees only its own domains.

## `GET /api/v1/mailboxes/{mailboxId}/routing`

### Path parameters

- `mailboxId` (string, required) — Mailbox ULID identifier

### Responses

**200** — The entries, primary first

`application/json` → MailboxRouting

- `addresses` (object[], required) — Primary address first, then routes and their alias-domain spellings, catch-alls, patterns, and groups; at most 200 eligible, distinct entries. An address that neither receives nor sends is left out. Not recognised as membership: a member only a pattern or catch-all brings here, a nested group, and a group on another account's domain
  - `address` (string, required) — Lowercased. An exact address, or `<pattern>@domain` for a wildcard: `*@domain` for a catch-all, `sales-*@domain` for a narrower pattern
  - `canSend` (boolean, required) — Whether this mailbox may send as it: its domain may send, and for a group, this mailbox is the persona. Mailbox-wide holds are reported by send-state, not here
  - `kind` ("primary" | "address" | "catch_all" | "pattern" | "group", required) — `primary`: the mailbox's own address. `address`: another route to it, or an alias domain's spelling of one. `catch_all`: a bare `*` pattern. `pattern`: a narrower wildcard. `group`: a group this mailbox is a member of or the persona of. A member counts when routing would bring it here through one of the mailbox's own addresses: written exactly, on an alias domain, or as a `+tag` form where the domain splits tags
  - `receives` (boolean, required) — Whether mail to this address arrives here: its domain is enabled and receives here (not send-only), and for a group, this mailbox is a member or its persona archive. An alias spelling also requires its canonical domain to receive
  - `subaddressing` (boolean, required) — Whether `local+tag@domain` forms reach it too. Follows the canonical domain for an alias spelling. Always false on a wildcard, which already covers every local part
- `truncated` (boolean, required) — True when the caller can see more than 200 eligible, distinct entries

**401** — unauthorized: the bearer credential is missing, malformed, expired, or revoked. Carries a `WWW-Authenticate: Bearer` challenge

`application/json` → ErrorBody

**404** — Mailbox not found or not accessible to this principal

`application/json` → ErrorBody

**503** — temporary_failure: the platform's storage could not answer just now; retry after the Retry-After window. Any operation can answer this. A write that got it may have been applied, so retry it with the same idempotency key where it takes one, or read the state back first (see Transient failures in the API description)

`application/json` → ErrorBody

### Example request

```bash
curl -X GET 'https://api.open.email/api/v1/mailboxes/{mailboxId}/routing' \
  -H 'Authorization: Bearer oek_…'
```

## TypeScript SDK

[`openemail.mailboxes.getRouting`](/docs/sdks/typescript/mailboxes/get-routing)

```ts
const mailboxRouting = await openemail.mailboxes.getRouting(mailboxId)
```
