Skip to Content
GET
/api/v1/mailboxes/{mailboxId}/routing

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.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Two credential kinds share this scheme; GET /api/v1/auth/whoami answers which one you hold and what it reaches.

oek_… API key (minted by POST /api/v1/api-keys; shown once at mint). role: account reaches the full account surface: the directory (domains, routes, patterns, api-keys, accounts, address lists) plus every mailbox the account owns. role: system additionally reaches the operator surface, which is documented separately.

oemp_… mailbox app password (minted by POST /api/v1/identities/{identityId}/credentials). Reaches ONE mailbox: its messages, labels, threads, search, sync, send, filters and PIM collections. Directory routes refuse it with 403 insufficient_scope.

Refusal vocabulary: a missing, malformed, expired, or revoked credential answers 401 unauthorized with a WWW-Authenticate: Bearer challenge; a VALID credential outside its scope answers 403 (insufficient_scope for an app password on a directory route, system_credentials_required where only the operator may call). The public routes (health, branding, token-in-path capabilities) declare security: [].

Path Parameters

mailboxId*string

Mailbox ULID identifier

Response Body

The entries, primary first

application/json
  1. response
addresses*array<>

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

truncated*boolean

True when the caller can see more than 200 eligible, distinct entries

Example Request
curl -X GET 'https://api.open.email/api/v1/mailboxes/string/routing'
Example Response
{
  "addresses": [
    {
      "address": "string",
      "canSend": true,
      "kind": "primary",
      "receives": true,
      "subaddressing": true
    }
  ],
  "truncated": true
}