API referenceSections

The tenant's sites by hostname; all of them, or a page when limit is given

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

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

The tenant's sites by hostname; all of them, or a page when limit is given (ADR 0189)

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

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
limitqueryintegeroptional
  • minimum 1
  • maximum 200
cursorquerystringoptional

Responses

200 Sites

Content type: application/json

object
  • items array<Site> required
    • tls object required
      • state string required
        Allowed values: "none" "issuing" "renewing" "active" "failed"
      • not_after string (date-time) | null required
      • error_code string required
    • force_https boolean required
    • staging_of string optional
    • preview_of string optional

      The live site this one is a Git preview of (ADR 0160)

    • node object | null optional

      The application the site runs as a service, Node.js or .NET

      • runtime string required
        Allowed values: "node" "dotnet" "python" "java" "go"
      • major string required
      • entry string required
    • php_version string required
    • aspnet boolean required

      ASP.NET 4.x runs in the site's own pool (ADR 0019)

    • classic_asp boolean required

      Classic ASP runs in the site's own pool (ADR 0020)

    • blocked_ips array<string> required

      Refused with 403 by the site's own rule (ADR 0024)

    • stopped boolean required

      Stopped because its account is suspended (ADR 0030)

    • perf SitePerf required
      • static_cache boolean required

        Browsers keep static files for 7 days

      • static_max_age_hours integer optional

        How long browsers keep static files when set by the tuner (ADR 0116); 0 is 7 days

      • compression boolean required

        Also compress responses made by code; needs the IIS performance features

      • always_on boolean required

        Keep the pool running and warm it up; needs the IIS performance features

      • cpu_limit integer optional

        Pool's CPU cap, % of the machine, 0 off; set with /limits (ADR 0036)

      • cpu_cores number optional

        The plan's cap in cores cpu_limit was worked out from on this server (ADR 0126); absent when in percent

      • app_cpu_cores number optional

        Same for the application's cap

      • memory_mb integer optional

        Recycle the pool past this private memory, 0 off; set with /limits

      • shield boolean optional

        Block an address that sends too many requests (IIS Dynamic IP Restrictions, ADR 0052); not a WAF

      • app_cpu_limit integer optional

        The site's application's CPU cap (ADR 0091), 0 off

      • app_memory_mb integer optional

        The site's application's memory cap, 0 off

      • limits_custom boolean optional

        Caps set by the provider by hand; otherwise they follow the plan

    • web SiteWeb required

      A site's IIS settings (ADR 0061). Lists replace what was there.

      • default_docs array<string> required

        In order; empty keeps the server's list

        • max items 10
      • directory_browsing boolean required
      • error_pages array<object> required
        • max items 20
        • status integer required
          Allowed values: 400 403 404 405 406 410 412 413 414 415 429 500 501 502 503
        • mode string required

          page: a path of the site, served with the original status; redirect: a full http(s) URL

          Allowed values: "page" "redirect"
        • target string required
      • mime_types array<object> required
        • max items 50
        • ext string required

          .webp

        • type string required

          Empty stops serving the extension

      • virtual_dirs array<object> required
        • max items 20
        • path string required

          URL path, /media

        • folder string required

          Inside the site's public folder, assets/media; must exist

        • app boolean required

          An IIS application

        • own_pool boolean required

          The application gets its own pool (zp-<site>-<path>)

      • redirects array<object> required
        • max items 50
        • from string required
        • match string required

          prefix / is the whole site

          Allowed values: "exact" "prefix"
        • to string required

          A path of the site or a full http(s) URL

        • code integer required
          Allowed values: 301 302 307
        • keep_path boolean required

          prefix only: append the rest of the path

      • canonical string required

        Preferred name; the other must be a verified alias

        Allowed values: "" "www" "bare"
      • hotlink object required
        • no other properties
        • enabled boolean required
        • extensions array<string> required

          jpg, png

        • allowed array<string> required

          Other sites allowed; the site's own names always are

        • allow_empty boolean required

          Allow requests without a Referer

    • php_settings SitePHPSettings required

      php.ini directives from a fixed list, extensions and FastCGI limits (ADR 0062). Any other field is refused.

      • memory_mb integer required
        • minimum 32
        • maximum 4096
      • upload_mb integer required
        • minimum 1
        • maximum 4096
      • post_mb integer required

        At least upload_mb

        • minimum 1
        • maximum 4096
      • max_execution_time integer required
        • minimum 1
        • maximum 3600
      • max_input_vars integer required
        • minimum 100
        • maximum 100000
      • display_errors boolean required
      • error_reporting string required
        Allowed values: "default" "all" "errors"
      • timezone string required

        IANA zone, Asia/Ho_Chi_Minh

      • opcache boolean required
      • opcache_revalidate boolean required
      • open_basedir boolean optional

        Keep PHP inside the site's public and tmp folders (ADR 0120). Absent on a site made before the switch, which keeps it on; left out of a change, the site's value stays. Not the boundary between sites: the pool's own identity and ACLs are

      • extensions array<string> required
      • fastcgi object required

        Only a user who manages the server may change these

        • no other properties
        • instance_max_requests integer required
          • minimum 100
          • maximum 1000000
        • activity_timeout integer required
          • minimum 10
          • maximum 3600
        • request_timeout integer required
          • minimum 10
          • maximum 3600
        • max_instances integer required

          0: the panel picks one per CPU, 2 to 8 (ADR 0124)

          • minimum 0
          • maximum 100
    • pool SitePool required

      The site's own application pool (ADR 0062). Its identity is not a setting.

      • idle_minutes integer required
        • minimum 1
        • maximum 43200
      • recycle_minutes integer required

        0 off, else 30-43200

      • recycle_at array<string> required
        • max items 4
      • enable_32bit boolean required
      • pipeline string required
        Allowed values: "Integrated" "Classic"
      • clr string required

        Used while ASP.NET 4.x is off; on, the pool runs v4.0

        Allowed values: "" "v4.0"
      • queue_length integer required

        Only a user who manages the server may change it

        • minimum 10
        • maximum 65535
    • aspnet_settings SiteASPNETSettings required

      A site's ASP.NET settings (ADR 0090), written at the server's level for the site; an application's own web.config may override them.

      • framework object required

        .NET Framework (system.web). Changing it needs ASP.NET 4.x on for the site.

        • no other properties
        • debug boolean required
        • custom_errors string required
          Allowed values: "On" "Off" "RemoteOnly"
        • session_mode string required
          Allowed values: "InProc" "Off"
        • session_timeout integer required
          • minimum 1
          • maximum 1440
        • validation string required

          Keys are always AutoGenerate,IsolateApps,IsolateByAppId

          Allowed values: "HMACSHA256" "HMACSHA512"
      • core object required

        ASP.NET Core Module (aspNetCore section). Changing it needs ANCM on the server.

        • no other properties
        • hosting_model string required
          Allowed values: "inprocess" "outofprocess"
        • environment string required

          ASPNETCORE_ENVIRONMENT

          • pattern ^[A-Za-z][A-Za-z0-9_.-]{0,31}$
        • stdout_log boolean required
        • stdout_max_mb integer required
          • minimum 1
          • maximum 1024
        • stdout_keep_files integer required
          • minimum 1
          • maximum 50
    • webdeploy boolean required

      The site's IIS Manager user can publish with Web Deploy (ADR 0089)

    • app object | null required
      • name string required
        Allowed values: "wordpress" "node" "dotnet" "python" "java" "go" "container"
      • state string required
        Allowed values: "installing" "active" "failed"
      • error_code string required
      • admin_user string required
    • verify_name string required
    • verify_value string required
    • verified_at string (date-time) | null required
    • verified_via string required
      Allowed values: "" "dns" "override"
    • id string required
    • tenant_id string required
    • server_id string required
    • hostname string required
    • job_id string required
    • error_code string required
    • created_at string (date-time) required
    • status string required
      Allowed values: "provisioning" "active" "failed" "deleting" "delete_failed"
  • next_cursor string required
