POST /v1/mail/mailboxes/{mailboxId}/restores
Restore this mailbox from a backup, into a side folder.
Authentication
Send an API key as a bearer token. The key must carry the mail.manage permission; a key without it is refused with 403, not 404.
This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X POST https://api.zinndigital.com/v1/mail/mailboxes/{mailboxId}/restores \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "point": <string> }'Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
Copies the mailbox as it stood at one listed backup (point, from listMailboxRestorePoints) into Restored <date> UTC/<folder> beside the live folders, Trash included. Nothing in a live folder is overwritten or deleted, and a message already in the restore folder is never copied twice. A point that is not listed is refused (422); one restore at a time per mailbox (409); only mailboxes on our own mail service. Included with the mailbox, no charge. Audited. Requires mail.manage.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
mailboxId (path) | Uuid | Yes | Mailbox ID (UUIDv7). |
Request body
| Name | Type | Required | What it is |
|---|---|---|---|
point | string | Yes | One point from listMailboxRestorePoints. |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
id | string | Yes | — |
mailbox_id | string | Yes | — |
point | string | Yes | — |
folder | string | Yes | — |
status | string<queued, running, done, failed> | Yes | — |
messages_copied | integer | Yes | — |
folders_skipped | string[] | Yes | — |
error_code | string | Yes | Why a failed restore failed: box_failed, backup_unreachable, backup_unreadable, mailbox_not_in_backup, destination_refused, copy_failed, not_started; empty otherwise. |
finished_at | string | Yes | — |
created_at | string | Yes | — |
Errors this endpoint can return
401 · 403 · 404 · 409 · 422 · 503