API referenceSections

Choose what to move and to which account and server; the panel makes the targets

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/{iid}/plan may answer 202

Choose what to move and to which account and server; the panel makes the targets

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

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
iidpathstringrequired
X-CSRF-Tokenheaderstringoptional

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

Request body

required

Content type: application/json

  • tenant_id string required
  • server_id string required
  • sites array<object> optional
    • key string required
    • hostname string required
  • databases array<object> optional
    • name string required
    • target string required
  • mail array<object> optional
    • domain string required
    • target string required
Example
{
  "tenant_id": "string",
  "server_id": "string",
  "sites": [
    {
      "key": "string",
      "hostname": "string"
    }
  ],
  "databases": [
    {
      "name": "string",
      "target": "string"
    }
  ],
  "mail": [
    {
      "domain": "string",
      "target": "string"
    }
  ]
}

Responses

202 Making the targets

Content type: application/json

  • 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

Example
{
  "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
    }
  ]
}

default Error

Content type: application/json

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