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

# getText

> Extract the plain-text content of the document.

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

## Summary

Extract the plain-text content of the document.

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

## Expected result

Returns the full plain-text content of the document as a string.

## Input fields

*No fields.*

### Example request

```json theme={null}
{}
```

## 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": {},
    "type": "object"
  }
  ```
</Accordion>

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