API referenceSections

Start an import; the token is shown once

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

POST /api/v1/tenants/{tid}/imports

Start an import; the token is shown once

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.

Responses

201 Started

Content type: application/json

object
  • import ImportSession required
    • id string required
    • tenant_id string required
    • state string required
      Allowed values: "waiting" "inventory" "creating" "planned" "placing" "restoring" "done" "failed"
    • target_tenant_id string required
    • target_server_id string required
    • backup_id string required
    • restore_job_id string required
    • error_code string required
    • created_at string (date-time) required
    • expires_at string (date-time) required
    • updated_at string (date-time) required
    • inventory object | null required
      • host string required
      • plesk boolean required
      • warnings array<string> required
      • sites array<object> required
        • key string required
        • hosts array<string> required
        • path string required
        • files integer required
        • bytes integer required
        • subscription string optional
      • databases array<object> required
        • name string required
        • bytes integer required
      • mail array<object> required
        • domain string required
        • mailboxes array<string> required
        • bytes integer required
    • items array<object> required
      • kind string required
        Allowed values: "site" "database" "mail" "mailbox"
      • from string required
      • to string required
      • login string optional
      • password_kept boolean optional

        Done, and the new password can still be shown once through POST .../passwords

  • token string required
Example
{
  "import": {
    "id": "string",
    "tenant_id": "string",
    "state": "waiting",
    "target_tenant_id": "string",
    "target_server_id": "string",
    "backup_id": "string",
    "restore_job_id": "string",
    "error_code": "string",
    "created_at": "2026-01-01T00:00:00Z",
    "expires_at": "2026-01-01T00:00:00Z",
    "updated_at": "2026-01-01T00:00:00Z",
    "inventory": {
      "host": "string",
      "plesk": true,
      "warnings": [
        "string"
      ],
      "sites": [
        {
          "key": "string",
          "hosts": [
            "string"
          ],
          "path": "string",
          "files": 0,
          "bytes": 0,
          "subscription": "string"
        }
      ],
      "databases": [
        {
          "name": "string",
          "bytes": 0
        }
      ],
      "mail": [
        {
          "domain": "string",
          "mailboxes": [
            "string"
          ],
          "bytes": 0
        }
      ]
    },
    "items": [
      {
        "kind": "site",
        "from": "string",
        "to": "string",
        "login": "string",
        "password_kept": true
      }
    ]
  },
  "token": "string"
}

default Error

Content type: application/json

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