---
title: "Preview what a status page shows visitors, published or not"
method: GET
path: "/status-pages/{status_page_id}/preview"
tags: ["Status Page"]
---

# Preview what a status page shows visitors, published or not

`GET /status-pages/{status_page_id}/preview`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/status-pages/{status_page_id}/preview`
- Auth: HTTP bearer

## Path parameters

- `status_page_id` integer, required

## Response `200`

The public view as it would be served now, as JSON and as HTML

- StatusPagePreviewResponse: What a status page would show visitors right now, published or not. Returned to project members only, so a draft can be checked before it goes live.
  - `html` string, required: Exactly what the public HTML page would serve. Self-contained (inline CSS, no scripts), so it can be shown in a sandboxed frame.
  - `page` PublicStatusPageResponse, required: Exactly what the public JSON endpoint would serve.
    - `appearance` StatusPageAppearance, required: How the page looks.
      - `accent_color` string, nullable
      - `logo_url` string, nullable
      - `show_response_times` boolean, required
      - `show_uptime_percentage` boolean, required
      - `theme` 'auto' | 'light' | 'dark', required: Color scheme of a public page.
      - `website_url` string, nullable
    - `components` PublicStatusComponent[], required
      - `avg_response_time_ms` integer, nullable: Mean response time over the last day with measurements, in milliseconds; `null` without any or when the page hides them.
      - `days` PublicUptimeDay[], required: One entry per day, oldest first, always `history_days` long.
        - `avg_response_time_ms` integer, nullable: Mean response time of that day's checks in milliseconds, `null` when none was measured or the page hides response times.
        - `date` string, required: UTC calendar day, `YYYY-MM-DD`.
        - `degraded_checks` integer, nullable: Checks that found it slow or partly unavailable; `null` like `total_checks`.
        - `failed_checks` integer, nullable: Checks that found the service down; `null` like `total_checks`.
        - `incidents` string[], required: Public headings of the incidents on this page that affected this component on that day.
        - `status` 'no_data' | 'operational' | 'degraded' | 'outage', required: Summary of one UTC day of checks for one component.
        - `total_checks` integer, nullable: Checks run that day, `null` when the page hides uptime percentages (the counts would give the percentage away).
        - `uptime_percentage` number, double, nullable: Share of successful checks that day, `null` when there were none or the page hides uptime percentages.
      - `group` string, nullable: Admin-chosen name of the group the component is shown in, `null` when it stands on its own.
      - `name` string, required: Admin-chosen display name.
      - `status` 'unknown' | 'maintenance' | 'operational' | 'degraded' | 'outage', required: Current state of a public component (one selected monitor), or of the page as a whole.
      - `uptime_percentage` number, double, nullable: Uptime over the whole history window, `null` without any checks or when the page hides uptime percentages.
    - `description` string, nullable
    - `generated_at` string, date-time, required: When this snapshot was computed. Public pages are served from a periodically refreshed snapshot, never computed per request.
    - `history_days` integer, required
    - `incidents` PublicIncident[], required: Active and recently resolved incidents, newest first.
      - `affected_components` string[], required: Display names of the selected monitors the incident affects; empty for a project-wide incident.
      - `resolved_at` string, date-time, nullable
      - `severity` 'minor' | 'major' | 'critical', required
      - `started_at` string, date-time, required
      - `status` 'investigating' | 'identified' | 'monitoring' | 'resolved', required
      - `title` string, required: The heading the admin wrote for the public, or one derived from the severity when they did not.
      - `updates` PublicIncidentUpdate[], required: Public updates, newest first.
        - `created_at` string, date-time, required
        - `message` string, required: Text of an update explicitly marked public.
        - `status` 'investigating' | 'identified' | 'monitoring' | 'resolved', required
    - `maintenances` PublicMaintenance[], required: Maintenance windows in progress or scheduled, soonest first.
      - `affected_components` string[], required
      - `description` string, nullable
      - `ends_at` string, date-time, required
      - `starts_at` string, date-time, required
      - `status` 'scheduled' | 'in_progress', required: Whether a public maintenance window has started.
      - `title` string, required
    - `status` 'unknown' | 'maintenance' | 'operational' | 'degraded' | 'outage', required: Worst current state across components and active public incidents.
    - `title` string, required

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Status page not found
- `500`: Internal server error

## Changes

- **2026-11-21** `d57a37c13a27`: 2 warning, 1 info
  - added the new `maintenance` enum value to the `page/components/items/status` response property for the response status `200`
  - added the new `maintenance` enum value to the `page/status` response property for the response status `200`
  - added the required property `page/maintenances` to the response with the `200` status
- **2026-10-30** `f6acc7f7403e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/status-pages/:status_page_id/preview/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
