API referenceSections

Start a backup of the account on a server, full or databases only

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

POST /api/v1/tenants/{tid}/backups may answer 202

Start a backup of the account on a server, full or databases only

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

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Request body

required

Content type: application/json

object
  • server_id string required
  • kind string required

    incremental builds on the newest backup of the chain, or is made full when there is none it can use

    Allowed values: "full" "databases" "incremental"
Example
{
  "server_id": "string",
  "kind": "full"
}

Responses

202 Running

Content type: application/json

  • id string required
  • tenant_id string required
  • server_id string required
  • kind string required
    Allowed values: "full" "databases" "incremental"
  • trigger string required
    Allowed values: "manual" "schedule"
  • state string required
    Allowed values: "running" "succeeded" "failed"
  • job_id string required
  • size integer required
  • sha256 string required
  • local boolean required

    A copy is kept on the server

  • remote boolean required

    A copy is in the account's S3 bucket or on its SFTP server

  • remote_target string optional

    Where the remote copy went ('' is S3, from before ADR 0078)

    Allowed values: "" "s3" "sftp"
  • base_id string optional

    The backup an incremental one builds on (ADR 0088)

  • chain_depth integer optional

    0 for a full backup, 1..14 for an incremental one

  • chain_root string optional

    The full backup the chain starts from, when the backup is part of a chain

  • dependents integer optional

    How many backups build on this one

  • snapshot object optional

    How files were read (ADR 0113): vss from a shadow copy, or live; warning is why not, or a cleanup that failed. Absent in older backups.

    • method string required
      Allowed values: "vss" "live"
    • warning string optional
  • upload_error string required
  • error_code string required
  • created_at string (date-time) required
  • finished_at string (date-time) | null required
  • parts array<BackupPart> required
    • kind string required
      Allowed values: "site" "database" "mail"
    • name string required
    • label string optional
    • files integer required
    • bytes integer required
    • skipped integer optional
    • incremental boolean optional

      Only the files changed since the backup before it in the chain (ADR 0088)

Example
{
  "id": "string",
  "tenant_id": "string",
  "server_id": "string",
  "kind": "full",
  "trigger": "manual",
  "state": "running",
  "job_id": "string",
  "size": 0,
  "sha256": "string",
  "local": true,
  "remote": true,
  "remote_target": "",
  "base_id": "string",
  "chain_depth": 0,
  "chain_root": "string",
  "dependents": 0,
  "snapshot": {
    "method": "vss",
    "warning": "string"
  },
  "upload_error": "string",
  "error_code": "string",
  "created_at": "2026-01-01T00:00:00Z",
  "finished_at": "2026-01-01T00:00:00Z",
  "parts": [
    {
      "kind": "site",
      "name": "string",
      "label": "string",
      "files": 0,
      "bytes": 0,
      "skipped": 0,
      "incremental": true
    }
  ]
}

default Error

Content type: application/json

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