API referenceSections

Deleted websites still kept

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

GET /api/v1/tenants/{tid}/deleted-sites

Deleted websites still kept (ADR 0127)

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

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
scopequerystringoptional

servers: every deleted website kept on the tenant's own servers, ended accounts' too (server.read)

Allowed values: "servers"

Responses

200 Kept sites

Content type: application/json

object
  • items array<DeletedSite> required
    • site_id string required
    • tenant_id string required
    • server_id string required
    • hostname string required
    • cause string required

      terminate: its account was ended (ADR 0104); not restorable

      Allowed values: "delete" "terminate"
    • deleted_by string required
    • deleted_at string (date-time) required
    • purge_after string (date-time) required
    • state string required
      Allowed values: "kept" "purging" "purged"
    • job_id string required
    • purged_at string (date-time) | null required
    • aliases array<string> required
    • tls boolean required

      It had a certificate; a restore asks for a new one

    • ftp integer required

      FTP accounts closed with the delete; a restore does not bring them back

    • restorable boolean required
Example
{
  "items": [
    {
      "site_id": "string",
      "tenant_id": "string",
      "server_id": "string",
      "hostname": "string",
      "cause": "delete",
      "deleted_by": "string",
      "deleted_at": "2026-01-01T00:00:00Z",
      "purge_after": "2026-01-01T00:00:00Z",
      "state": "kept",
      "job_id": "string",
      "purged_at": "2026-01-01T00:00:00Z",
      "aliases": [
        "string"
      ],
      "tls": true,
      "ftp": 0,
      "restorable": true
    }
  ]
}

default Error

Content type: application/json

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