---
title: "POST /api/export/auto_export/html"
method: POST
path: "/api/export/auto_export/html"
---

# POST /api/export/auto_export/html

`POST /api/export/auto_export/html`

## Headers

- `Marimo-Session-Id` string, required

## Request body

- ExportAsHTMLRequest
  - `assetUrl` string, nullable
  - `download` boolean, required
  - `files` string[], required
  - `includeCode` boolean, required

## Response `200`

Export the notebook as HTML

- SuccessResponse
  - `success` boolean

## Other responses

- `400` — File must be saved before downloading

---

[API](https://skmtc.dev/marimo-team/apis/marimo-api.md) · [All operations](https://skmtc.dev/marimo-team/apis/marimo-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/marimo-team/marimo-api/revisions/a39082aac3ce/schema)
