Clienvy API documentation

Website mailbox backup


List the backups of a mailbox domain

GET
https://api.clienvy.io/employee/v1
/websites/{website}/mailboxes/domains/{websiteMailboxDomain}/backups

Returns every backup made on the mailbox domain, newest first, also those of mailbox accounts that were deleted since: website_mailbox_account is null for those, and email says whose they were.

List the backups of a mailbox domain › path Parameters

website
​string · uuid · required

The website UUID

websiteMailboxDomain
​string · uuid · required

The website mailbox domain UUID

List the backups of a mailbox domain › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

List the backups of a mailbox domain › Responses

Array of WebsiteMailboxBackupResource

id
​string · uuid
​WebsiteMailboxAccountReferenceResource | null

null once the mailbox account it was made of is deleted

email
​string

the address the backup was made of

status
​WebsiteMailboxBackupStatus · enum
Enum values:
pending
running
completed
failed
restore_status
​WebsiteMailboxBackupRestoreStatus · enum
Enum values:
pending
running
completed
failed
storage_size
​integer
mails_backed_up
​integer
backup_started_at
​string | null · date-time
backup_finished_at
​string | null · date-time
restore_started_at
​string | null · date-time
restore_finished_at
​string | null · date-time
updated_at
​string · date-time
created_at
​string · date-time

Create a mailbox backup

POST
https://api.clienvy.io/employee/v1
/websites/{website}/mailboxes/domains/{websiteMailboxDomain}/backups

Starts a new backup of one mailbox account of the domain. The backup is created and processed asynchronously.

Create a mailbox backup › path Parameters

website
​string · uuid · required

The website UUID

websiteMailboxDomain
​string · uuid · required

The website mailbox domain UUID

Create a mailbox backup › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Create a mailbox backup › Request Body

website_mailbox_account_id
​string · uuid · required

ID of the mailbox account of the domain to back up.

Create a mailbox backup › Responses

WebsiteMailboxBackupResource

​WebsiteMailboxBackupResource · required
​WebsiteMailboxDomainResource · required

Restore a mailbox backup

POST
https://api.clienvy.io/employee/v1
/websites/{website}/mailboxes/domains/{websiteMailboxDomain}/backups/{websiteMailboxBackup}/restore

Queues a restore of a completed backup into the mailbox account it was made of. Restoring runs asynchronously, one at a time per mailbox account: it cannot start while a restore into the same account is queued or running, nor when the mailbox account is deleted since.

Restore a mailbox backup › path Parameters

website
​string · uuid · required

The website UUID

websiteMailboxDomain
​string · uuid · required

The website mailbox domain UUID

websiteMailboxBackup
​string · uuid · required

The website mailbox backup UUID

Restore a mailbox backup › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Restore a mailbox backup › Responses

WebsiteMailboxBackupResource

id
​string · uuid
​WebsiteMailboxAccountReferenceResource | null

null once the mailbox account it was made of is deleted

email
​string

the address the backup was made of

status
​WebsiteMailboxBackupStatus · enum
Enum values:
pending
running
completed
failed
restore_status
​WebsiteMailboxBackupRestoreStatus · enum
Enum values:
pending
running
completed
failed
storage_size
​integer
mails_backed_up
​integer
backup_started_at
​string | null · date-time
backup_finished_at
​string | null · date-time
restore_started_at
​string | null · date-time
restore_finished_at
​string | null · date-time
updated_at
​string · date-time
created_at
​string · date-time

Download a mailbox backup

GET
https://api.clienvy.io/employee/v1
/websites/{website}/mailboxes/domains/{websiteMailboxDomain}/backups/{websiteMailboxBackup}/download

Streams the completed backup archive as a gzip (.tar.gz) download, also when the mailbox account it was made of is deleted.

Download a mailbox backup › path Parameters

website
​string · uuid · required

The website UUID

websiteMailboxDomain
​string · uuid · required

The website mailbox domain UUID

websiteMailboxBackup
​string · uuid · required

The website mailbox backup UUID

Download a mailbox backup › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Download a mailbox backup › Responses

string