# Get whether a mailbox may send

Returns `canSend` and, when it is false, `sendHold`: the answer `/auth/verify` gives a login typed as the mailbox's primary address, from the same function, for a mailbox credential and without the password. `sendHold` is the fold across the mailbox, its account and its domain ('unverified' = publish DNS, 'receive_only' = the domain sends through another provider, 'paused' = a reversible hold, 'disabled' = a stop), unlike `/send-usage`'s `sendHold`, which is the mailbox's own switch. Advisory; the submission gate is the authority.

## `GET /api/v1/mailboxes/{mailboxId}/send-state`

### Path parameters

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

### Responses

**200** — Whether the mailbox may send, and why not

`application/json` → SendState

- `canSend` (boolean, required) — True if this mailbox may send from its primary address now: the answer `/auth/verify` gives a login typed as that address
- `sendHold` ("disabled" | "paused" | "unverified" | "receive_only") — Why canSend is false, present only then, with `/auth/verify`'s values: 'unverified' = the domain's send records were never published (publish DNS), 'receive_only' = the domain is configured to receive here and send through another provider, 'paused' = a reversible hold at some scope (mailbox, account or domain), 'disabled' = a permanent stop, or a mailbox that cannot send at all. Unlike `/send-usage`'s `sendHold`, which is the mailbox's own switch only, this is the fold across every scope. Advisory; the submission gate is the authority. Treat an unrecognized value as permanent

**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}/send-state' \
  -H 'Authorization: Bearer oek_…'
```

## TypeScript SDK

[`openemail.mailboxes.getSendState`](/docs/sdks/typescript/mailboxes/get-send-state)

```ts
const sendState = await openemail.mailboxes.getSendState(mailboxId)
```