Example
{
  "items": [
    {
      "tls": {
        "state": "none",
        "not_after": "2026-01-01T00:00:00Z",
        "error_code": "string"
      },
      "force_https": true,
      "staging_of": "string",
      "preview_of": "string",
      "node": {
        "runtime": "node",
        "major": "string",
        "entry": "string"
      },
      "php_version": "string",
      "aspnet": true,
      "classic_asp": true,
      "blocked_ips": [
        "string"
      ],
      "stopped": true,
      "perf": {
        "static_cache": true,
        "static_max_age_hours": 0,
        "compression": true,
        "always_on": true,
        "cpu_limit": 0,
        "cpu_cores": 0,
        "app_cpu_cores": 0,
        "memory_mb": 0,
        "shield": true,
        "app_cpu_limit": 0,
        "app_memory_mb": 0,
        "limits_custom": true
      },
      "web": {
        "default_docs": [
          "string"
        ],
        "directory_browsing": true,
        "error_pages": [
          {
            "status": 400,
            "mode": "page",
            "target": "string"
          }
        ],
        "mime_types": [
          {
            "ext": "string",
            "type": "string"
          }
        ],
        "virtual_dirs": [
          {
            "path": "string",
            "folder": "string",
            "app": true,
            "own_pool": true
          }
        ],
        "redirects": [
          {
            "from": "string",
            "match": "exact",
            "to": "string",
            "code": 301,
            "keep_path": true
          }
        ],
        "canonical": "",
        "hotlink": {
          "enabled": true,
          "extensions": [
            "string"
          ],
          "allowed": [
            "string"
          ],
          "allow_empty": true
        }
      },
      "php_settings": {
        "memory_mb": 32,
        "upload_mb": 1,
        "post_mb": 1,
        "max_execution_time": 1,
        "max_input_vars": 100,
        "display_errors": true,
        "error_reporting": "default",
        "timezone": "string",
        "opcache": true,
        "opcache_revalidate": true,
        "open_basedir": true,
        "extensions": [
          "string"
        ],
        "fastcgi": {
          "instance_max_requests": 100,
          "activity_timeout": 10,
          "request_timeout": 10,
          "max_instances": 0
        }
      },
      "pool": {
        "idle_minutes": 1,
        "recycle_minutes": 0,
        "recycle_at": [
          "string"
        ],
        "enable_32bit": true,
        "pipeline": "Integrated",
        "clr": "",
        "queue_length": 10
      },
      "aspnet_settings": {
        "framework": {
          "debug": true,
          "custom_errors": "On",
          "session_mode": "InProc",
          "session_timeout": 1,
          "validation": "HMACSHA256"
        },
        "core": {
          "hosting_model": "inprocess",
          "environment": "string",
          "stdout_log": true,
          "stdout_max_mb": 1,
          "stdout_keep_files": 1
        }
      },
      "webdeploy": true,
      "app": {
        "name": "wordpress",
        "state": "installing",
        "error_code": "string",
        "admin_user": "string"
      },
      "verify_name": "string",
      "verify_value": "string",
      "verified_at": "2026-01-01T00:00:00Z",
      "verified_via": "",
      "id": "string",
      "tenant_id": "string",
      "server_id": "string",
      "hostname": "string",
      "job_id": "string",
      "error_code": "string",
      "created_at": "2026-01-01T00:00:00Z",
      "status": "provisioning"
    }
  ],
  "next_cursor": "string"
}

default Error

Content type: application/json

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