Show a backup run
With its plan, server and the backups it stored. A restore run lists what it was asked to restore under restore.
/api/v1/backup-runs/{backupRun}
curl 'https://app.clokeep.com/api/v1/backup-runs/1873' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Accept: application/json'<?php
$ch = curl_init('https://app.clokeep.com/api/v1/backup-runs/1873');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_API_TOKEN',
'Accept: application/json',
],
]);
$response = curl_exec($ch);
echo $response;
const response = await fetch("https://app.clokeep.com/api/v1/backup-runs/1873", {
headers: {
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json",
},
});
console.log(await response.text());
import requests
response = requests.get(
"https://app.clokeep.com/api/v1/backup-runs/1873",
headers={
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json",
},
)
print(response.text)
{
"data": {
"id": 1873,
"plan_id": 41,
"server_id": 12,
"kind": "backup",
"kind_label": "Backup",
"trigger": "schedule",
"trigger_label": "Schedule",
"status": "completed",
"status_label": "Completed",
"progress_percent": 100,
"current_step": null,
"message": "Backup completed successfully.",
"queue": "backups",
"laravel_job_uuid": "9d2f4c1e-7b3a-4e58-9a61-0c5e2b7d8f14",
"started_at": "2026-11-20T02:00:07+00:00",
"finished_at": "2026-11-20T02:14:36+00:00",
"cancel_requested_at": null,
"error_message": null,
"initiated_by_user_id": null,
"restore": null,
"plan": {
"id": 41,
"server_id": 12,
"plan_template_id": 1,
"name": "Nightly files",
"type": "files",
"type_label": "Files",
"schedule_id": 7,
"compression_profile_id": 2,
"enabled": true,
"encrypts_new_backups": false,
"config": {
"backup_path_ids": [
5
],
"incremental": true,
"full_every": 7,
"archive_per_path": false,
"dedup_disabled": false
},
"retention_days": 30,
"retention_count": 7,
"created_at": "2026-11-01T09:14:22+00:00",
"updated_at": "2026-11-18T16:40:05+00:00"
},
"server": {
"id": 12,
"name": "web-01",
"ip": "203.0.113.10",
"status": "online",
"status_label": "Online",
"control_panel": "plesk",
"detected_control_panel": "plesk",
"last_seen_at": "2026-11-20T02:00:04+00:00",
"agent_version": "1.4.1",
"account_portal_plugin_status": null,
"enrolled_at": "2026-11-01T09:20:00+00:00",
"metadata": {
"hostname": "web-01.example.com",
"os": "Ubuntu 22.04"
},
"work_dir": "/var/backups/clokeep",
"agent_work_dirs": [
{
"path": "/var/backups/clokeep",
"default": true,
"available": true,
"free_bytes": 214748364800,
"total_bytes": 536870912000,
"source": "config",
"mount_point": "/",
"device": "/dev/sda1",
"fs_type": "ext4"
}
],
"accounts_synced_at": "2026-11-20T01:30:04+00:00",
"plesk_subscriptions_synced_at": "2026-11-20T01:30:04+00:00",
"plesk_sync_requested": false,
"created_at": "2026-11-01T09:14:22+00:00",
"updated_at": "2026-11-20T02:00:04+00:00"
},
"artifacts": [
{
"id": 2291,
"backup_run_id": 1873,
"storage_id": 3,
"remote_path": "web-01/nightly-files/nightly-files-2026-11-20-020007.tar.gz",
"filename": "nightly-files-2026-11-20-020007.tar.gz",
"label": null,
"size_bytes": 1288490188,
"checksum": "9f2c4e7a1b8d3f60a5c97e2d4b1f8a63c0d5e9b72a4f1c8e6d3b0a97f5e2c418",
"encrypted": false,
"file_list_encrypted": false,
"hosting_account_id": null,
"compression_profile_id": 2,
"indexed_at": "2026-11-20T02:14:31+00:00",
"index_format": "rows",
"entry_count": 18432,
"file_count": 17980,
"total_size_bytes": 3221225472,
"has_references": false,
"manifest_missing_at": null,
"created_at": "2026-11-20T02:14:20+00:00",
"updated_at": "2026-11-20T02:14:31+00:00"
}
],
"created_at": "2026-11-20T02:00:00+00:00",
"updated_at": "2026-11-20T02:14:36+00:00"
}
}{
"message": "Unauthenticated."
}{
"message": "Your role does not permit this action."
}{
"message": "No query results for model [App\\Models\\BackupRun] 1873"
}New to the API? Read Run a backup through the API and Queue a restore through the API.
Path Parameters
-
backupRunintegerrequired
The ID of the backup run.
Example:
1873
Response
200
-
dataobject
Show properties
-
data.idinteger
-
data.plan_idinteger
-
data.server_idinteger
-
data.kindstring
One of:
backup,restore -
data.kind_labelstring
One of:
Backup,Restore -
data.triggerstring
One of:
manual,schedule,api -
data.trigger_labelstring
One of:
Manual,Schedule,API -
data.statusstring
One of:
queued,running,completed,partial,failed,cancelled -
data.status_labelstring
One of:
Queued,Running,Completed,Partially completed,Failed,Cancelled -
data.progress_percentinteger
How far the run has got, 0 to 100.
-
data.current_stepstringnullable
The step the agent is on: for a backup
prepare,dump,archive,compress,uploadorindex; for a restoredownload,extract,restoreorverify. It is null in the first answer to starting a backup, for a restore until the agent picks it up, and once the run has completed; a backup waiting for the agent already showsprepare, and a failed or cancelled run keeps the step it stopped at. To know whether a run has started, readstatus, not this field. -
data.messagestringnullable
The latest status line of the run.
-
data.queuestringnullable
The queue the run was dispatched to.
-
data.laravel_job_uuidstringnullable
The id of the queued job that started the run.
-
data.started_atstring · date-timenullable
When the agent started the run.
-
data.finished_atstring · date-timenullable
When the run ended; null while it is still queued or running.
-
data.cancel_requested_atstring · date-timenullable
When a stop was requested, for example
2026-11-20T02:05:30+00:00; null unless someone asked to cancel the run. -
data.error_messagestringnullable
Why the run failed, for example
Upload failed: connection timed out after 120 seconds., or for apartialrun which items failed; null for a run that did not fail. -
data.initiated_by_user_idintegernullable
The user who started the run; null for a scheduled run. A run started by hand or through the API carries the user's id.
-
data.restoreobjectnullable
What a restore run was asked to restore, and how; null on a backup run.
accountholds a Plesk or cPanel restore's choices (mailboxalone for one mailbox), null for a files or database restore.Show properties
-
data.restore.source_artifact_idintegernullable
-
data.restore.modestringnullable
One of:
original_location,alternate_path,download_only,null -
data.restore.target_pathstringnullable
-
data.restore.overwrite_policystringnullable
One of:
overwrite,skip_existing,rename,null -
data.restore.database_connection_idintegernullable
-
data.restore.accountobjectnullable
Show properties
-
data.restore.account.componentsstring[]
One of:
files,databases,mail,settings,mailbox -
data.restore.account.files_targetstringnullable
-
data.restore.account.databasesobject[]
Show properties
-
data.restore.account.databases.namestring
-
data.restore.account.databases.target_namestring
-
-
data.restore.account.mail_overwriteboolean
-
data.restore.account.apply_settingsboolean
-
data.restore.account.rollback_liveboolean
-
data.restore.account.mailboxobjectnullable
Show properties
-
data.restore.account.mailbox.addressstring
-
data.restore.account.mailbox.overwrite_accountboolean
-
-
-
-
data.planobject
Show properties
-
data.plan.idinteger
-
data.plan.server_idinteger
-
data.plan.plan_template_idintegernullable
-
data.plan.namestring
-
data.plan.typestring
One of:
files,database,email,plesk_subscription,cpanel_account -
data.plan.type_labelstring
One of:
Files,Database,Email,Plesk server,cPanel server -
data.plan.schedule_idintegernullable
-
data.plan.compression_profile_idintegernullable
-
data.plan.enabledboolean
-
data.plan.encrypts_new_backupsboolean
True when the plan's next backups will be encrypted with the platform's key (the platform-wide setting or the client's own).
-
data.plan.configobjectnullable
The plan's settings; the keys depend on
type. files:backup_path_ids,incremental,full_every,archive_per_path,dedup_disabled. database:database_connection_id,tables. email:mail_paths,mail_domains,mail_mailboxes,mail_all_domains. plesk_subscription and cpanel_account:account_scope(on Plesk alsoplesk_scope, its pre-4.3.0 name),include_mail,archive_per_component. An empty list[]when nothing is set. -
data.plan.retention_daysintegernullable
-
data.plan.retention_countintegernullable
-
data.plan.serverobject
Show properties
-
data.plan.server.idinteger
-
data.plan.server.namestring
-
data.plan.server.ipstringnullable
-
data.plan.server.statusstring
One of:
pending,online,offline -
data.plan.server.status_labelstring
One of:
Pending,Online,Offline -
data.plan.server.control_panelstring
One of:
none,plesk,cpanel -
data.plan.server.detected_control_panelstringnullable
One of:
none,plesk,cpanel,null -
data.plan.server.last_seen_atstring · date-timenullable
-
data.plan.server.agent_versionstringnullable
-
data.plan.server.account_portal_plugin_statusstringnullable
What the agent last reported for the cPanel Backups plugin:
installed,not_installedorfailed. Null until an agent reports it. -
data.plan.server.enrolled_atstring · date-timenullable
-
data.plan.server.metadataobjectnullable
Free-form details about the server: whatever the API or panel stored, plus
hostnameandosas the agent reports them. An empty list[]when nothing is set. -
data.plan.server.work_dirstringnullable
The directory the agent stages and archives in: an absolute path the agent reports in
agent_work_dirs,autoto let the agent pick the one with the most free space, or null for the agent default. -
data.plan.server.agent_work_dirsobject[]nullable
The work directories the agent reported on its last heartbeat; null until an agent that reports them has checked in. Each entry has
path,default(the agent's first choice),available,free_bytes,total_bytes,source(configfor a directory from the agent's settings,diskfor a detected one) and the nullablemount_point,deviceandfs_type.Show properties
-
data.plan.server.agent_work_dirs.pathstring
-
data.plan.server.agent_work_dirs.defaultboolean
-
data.plan.server.agent_work_dirs.availableboolean
-
data.plan.server.agent_work_dirs.free_bytesinteger
-
data.plan.server.agent_work_dirs.total_bytesinteger
-
data.plan.server.agent_work_dirs.sourcestring
-
data.plan.server.agent_work_dirs.mount_pointstringnullable
-
data.plan.server.agent_work_dirs.devicestringnullable
-
data.plan.server.agent_work_dirs.fs_typestringnullable
-
-
data.plan.server.accounts_synced_atstring · date-timenullable
-
data.plan.server.plesk_subscriptions_synced_atstring · date-timenullable
-
data.plan.server.plesk_sync_requestedboolean
Whether a hosting-account sync is waiting for the agent to pick it up.
-
data.plan.server.created_atstring · date-timenullable
-
data.plan.server.updated_atstring · date-timenullable
-
-
data.plan.scheduleobjectnullable
Show properties
-
data.plan.schedule.idinteger
-
data.plan.schedule.namestring
-
data.plan.schedule.platformboolean
True for a shared catalog item that Clokeep provides to every client (read-only); false for one the client created.
-
data.plan.schedule.cron_expressionstring
-
data.plan.schedule.timezonestring
-
data.plan.schedule.created_atstring · date-timenullable
-
data.plan.schedule.updated_atstring · date-timenullable
-
-
data.plan.compression_profileobjectnullable
Show properties
-
data.plan.compression_profile.idinteger
-
data.plan.compression_profile.namestring
-
data.plan.compression_profile.platformboolean
True for a shared catalog item that Clokeep provides to every client (read-only); false for one the client created.
-
data.plan.compression_profile.archive_formatstring
One of:
tar,zip -
data.plan.compression_profile.archive_format_labelstring
One of:
tar,zip -
data.plan.compression_profile.compressorstring
One of:
none,gzip,zstd -
data.plan.compression_profile.compressor_labelstring
One of:
None,gzip,zstd -
data.plan.compression_profile.levelinteger
-
data.plan.compression_profile.file_extensionstring
-
data.plan.compression_profile.is_defaultboolean
-
data.plan.compression_profile.created_atstring · date-timenullable
-
data.plan.compression_profile.updated_atstring · date-timenullable
-
-
data.plan.plan_templateobjectnullable
Show properties
-
data.plan.plan_template.idinteger
-
data.plan.plan_template.slugstring
-
data.plan.plan_template.namestring
-
data.plan.plan_template.platformboolean
A shared catalog item: read-only to clients.
-
data.plan.plan_template.descriptionstringnullable
-
data.plan.plan_template.typestring
One of:
files,database,email,plesk_subscription,cpanel_account -
data.plan.plan_template.type_labelstring
One of:
Files,Database,Email,Plesk server,cPanel server -
data.plan.plan_template.default_schedule_idintegernullable
-
data.plan.plan_template.default_compression_profile_idintegernullable
-
data.plan.plan_template.default_configobjectnullable
The settings a plan made from this template starts with; the keys are those of a plan's
configfor the sametype. An empty list[]when nothing is set. -
data.plan.plan_template.is_systemboolean
-
data.plan.plan_template.created_atstring · date-timenullable
-
data.plan.plan_template.updated_atstring · date-timenullable
-
-
data.plan.storagesobject[]
Show properties
-
data.plan.storages.idinteger
-
data.plan.storages.storage_idinteger
-
data.plan.storages.priorityinteger
-
data.plan.storages.path_prefixstringnullable
-
data.plan.storages.storageobject
Show properties
-
data.plan.storages.storage.idinteger
-
data.plan.storages.storage.namestring
-
data.plan.storages.storage.driverstring
One of:
s3,sftp,ftp -
data.plan.storages.storage.driver_labelstring
One of:
S3,SFTP,FTP -
data.plan.storages.storage.configobjectnullable
The storage's non-secret settings; the keys depend on
driver. s3:bucket,region,endpoint,use_path_style_endpoint,root. sftp:host,port,root,timeout,host_key. ftp:host,port,root,timeout,ssl,passive(the panel's own connections only; the agent always uses passive mode). Credentials are never returned. An empty list[]when nothing is set. -
data.plan.storages.storage.has_credentialsboolean
-
data.plan.storages.storage.is_activeboolean
-
data.plan.storages.storage.last_tested_atstring · date-timenullable
-
data.plan.storages.storage.last_test_statusstringnullable
The outcome of the last connection test; null before the first.
One of:
success,failed,null -
data.plan.storages.storage.object_lock_enabledbooleannullable
Whether the S3 bucket has Object Lock turned on, as the last connection test found it. Detected, never set through the API; null for SFTP and FTP storages and before an S3 storage's first successful check.
-
data.plan.storages.storage.created_atstring · date-timenullable
-
data.plan.storages.storage.updated_atstring · date-timenullable
-
-
-
data.plan.created_atstring · date-timenullable
-
data.plan.updated_atstring · date-timenullable
-
-
data.serverobject
Show properties
-
data.server.idinteger
-
data.server.namestring
-
data.server.ipstringnullable
-
data.server.statusstring
One of:
pending,online,offline -
data.server.status_labelstring
One of:
Pending,Online,Offline -
data.server.control_panelstring
One of:
none,plesk,cpanel -
data.server.detected_control_panelstringnullable
One of:
none,plesk,cpanel,null -
data.server.last_seen_atstring · date-timenullable
-
data.server.agent_versionstringnullable
-
data.server.account_portal_plugin_statusstringnullable
What the agent last reported for the cPanel Backups plugin:
installed,not_installedorfailed. Null until an agent reports it. -
data.server.enrolled_atstring · date-timenullable
-
data.server.metadataobjectnullable
Free-form details about the server: whatever the API or panel stored, plus
hostnameandosas the agent reports them. An empty list[]when nothing is set. -
data.server.work_dirstringnullable
The directory the agent stages and archives in: an absolute path the agent reports in
agent_work_dirs,autoto let the agent pick the one with the most free space, or null for the agent default. -
data.server.agent_work_dirsobject[]nullable
The work directories the agent reported on its last heartbeat; null until an agent that reports them has checked in. Each entry has
path,default(the agent's first choice),available,free_bytes,total_bytes,source(configfor a directory from the agent's settings,diskfor a detected one) and the nullablemount_point,deviceandfs_type.Show properties
-
data.server.agent_work_dirs.pathstring
-
data.server.agent_work_dirs.defaultboolean
-
data.server.agent_work_dirs.availableboolean
-
data.server.agent_work_dirs.free_bytesinteger
-
data.server.agent_work_dirs.total_bytesinteger
-
data.server.agent_work_dirs.sourcestring
-
data.server.agent_work_dirs.mount_pointstringnullable
-
data.server.agent_work_dirs.devicestringnullable
-
data.server.agent_work_dirs.fs_typestringnullable
-
-
data.server.accounts_synced_atstring · date-timenullable
-
data.server.plesk_subscriptions_synced_atstring · date-timenullable
-
data.server.plesk_sync_requestedboolean
Whether a hosting-account sync is waiting for the agent to pick it up.
-
data.server.created_atstring · date-timenullable
-
data.server.updated_atstring · date-timenullable
-
-
data.logsobject[]
Show properties
-
data.logs.idinteger
-
data.logs.backup_run_idinteger
-
data.logs.levelstring
One of:
debug,info,warning,error -
data.logs.level_labelstring
One of:
Debug,Info,Warning,Error -
data.logs.messagestring
-
data.logs.contextobjectnullable
Extra details a line can carry; the keys vary by line. The agent's own lines carry none, so it is usually null.
-
data.logs.created_atstring · date-time
-
-
data.artifactsobject[]
Show properties
-
data.artifacts.idinteger
-
data.artifacts.backup_run_idintegernullable
-
data.artifacts.storage_idintegernullable
-
data.artifacts.remote_pathstring
Where the archive sits on its storage.
-
data.artifacts.filenamestring
-
data.artifacts.labelstringnullable
A name the agent gives an archive that holds one account, such as its domain (
example.com); null for other backups. -
data.artifacts.size_bytesinteger
The archive's size on storage, in bytes.
-
data.artifacts.checksumstringnullable
The SHA-256 checksum of the archive.
-
data.artifacts.encryptedboolean
True when the archive is encrypted at rest with the platform's key. An encrypted backup is restored through the agent; a download is the encrypted file, and single files cannot be extracted.
-
data.artifacts.file_list_encryptedboolean
True when the backup's file list is encrypted too (encrypted backups made by a current agent). The panel still shows it.
-
data.artifacts.hosting_account_idintegernullable
The hosting account the archive holds, for a Plesk or cPanel backup (for example
17); null otherwise. -
data.artifacts.compression_profile_idintegernullable
-
data.artifacts.indexed_atstring · date-timenullable
When the backup's file list was stored; null for a backup that was never indexed.
-
data.artifacts.index_formatstring
How the backup's file list is kept:
rows(entry rows in the panel's database) orfiles(a manifest file stored beside the archive).One of:
rows,files -
data.artifacts.entry_countintegernullable
How many files and folders the backup lists.
-
data.artifacts.file_countintegernullable
How many of the entries are files.
-
data.artifacts.total_size_bytesintegernullable
The files' size before compression, in bytes.
-
data.artifacts.has_referencesboolean
True when the file list points at files kept in earlier backups of an incremental chain.
-
data.artifacts.manifest_missing_atstring · date-timenullable
When a check found the backup's file list missing from storage (for example
2026-11-21T04:00:00+00:00); null while it is there. -
data.artifacts.storageobjectnullable
Show properties
-
data.artifacts.storage.idinteger
-
data.artifacts.storage.namestring
-
data.artifacts.storage.driverstring
One of:
s3,sftp,ftp -
data.artifacts.storage.driver_labelstring
One of:
S3,SFTP,FTP -
data.artifacts.storage.configobjectnullable
The storage's non-secret settings; the keys depend on
driver. s3:bucket,region,endpoint,use_path_style_endpoint,root. sftp:host,port,root,timeout,host_key. ftp:host,port,root,timeout,ssl,passive(the panel's own connections only; the agent always uses passive mode). Credentials are never returned. An empty list[]when nothing is set. -
data.artifacts.storage.has_credentialsboolean
-
data.artifacts.storage.is_activeboolean
-
data.artifacts.storage.last_tested_atstring · date-timenullable
-
data.artifacts.storage.last_test_statusstringnullable
The outcome of the last connection test; null before the first.
One of:
success,failed,null -
data.artifacts.storage.object_lock_enabledbooleannullable
Whether the S3 bucket has Object Lock turned on, as the last connection test found it. Detected, never set through the API; null for SFTP and FTP storages and before an S3 storage's first successful check.
-
data.artifacts.storage.created_atstring · date-timenullable
-
data.artifacts.storage.updated_atstring · date-timenullable
-
-
data.artifacts.compression_profileobjectnullable
Show properties
-
data.artifacts.compression_profile.idinteger
-
data.artifacts.compression_profile.namestring
-
data.artifacts.compression_profile.platformboolean
True for a shared catalog item that Clokeep provides to every client (read-only); false for one the client created.
-
data.artifacts.compression_profile.archive_formatstring
One of:
tar,zip -
data.artifacts.compression_profile.archive_format_labelstring
One of:
tar,zip -
data.artifacts.compression_profile.compressorstring
One of:
none,gzip,zstd -
data.artifacts.compression_profile.compressor_labelstring
One of:
None,gzip,zstd -
data.artifacts.compression_profile.levelinteger
-
data.artifacts.compression_profile.file_extensionstring
-
data.artifacts.compression_profile.is_defaultboolean
-
data.artifacts.compression_profile.created_atstring · date-timenullable
-
data.artifacts.compression_profile.updated_atstring · date-timenullable
-
-
data.artifacts.created_atstring · date-timenullable
-
data.artifacts.updated_atstring · date-timenullable
-
-
data.created_atstring · date-timenullable
When the run was queued.
-
data.updated_atstring · date-timenullable
-
401
The request carries no valid token: the Authorization: Bearer header is missing, or its token is unknown, revoked or past its expiry date. Send a current personal access token.
-
messagestring
Always
Unauthenticated.
403
The token may not read this. The message says why: Your role does not permit this action. (its owner is not an Admin, Operator or Viewer in the client), This account is disabled., This token is not bound to a client you belong to., or Client suspended.
-
messagestring
What went wrong.
404
Not found
-
messagestring
What went wrong.