> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://api.docs.modulards.com/modular-ds-public-api/backups/backup-settings/retrieve-a-website-s-backup-settings/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://api.docs.modulards.com/_mcp/server. # Retrieve a website's backup settings GET https://api.modulards.com/api/public/v1/backup-services/{site_preset_backup} Returns how one website is backed up: whether its automatic backups are on, the schedule it inherits from its global configuration, which areas are copied (`filesystem` and `content.included`) and the exclusions configured in the dashboard. The values read back under the same keys "Update a website's backup settings" accepts. The id is the website's backup settings id: read it from the `site_preset_backup` include of "Retrieve a website" (`?include=site_preset_backup`, which also carries the global configuration the website uses) or from `meta.updated` of "Assign websites to a backup global configuration". A website that was never assigned a global configuration has no backup settings. Reference: https://api.docs.modulards.com/modular-ds-public-api/backups/backup-settings/retrieve-a-website-s-backup-settings ## Authentication - `Authorization` header (bearer token, required) — Personal access token created in the Modular DS dashboard; read-only tokens can only call GET endpoints. ## Request ### Path parameters - `site_preset_backup` (string, required) ### Query parameters - `include` (string, optional) — Relations to add to the answer: `preset` (the global configuration the website uses) and `last_backup` (its last backup), comma separated. None by default. Any other name, including the camelCase `lastBackup`, answers 400. ## Response ### 200 200 - Backup service / 200 - Backup service with preset and last backup (include=preset,last_backup) - `data` (ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaData, optional) - `included` (list of ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaIncludedItems, optional) - `jsonapi` (ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaJsonapi, optional) ## Errors ### 400 Bad Request Error 400 - Unknown include - `errors` (list of ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaErrorsItems, optional) - `jsonapi` (ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaJsonapi, optional) ## Types ### ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaData - `attributes` (ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaDataAttributes, optional) - `id` (string, optional) - `links` (ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaDataLinks, optional) - `relationships` (ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaDataRelationships, optional) - `type` (string, optional) ### ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaIncludedItems - `attributes` (ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaIncludedItemsAttributes, optional) - `id` (string, optional) - `links` (ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaIncludedItemsLinks, optional) - `type` (string, optional) ### ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaJsonapi - `version` (string, optional) ### ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaErrorsItems - `detail` (string, optional) - `source` (ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaErrorsItemsSource, optional) - `status` (string, optional) - `title` (string, optional) ### ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaDataAttributes - `content` (ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaDataAttributesContent, optional) - `created_at` (string, optional) - `filesystem` (enum, optional) — default copies the WordPress files and the database as two areas; custom lets each area be chosen. - Allowed values: `default`, `custom` - `last_request` (string, optional) - `next_request` (string, optional) - `schedule` (ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaDataAttributesSchedule, optional) - `status` (string, optional) - `updated_at` (string, optional) ### ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaDataLinks - `self` (string, optional) ### ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaDataRelationships - `last_backup` (ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaDataRelationshipsLastBackup, optional) - `preset` (ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaDataRelationshipsPreset, optional) ### ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaIncludedItemsAttributes - `attempts` (double, optional) - `backup_type` (string, optional) - `comment` (any, optional, nullable) - `created_at` (string, optional) - `exclusion` (ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaIncludedItemsAttributesExclusion, optional) - `incremental` (boolean, optional) - `is_default` (boolean, optional) - `is_favorite` (boolean, optional) - `method` (string, optional) - `name` (string, optional) - `phase` (string, optional) - `region` (string, optional) - `restored_at` (any, optional, nullable) - `retention_period` (double, optional) - `schedule` (ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaIncludedItemsAttributesSchedule, optional) - `site_id` (double, optional) - `size` (double, optional) - `status` (string, optional) - `updated_at` (string, optional) ### ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaIncludedItemsLinks - `self` (string, optional) ### ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaErrorsItemsSource - `parameter` (string, optional) ### ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaDataAttributesContent - `excluded` (ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaDataAttributesContentExcluded, optional) - `included` (list of string, optional) — Areas that are copied. ### ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaDataAttributesSchedule - `day_month` (any, optional, nullable) - `day_week` (any, optional, nullable) - `frequency` (string, optional) - `start_hour` (string, optional) - `timezone` (string, optional) ### ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaDataRelationshipsLastBackup - `data` (ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaDataRelationshipsLastBackupData, optional) ### ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaDataRelationshipsPreset - `data` (ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaDataRelationshipsPresetData, optional) ### ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaIncludedItemsAttributesExclusion - `extensions` (list of any, optional) - `max_file_size` (any, optional, nullable) ### ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaIncludedItemsAttributesSchedule - `day_month` (any, optional, nullable) - `day_week` (any, optional, nullable) - `frequency` (string, optional) - `start_hour` (string, optional) - `timezone` (string, optional) ### ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaDataAttributesContentExcluded - `content` (any, optional, nullable) - `core` (any, optional, nullable) - `database` (list of any, optional) - `files` (list of any, optional) - `fonts` (any, optional, nullable) - `mu_plugins` (any, optional, nullable) - `plugins` (any, optional, nullable) - `themes` (any, optional, nullable) - `uploads` (any, optional, nullable) ### ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaDataRelationshipsLastBackupData - `id` (string, optional) - `type` (string, optional) ### ApiPublicV1BackupServicesSitePresetBackupGetResponsesContentApplicationJsonSchemaDataRelationshipsPresetData - `id` (string, optional) - `type` (string, optional) ## Examples ### 200 - Backup service **Response** ```json { "data": { "attributes": { "content": { "excluded": { "content": null, "core": null, "database": [], "files": [], "fonts": null, "mu_plugins": null, "plugins": null, "themes": null, "uploads": null }, "included": [ "core", "database" ] }, "created_at": "2026-09-01T08:30:00.000000Z", "filesystem": "default", "last_request": "2026-09-17T01:00:00.000000Z", "next_request": "2026-09-18T01:00:00.000000Z", "schedule": { "day_month": null, "day_week": null, "frequency": "daily", "start_hour": "03:00", "timezone": "Europe/Madrid" }, "status": "enabled", "updated_at": "2026-09-17T01:00:05.000000Z" }, "id": "845", "links": { "self": "https://api.modulards.com/api/public/v1/backup-services/845" }, "type": "site-preset-backups" }, "jsonapi": { "version": "1.1" } } ``` **SDK Code** ```python 200 - Backup service import requests url = "https://api.modulards.com/api/public/v1/backup-services/site_preset_backup" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript 200 - Backup service const url = 'https://api.modulards.com/api/public/v1/backup-services/site_preset_backup'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go 200 - Backup service package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.modulards.com/api/public/v1/backup-services/site_preset_backup" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby 200 - Backup service require 'uri' require 'net/http' url = URI("https://api.modulards.com/api/public/v1/backup-services/site_preset_backup") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java 200 - Backup service import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://api.modulards.com/api/public/v1/backup-services/site_preset_backup") .header("Authorization", "Bearer ") .asString(); ``` ```php 200 - Backup service request('GET', 'https://api.modulards.com/api/public/v1/backup-services/site_preset_backup', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp 200 - Backup service using RestSharp; var client = new RestClient("https://api.modulards.com/api/public/v1/backup-services/site_preset_backup"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift 200 - Backup service import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://api.modulards.com/api/public/v1/backup-services/site_preset_backup")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ``` ### 200 - Backup service with preset and last backup (include=preset,last_backup) **Response** ```json { "data": { "attributes": { "content": { "excluded": { "content": null, "core": null, "database": [], "files": [], "fonts": null, "mu_plugins": null, "plugins": null, "themes": null, "uploads": null }, "included": [ "core", "database" ] }, "created_at": "2026-09-01T08:30:00.000000Z", "filesystem": "default", "last_request": "2026-09-17T01:00:00.000000Z", "next_request": "2026-09-18T01:00:00.000000Z", "schedule": { "day_month": null, "day_week": null, "frequency": "daily", "start_hour": "03:00", "timezone": "Europe/Madrid" }, "status": "enabled", "updated_at": "2026-09-17T01:00:05.000000Z" }, "id": "845", "links": { "self": "https://api.modulards.com/api/public/v1/backup-services/845" }, "relationships": { "last_backup": { "data": { "id": "3021", "type": "site-backups" } }, "preset": { "data": { "id": "12", "type": "preset-backups" } } }, "type": "site-preset-backups" }, "included": [ { "attributes": { "created_at": "2026-09-01T08:00:00.000000Z", "exclusion": { "extensions": [], "max_file_size": null }, "incremental": false, "is_default": false, "name": "Daily backup", "region": "eu-west-1", "retention_period": 30, "schedule": { "day_month": null, "day_week": null, "frequency": "daily", "start_hour": "03:00", "timezone": "Europe/Madrid" }, "status": "enabled", "updated_at": "2026-09-01T08:00:00.000000Z" }, "id": "12", "links": { "self": "https://api.modulards.com/api/public/v1/preset-backups/12" }, "type": "preset-backups" }, { "attributes": { "attempts": 0, "backup_type": "full", "comment": null, "created_at": "2026-09-17T01:00:00.000000Z", "is_favorite": false, "method": "automatic", "phase": "done", "restored_at": null, "site_id": 101, "size": 42292405, "status": "done", "updated_at": "2026-09-17T01:04:12.000000Z" }, "id": "3021", "links": { "self": "https://api.modulards.com/api/public/v1/site-backups/3021" }, "type": "site-backups" } ], "jsonapi": { "version": "1.1" } } ``` **SDK Code** ```python 200 - Backup service with preset and last backup (include=preset,last_backup) import requests url = "https://api.modulards.com/api/public/v1/backup-services/site_preset_backup" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript 200 - Backup service with preset and last backup (include=preset,last_backup) const url = 'https://api.modulards.com/api/public/v1/backup-services/site_preset_backup'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go 200 - Backup service with preset and last backup (include=preset,last_backup) package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.modulards.com/api/public/v1/backup-services/site_preset_backup" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby 200 - Backup service with preset and last backup (include=preset,last_backup) require 'uri' require 'net/http' url = URI("https://api.modulards.com/api/public/v1/backup-services/site_preset_backup") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java 200 - Backup service with preset and last backup (include=preset,last_backup) import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://api.modulards.com/api/public/v1/backup-services/site_preset_backup") .header("Authorization", "Bearer ") .asString(); ``` ```php 200 - Backup service with preset and last backup (include=preset,last_backup) request('GET', 'https://api.modulards.com/api/public/v1/backup-services/site_preset_backup', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp 200 - Backup service with preset and last backup (include=preset,last_backup) using RestSharp; var client = new RestClient("https://api.modulards.com/api/public/v1/backup-services/site_preset_backup"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift 200 - Backup service with preset and last backup (include=preset,last_backup) import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://api.modulards.com/api/public/v1/backup-services/site_preset_backup")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "GET" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```