# OutlineApi.get()

```ts
get(): Promise<OutlineNode[]>
```

The bookmark tree. Without the `extract` feature every title is `''`, so a tree read then and given back to `set` writes them blank: rename with `setTitle`. Needs no feature.

- Kind: method
- Since: 1.0.0

Returns `Promise<OutlineNode[]>`: Each `{ title, pageIndex, children }`; `pageIndex` is `null` when the bookmark has no page (it only groups children).

Throws:

- `DOCUMENT_CLOSED` — the document has been closed.

```ts
const chapters = await doc.outline.get();
```

Part of [OutlineApi](https://kernstra.com/docs/web-sdk/api/doc-outline) in the Kernstra Web SDK 1.0.0 API reference.

Web page: https://kernstra.com/docs/web-sdk/api/doc-outline/get
