Skip to content

Sandboxed HTML render

GET
/v1/workspaces/{workspace_id}/fs/_/preview/{path}
curl --request GET \
--url https://app.everruns.com/api/v1/workspaces/example/fs/_/preview/example

Serves an HTML file as a text/html document carrying a strict sandbox CSP (TM-WEB-010) so the file viewer can render it — with JavaScript — inside an iframe without exposing everruns cookies, storage, the parent DOM, or top-frame navigation. Only .html/.htm files are eligible; everything else returns 415 (use the download endpoint instead).

workspace_id
required
string

Workspace ID (wsp_<32-hex>)

path
required
string

HTML file path. Wildcard route: nested paths are literal /-separated segments, not a single URL-encoded value.

Sandboxed HTML document

Media type text/html

Path points to a directory

File not found

File is not an HTML document

Internal server error