API referenceSections

Make a diagnostics bundle with secrets taken out, kept 24 hours

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

POST /api/v1/tenants/{tid}/support-bundles

Make a diagnostics bundle with secrets taken out, kept 24 hours (ADR 0052, 0153); provider administrators only. Each server's logs, services, IIS/HTTP.sys errors and Event Log entries come through its broker (support.collect, agent protocol 2; an older agent gives its agent and broker logs only). Servers are read side by side, each within about 40 seconds of its own; a server whose agent was not heard from for 5 minutes is left out at once. Past 20 seconds the answer is 202 with an operation (ADR 0132), whose body is this 201 when done

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.

Request body

required

Content type: application/json

object
  • reason string required

    Why, 4 to 500 characters (activity log)

  • incident_id string optional

    The support case's ID: letters, digits, . - _, at most 64 (SUPPORT_INCIDENT_INVALID)

  • since_hours integer optional

    How far back logs, events and failed jobs go: 1 to 720, default 72 (SUPPORT_SINCE_INVALID)

  • tenant_id string optional

    Also this tenant's own data: name, sites, failed jobs, the end of each site's IIS log

  • tenant_consent boolean optional

    The tenant agreed; required with tenant_id (SUPPORT_CONSENT_REQUIRED)

  • redact_emails boolean optional

    Also take email addresses out

  • skip_servers boolean optional

    Leave every server's part out

Example
{
  "reason": "string",
  "incident_id": "string",
  "since_hours": 0,
  "tenant_id": "string",
  "tenant_consent": true,
  "redact_emails": true,
  "skip_servers": true
}

Responses

201 Bundle

Content type: application/json

object
  • id string required
  • expires_at string (date-time) required
  • size integer required
  • included integer required

    Files in the bundle

  • took_ms integer required

    How long the bundle took to make

  • server_problems array<object> required

    Servers whose part is missing or partial, and why

    • server_id string required
    • name string required
    • problem string required
      Allowed values: "timed_out" "not_heard_from" "failed" "partial" "cancelled"
    • note string required
  • skipped array<object> required

    What was left out and why (also in its manifest.json)

    • name string required
    • source string optional
    • note string optional
Example
{
  "id": "string",
  "expires_at": "2026-01-01T00:00:00Z",
  "size": 0,
  "included": 0,
  "took_ms": 0,
  "server_problems": [
    {
      "server_id": "string",
      "name": "string",
      "problem": "timed_out",
      "note": "string"
    }
  ],
  "skipped": [
    {
      "name": "string",
      "source": "string",
      "note": "string"
    }
  ]
}

default Error

Content type: application/json

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