# MailboxRestoreResult

The MailboxRestoreResult type of the TypeScript SDK, which identities.restore take or answer.

```ts
type MailboxRestoreResult = {
  accountId: string | null
  addressChanged: boolean
  id: string
  primaryAddress: string | null
  quotaBytes: number | null
  restored: boolean
}
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `accountId` | `string` \| `null` | Account ID, or null |
| `addressChanged` | `boolean` | True if the primary address had to be cleared because it was claimed while deleted |
| `id` | `string` | Mailbox ULID |
| `primaryAddress` | `string` \| `null` | Restored primary address, or null |
| `quotaBytes` | `number` \| `null` | Storage quota in bytes, or null |
| `restored` | `boolean` | True if the mailbox was restored |

## Used by

| Method | What it does |
| --- | --- |
| [`identities.restore`](/docs/sdks/typescript/identities/restore) | Restore a deleted mailbox |
