Get Workspace Backups
Get the backup summary of the specified workspace, including its backup schedule and the list of backups.
REQUEST URI
https://<ZohoAnalytics_Server_URI>/restapi/v2/workspaces/<workspace-id>/backups
Get
oauthscope: ZohoAnalytics.metadata.read
Sample Request:
Copiedcurl "https://analyticsapi.zoho.com/restapi/v2/workspaces/<workspace-id>/backups" \
-H 'ZANALYTICS-ORGID: <org-id>' \
-H 'Authorization: Zoho-oauthtoken <access_token>'Copiedusing System;
using System.Collections.Generic;
using System.Text.Json;
using ZohoAnalytics;
namespace ZohoAnalyticsTest
{
class Program
{
long orgId = 55522777;
long workspaceId = 35130000001055707;
public void GetWorkspaceBackups(IAnalyticsClient ac)
{
IWorkspaceAPI workspace = ac.GetWorkspaceInstance(orgId, workspaceId);
JsonElement result = workspace.GetWorkspaceBackups();
Console.WriteLine(result);
}
static void Main(string[] args)
{
string clientId = "1000.xxxxxxx";
string clientSecret = "xxxxxxx";
string refreshToken = "1000.xxxxxxx.xxxxxxx";
IAnalyticsClient ac = new AnalyticsClient(clientId, clientSecret, refreshToken);
Program obj = new Program();
obj.GetWorkspaceBackups(ac);
}
}
}Copiedpackage main
import (
"fmt"
ZAnalytics "zoho/pkg/analyticsclient"
)
var (
clientId = "1000.xxxxxxx"
clientSecret = "xxxxxxx"
refreshToken = "1000.xxxxxxx.xxxxxxx"
orgId = "55522777"
workspaceId = "35130000001055707"
)
func GetWorkspaceBackups(ac ZAnalytics.Client) {
workspace := ZAnalytics.GetWorkspaceInstance(&ac, orgId, workspaceId)
result, exception := workspace.GetWorkspaceBackups()
if exception != nil {
fmt.Println(exception.ErrorMessage)
return
}
fmt.Println(result)
}
func main() {
ac := ZAnalytics.GetAnalyticsClient(clientId, clientSecret, refreshToken)
GetWorkspaceBackups(ac)
}Copiedimport com.zoho.analytics.client.*;
import org.json.*;
public class Test {
private long orgId = 55522777l;
private long workspaceId = 35130000001055707l;
public static void main(String args[]) {
String clientId = "1000.xxxxxxx";
String clientSecret = "xxxxxxx";
String refreshToken = "1000.xxxxxxx.xxxxxxx";
Test tObj = new Test();
AnalyticsClient ac = new AnalyticsClient(clientId, clientSecret, refreshToken);
try {
tObj.getWorkspaceBackups(ac);
} catch (Exception ex) {
ex.printStackTrace();
}
}
public void getWorkspaceBackups(AnalyticsClient ac) throws Exception {
WorkspaceAPI workspace = ac.getWorkspaceInstance(orgId, workspaceId);
JSONObject result = workspace.getWorkspaceBackups();
System.out.println(result);
}
}Copied<?php
require 'AnalyticsClient.php';
class Test {
public $ac;
public $org_id = "55522777";
public $workspace_id = "35130000001055707";
function __construct() {
$this->ac = new AnalyticsClient("1000.xxxxxxx", "xxxxxxx", "1000.xxxxxxx.xxxxxxx");
}
function getWorkspaceBackups() {
$workspace = $this->ac->getWorkspaceInstance($this->org_id, $this->workspace_id);
$response = $workspace->getWorkspaceBackups();
print_r($response);
}
}
$obj = new Test();
$obj->getWorkspaceBackups();
?>Copiedfrom AnalyticsClient import AnalyticsClient
class Config:
CLIENTID = "1000.xxxxxxx"
CLIENTSECRET = "xxxxxxx"
REFRESHTOKEN = "1000.xxxxxxx.xxxxxxx"
ORGID = "55522777"
WORKSPACEID = "35130000001055707"
class Sample:
ac = AnalyticsClient(Config.CLIENTID, Config.CLIENTSECRET, Config.REFRESHTOKEN)
def get_workspace_backups(self, ac):
workspace = ac.get_workspace_instance(Config.ORGID, Config.WORKSPACEID)
result = workspace.get_workspace_backups()
print(result)
obj = Sample()
obj.get_workspace_backups(obj.ac)Copiedvar analyticsClient = require('./AnalyticsClient');
var ac = new analyticsClient('1000.xxxxxxx', 'xxxxxxx', '1000.xxxxxxx.xxxxxxx');
var orgId = '55522777';
var workspaceId = '35130000001055707';
var workspace = ac.getWorkspaceInstance(orgId, workspaceId);
workspace.getWorkspaceBackups().then((result) => { console.log(result); }).catch((error) => { console.log(error); });CopiedorgId = "55522777";
workspaceId = "35130000001055707";
headersMap = Map();
headersMap.put("ZANALYTICS-ORGID", orgId);
response = invokeurl
[
url :"https://analyticsapi.zoho.com/restapi/v2/workspaces/" + workspaceId + "/backups"
type :GET
headers:headersMap
connection:"analytics_oauth_connection"
];
info response;Copiedrequire 'zoho_analytics_client'
class Config
ORGID = "55522777"
WORKSPACEID = "35130000001055707"
end
class Sample
def initialize
@ac = AnalyticsClient.new.with_data_center("US").with_oauth({
"clientId" => "1000.xxxxxxx",
"clientSecret" => "xxxxxxx",
"refreshToken" => "1000.xxxxxxx.xxxxxxx"
}).build
end
def get_workspace_backups
workspace = @ac.get_workspace_instance(Config::ORGID, Config::WORKSPACEID)
result = workspace.get_workspace_backups
puts result
end
end
obj = Sample.new
obj.get_workspace_backupsDownload client libraries: C# | GO | JAVA | PHP | PYTHON | NodeJS | Ruby
Sample Response:
CopiedHTTP/1.1 200 OK
Content-Type:application/json;charset=UTF-8
{
"status": "success",
"summary": "Get workspace backups",
"data": {
"backupEnabled": true,
"isInstantBackupInProgress": false,
"isLastBackupFailed": false,
"lastBackupFailedTime": "",
"scheduleInfo": {
"nextScheduleTime": "2026-09-08 02:00:00",
"periodicUnit": "WEEK",
"calendarFreq": "1",
"calendarTime": "02:00",
"calendarDay": "MONDAY",
"calendarDate": ""
},
"backups": [
{
"backupId": "466206000000318041",
"createdDate": "01-Sep-2026",
"createdDateWithTime": "01-Sep-2026 02:00:12 IST",
"isLatestBackup": true,
"version": 5,
"backupMode": "STRUCTURE_AND_DATA",
"isReadyToDownload": true,
"isFailed": false
},
{
"backupId": "466206000000305019",
"createdDate": "25-Aug-2026",
"createdDateWithTime": "25-Aug-2026 02:00:08 IST",
"isLatestBackup": false,
"version": 4,
"backupMode": "STRUCTURE_AND_DATA",
"isReadyToDownload": true,
"isFailed": false
}
]
}
}