Sandboxed HTML render
GET
/v1/workspaces/{workspace_id}/fs/_/preview/{path}
const url = 'https://app.everruns.com/api/v1/workspaces/example/fs/_/preview/example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.everruns.com/api/v1/workspaces/example/fs/_/preview/exampleServes 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).
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” 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.
Responses
Section titled “ Responses ”Sandboxed HTML document
Media type text/html
Path points to a directory
File not found
File is not an HTML document
Internal server error