Skip to main content

Get Preview Status

GET 

/api/websites/:site_id/preview-status

Check whether the website's CDN URL is ready to be shown in an iframe.

Polled by the builder's preview pane right after creation: Bunny pull zone provisioning and default-index replication both lag the POST /api/websites response by up to ~30s, so naive iframe loads flash "Domain suspended or not configured" before the real content arrives. This endpoint distinguishes "still provisioning" (keep polling) from "actually broken" (surface error) so the frontend can show a loading skeleton instead of the bunny error page.

Request

Responses

Successful Response