API referenceSections

Render a suspension page as typed, without saving it

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

POST /api/v1/tenants/{tid}/suspension-page/preview

Render a suspension page as typed, without saving it

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

  • brand_name string optional
    • max length 80
  • logo_url string optional

    https only

  • support_url string optional

    https only

  • support_email string optional
  • title_vi string optional
    • max length 120
  • message_vi string optional
    • max length 2000
  • title_en string optional
    • max length 120
  • message_en string optional
    • max length 2000
  • retry_minutes integer optional

    Retry-After; 0 is 60

    • minimum 0
    • maximum 10080
  • reset boolean optional

    Go back to the defaults

Example
{
  "brand_name": "string",
  "logo_url": "string",
  "support_url": "string",
  "support_email": "string",
  "title_vi": "string",
  "message_vi": "string",
  "title_en": "string",
  "message_en": "string",
  "retry_minutes": 0,
  "reset": true
}

Responses

200 The page's HTML

Content type: application/json

object
  • html string required
Example
{
  "html": "string"
}

default Error

Content type: application/json

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