API referenceSections

The restore tests of this account's own backups, newest first, for its backups page

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

GET /api/v1/tenants/{tid}/restore-test-history

The restore tests of this account's own backups, newest first, for its backups page (ADR 0188)

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired

Responses

200 History

Content type: application/json

object
  • no other properties
  • manage boolean required
  • available boolean required

    Shown: the seller always, the account when its plan includes restore tests

  • tests array<RestoreTest> required
    • id string required
    • tenant_id string required

      The account tested

    • policy_tenant_id string required
    • backup_id string required
    • server_id string required

      Server the sandbox ran on

    • job_id string required
    • trigger string required
      Allowed values: "schedule" "manual"
    • state string required
      Allowed values: "running" "passed" "warning" "failed"
    • error_code string required

      The first failing (or, for warning, first warning) check's code, or why the test could not run

    • target string required

      Where the backup was read from: s3, sftp, gdrive, onedrive, dropbox or local

    • links integer required

      Backups in the chain read

    • rto_ms integer required

      Time the restore work took: an estimate of the time to restore the account

    • rpo_seconds integer required

      Age of the backup when tested: what a restore then would lose

    • backup_at string (date-time) | null required
    • started_at string (date-time) required
    • finished_at string (date-time) | null required
    • checks array<RestoreTestCheck> required
      • id string required
        Allowed values: "source" "sandbox" "fetch" "hash" "archive" "files" "mail" "database" "site" "cleanup"
      • part string optional

        kind/name (site/<id>, database/<name>, mail/<domain>, backup/<id>); absent for the whole backup

      • state string required
        Allowed values: "pass" "warning" "fail" "skipped"
      • code string optional

        Why, when not pass: e.g. HASH_MISMATCH, FILES_MISMATCH, DB_TABLES_MISMATCH, SITE_HTTP_STATUS, SITE_APP_NOT_RUN, LOCAL_ONLY, CLEANUP_LEFT

      • details object optional

        Counts and short facts: files, bytes, expected_files, tables, sample_rows, status, location, error

    • phases_ms map<string, integer> required

      fetch, verify, database, site

Example
{
  "manage": true,
  "available": true,
  "tests": [
    {
      "id": "string",
      "tenant_id": "string",
      "policy_tenant_id": "string",
      "backup_id": "string",
      "server_id": "string",
      "job_id": "string",
      "trigger": "schedule",
      "state": "running",
      "error_code": "string",
      "target": "string",
      "links": 0,
      "rto_ms": 0,
      "rpo_seconds": 0,
      "backup_at": "2026-01-01T00:00:00Z",
      "started_at": "2026-01-01T00:00:00Z",
      "finished_at": "2026-01-01T00:00:00Z",
      "checks": [
        {
          "id": "source",
          "part": "string",
          "state": "pass",
          "code": "string",
          "details": {}
        }
      ],
      "phases_ms": {
        "key": 0
      }
    }
  ]
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required