> ## Documentation Index
> Fetch the complete documentation index at: https://superdoc-nick-sd-2070-add-content-controls-namespace-to-doc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# getHtml

> Extract the document content as an HTML string.

> Alpha: Document API is currently alpha and subject to breaking changes.

## Summary

Extract the document content as an HTML string.

* Operation ID: `getHtml`
* API member path: `editor.doc.getHtml(...)`
* Mutates document: `no`
* Idempotency: `idempotent`
* Supports tracked mode: `no`
* Supports dry run: `no`
* Deterministic target resolution: `yes`

## Expected result

Returns the full document content as an HTML-formatted string.

## Input fields

| Field            | Type    | Required | Description |
| ---------------- | ------- | -------- | ----------- |
| `unflattenLists` | boolean | no       |             |

### Example request

```json theme={null}
{
  "unflattenLists": true
}
```

## Output fields

*No fields.*

### Example response

```json theme={null}
"example"
```

## Pre-apply throws

* None

## Non-applied failure codes

* None

## Raw schemas

<Accordion title="Raw input schema">
  ```json theme={null}
  {
    "additionalProperties": false,
    "properties": {
      "unflattenLists": {
        "type": "boolean"
      }
    },
    "type": "object"
  }
  ```
</Accordion>

<Accordion title="Raw output schema">
  ```json theme={null}
  {
    "type": "string"
  }
  ```
</Accordion>
