API referenceSections

List resellers (provider only)

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

GET /api/v1/tenants/{tid}/provisioning/resellers

List resellers (provider only)

Permissions: plan.manage.

Authentication: API key (Authorization: Bearer …) or session cookie __Host-panel_session.

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
limitqueryintegeroptional
  • minimum 1
  • maximum 200
cursorquerystringoptional

Responses

200 Resellers

Content type: application/json

object
  • items array<Reseller> required
    • ref string required
    • tenant_id string required
    • name string required
    • owner_email string required
    • allocation Allocation required

      What a reseller may hand out to all its customers together; 0 is no limit. Counts are hard limits, disk and bandwidth advisory.

      • max_accounts integer optional
      • max_sites integer optional
      • max_databases integer optional
      • max_apps integer optional
      • max_mailboxes integer optional
      • disk_mb integer (int64) optional
      • bandwidth_gb integer (int64) optional
      • runtimes array<string> optional
        Allowed values: "php" "aspnet" "asp" "node" "dotnet" "python" "java" "go" "wordpress" "container"
      • server_ids array<string> optional

        The provider's servers its customers may be placed on

    • state string required
      Allowed values: "active" "suspended" "terminated"
    • suspend_reason string required
    • usage Usage required
      • sites integer required
      • databases integer required
      • apps integer required
      • containers integer optional

        Sites run by a container (ADR 0162)

      • mailboxes integer optional
      • database_users integer optional
      • disk_bytes integer (int64) required
      • traffic_bytes integer (int64) required

        Sent this month

      • measured_at string (date-time) | null required
    • accounts integer required
    • created_at string (date-time) required
    • updated_at string (date-time) required
    • terminated_at string (date-time) | null required
    • remains Remains optional

      What an ended account still has, and so what stands between it and a permanent delete (ADR 0130)

      • live integer required

        Websites, databases, mail domains, DNS zones, caches still there or being removed, and unfinished jobs

      • kept_sites array<object> required
        • site_id string required
        • hostname string required
        • state string required
          Allowed values: "kept" "purging"
        • purge_after string (date-time) required
      • backups integer required
      • backups_until string (date-time) | null required

        When the backups go by themselves; null: kept with no end

      • customers integer required
      • children integer required
      • servers integer required
    • deleting boolean optional

      A permanent delete waits for kept data to go (ADR 0130)

    • ending Ending optional

      How far an account's end got (ADR 0131). The end runs in the background: a failed step is tried again at next_try_at (1, 2, 4, 8 then every 15 minutes), or at once when the end is asked again.

      • state string required
        Allowed values: "ending" "ended" "not_ending"
      • tenant_id string required
      • ref string optional
      • reseller boolean required
      • started_at string (date-time) optional
      • ended_at string (date-time) optional
      • steps array<EndStep> required
        • name string required
          Allowed values: "customers" "sites" "databases" "mail" "caches" "dns" "backups"
        • state string required
          Allowed values: "waiting" "running" "done" "failed"
        • total integer required
        • done integer required
        • error StepError optional
          • code string required
          • message string required
          • retryable boolean required
      • attempts integer required

        Passes that stopped on an error

      • last_error StepError optional

        Fields of StepError are shown above.

      • next_try_at string (date-time) optional
      • remote_backups_left array<RemoteBackupLeft> optional

        With keep_backups_days 0: off-machine copies given up because their target did not answer; the end completes without them

        • backup_id string required
        • target string required

          sftp, s3, or the cloud provider

        • where string optional

          Folder or bucket the copy is in, as the backup settings named it (no secret)

        • created_at string (date-time) required
        • code string required

          Why its deletion failed, e.g. BACKUP_DELETE_FAILED, SERVER_TIMEOUT

        • at string (date-time) required
  • next_cursor string required

    Empty on the last page

Example
{
  "items": [
    {
      "ref": "string",
      "tenant_id": "string",
      "name": "string",
      "owner_email": "string",
      "allocation": {
        "max_accounts": 0,
        "max_sites": 0,
        "max_databases": 0,
        "max_apps": 0,
        "max_mailboxes": 0,
        "disk_mb": 0,
        "bandwidth_gb": 0,
        "runtimes": [
          "php"
        ],
        "server_ids": [
          "string"
        ]
      },
      "state": "active",
      "suspend_reason": "string",
      "usage": {
        "sites": 0,
        "databases": 0,
        "apps": 0,
        "containers": 0,
        "mailboxes": 0,
        "database_users": 0,
        "disk_bytes": 0,
        "traffic_bytes": 0,
        "measured_at": "2026-01-01T00:00:00Z"
      },
      "accounts": 0,
      "created_at": "2026-01-01T00:00:00Z",
      "updated_at": "2026-01-01T00:00:00Z",
      "terminated_at": "2026-01-01T00:00:00Z",
      "remains": {
        "live": 0,
        "kept_sites": [
          {
            "site_id": "string",
            "hostname": "string",
            "state": "kept",
            "purge_after": "2026-01-01T00:00:00Z"
          }
        ],
        "backups": 0,
        "backups_until": "2026-01-01T00:00:00Z",
        "customers": 0,
        "children": 0,
        "servers": 0
      },
      "deleting": true,
      "ending": {
        "state": "ending",
        "tenant_id": "string",
        "ref": "string",
        "reseller": true,
        "started_at": "2026-01-01T00:00:00Z",
        "ended_at": "2026-01-01T00:00:00Z",
        "steps": [
          {
            "name": "customers",
            "state": "waiting",
            "total": 0,
            "done": 0,
            "error": {
              "code": null,
              "message": null,
              "retryable": null
            }
          }
        ],
        "attempts": 0,
        "last_error": {
          "code": "string",
          "message": "string",
          "retryable": true
        },
        "next_try_at": "2026-01-01T00:00:00Z",
        "remote_backups_left": [
          {
            "backup_id": "string",
            "target": "string",
            "where": "string",
            "created_at": "2026-01-01T00:00:00Z",
            "code": "string",
            "at": "2026-01-01T00:00:00Z"
          }
        ]
      }
    }
  ],
  "next_cursor": "string"
}

429 Error

Content type: application/json

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

default Error

Content type: application/json

Fields of Error are shown above.