Skip to content

Archive Mailbox

POST
/mailboxes/{mailbox_id}/archive

Archive a mailbox, or restore it. Explicit rather than a toggle.

Archiving hides the mailbox from pickers so nothing new is attached to it; it is not deleted, keeps its history, and is_archived=false brings it back. It does not cancel a purchased mailbox’s billing - that is request-cancellation.

Needs a personal API key whose user holds a mailbox write permission.

Authorizations

Parameters

Path Parameters

mailbox_id
required

Mailbox id (mailboxes.id)

integer
>= 1

Mailbox id (mailboxes.id)

Header Parameters

X-Target-Org-Id
Any of:
string

Request Body required

Archive a mailbox, or bring it back. Mirrors the app’s ArchiveMailboxRequest.

object
is_archived
required

True hides the mailbox from pickers and stops new use; false restores it

boolean

Responses

200

Successful Response

object
data
required

An open envelope for one provider/deliverability result.

Open on purpose. These payloads are provider state and advisory reads whose contents grow with the product, and a dropped field reads as “nothing to report” rather than “we did not tell you”. Every value passes through scrub_vendor_names on the way in.

object
key
additional properties
any
pagination
Any of:
object
has_next
required

Whether there are more pages

boolean
limit
required

Items per page

integer
next_cursor
Any of:
string
notes
Any of:
Array<string>
page
required

Current page number (1-indexed)

integer
total
required

Total number of items

integer
total_available
Any of:
integer
total_is_lower_bound
Any of:
boolean

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string