# GET /v1/workspaces/{workspace_id}/fs/_/preview/{path} - Sandboxed HTML render

Source: <https://everruns.com/docs/api/operations/preview_path/>

GET

/v1/workspaces/{workspace\_id}/fs/\_/preview/{path}

Select code samplecURL (shell:curl)

```js
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);
}
```

```sh
curl --request GET \
  --url https://app.everruns.com/api/v1/workspaces/example/fs/_/preview/example
```

* Production APIapp.everruns.com/api/v1/workspaces/{workspace\_id}/fs/\_/preview/{path}

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).

## Parameters

### 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

### 200

Sandboxed HTML document

Media typetext/html

### 400

Path points to a directory

### 404

File not found

### 415

File is not an HTML document

### 500

Internal server error