List the accounts a batch can restore
Every hosting account of the server, ordered by domain name: under restorable with the backup a batch would restore it from (its newest that can be restored, at or before as_of when given), under refused with the reason it cannot be restored. Reading backup indexes may take a while on a large server. 422 when the server has no Plesk or cPanel, or that panel's integration is switched off.
/api/v1/servers/{server}/restore-candidates
curl 'https://app.clokeep.com/api/v1/servers/12/restore-candidates' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Accept: application/json'<?php
$ch = curl_init('https://app.clokeep.com/api/v1/servers/12/restore-candidates');
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/servers/12/restore-candidates", {
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/servers/12/restore-candidates",
headers={
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json",
},
)
print(response.text)
{
"data": {
"restorable": [
{
"hosting_account_id": 17,
"domain_name": "example.com",
"backup_artifact_id": 2291,
"backup_artifact_ids": [
2291
],
"backup_run_id": 1873,
"backed_up_at": "2026-11-20T02:00:07+00:00",
"components": [
"settings",
"files",
"databases",
"mail"
]
}
],
"refused": [
{
"hosting_account_id": 18,
"domain_name": "shop.example.com",
"reason": "No backup yet"
}
]
}
}{
"message": "Unauthenticated."
}{
"message": "Your role does not permit this action."
}{
"message": "No query results for model [App\\Models\\Server] 12"
}{
"message": "Plesk integration is switched off."
}{
"message": "Too Many Attempts."
}New to the API? Read Restore many accounts at once.
Path Parameters
-
serverintegerrequired
The ID of the server.
Example:
12
Query Parameters
-
as_ofstring · date-time
Use each account's newest backup at or before this moment (ISO 8601, not in the future). Leave it out for the newest backup.
Example:
2026-11-20T00:00:00+00:00
Response
200
The server's accounts, split into those a batch can restore and those it cannot.
-
dataobject
Show properties
-
data.restorableobject[]
Show properties
-
data.restorable.hosting_account_idinteger
-
data.restorable.domain_namestring
-
data.restorable.backup_artifact_idintegernullable
The backup the account would be restored from. When the plan keeps one backup per component, the first of the backup run the account is restored from.
-
data.restorable.backup_artifact_idsinteger[]
Every backup the account would be restored from, in the order they are restored: one, or one per component.
-
data.restorable.backup_run_idintegernullable
The backup run the account is restored from: its newest backup run (at or before
as_ofwhen given) that can be restored. -
data.restorable.backed_up_atstring · date-timenullable
When that backup run started.
-
data.restorable.componentsstring[]
What the backup holds, in the order a batch restores it.
One of:
settings,files,databases,mail
-
-
data.refusedobject[]
Show properties
-
data.refused.hosting_account_idinteger
-
data.refused.domain_namestring
-
data.refused.reasonstring
Why the account cannot be restored, as Browse Backups says it.
-
-
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.
422
The as_of query is not a date (the body then lists it under errors), or the server cannot run a batch: it has no control panel with hosting accounts, or that panel's integration is switched off. The message says which.
-
messagestring
What went wrong.
429
More than 120 requests a minute for this user. Wait the seconds in Retry-After, then retry.
-
messagestring
What went wrong.