---
title: "Preview a generated document."
method: POST
path: "/v1/ai/docgen/preview"
tags: ["AI"]
---

# Preview a generated document.

`POST /v1/ai/docgen/preview`

## Request

- Base URL: `https://api.scalix.world`
- URL: `https://api.scalix.world/v1/ai/docgen/preview`
- Auth: HTTP bearer

Returns a preview of a document without finalizing it.

## Request body

- object

## Response `200`

Document preview

## Other responses

- `401`: Missing or invalid API key
- `500`: Internal error

---

[API](https://skmtc.dev/scalix/apis/scalix-cloud-api.md) · [All operations](https://skmtc.dev/scalix/apis/scalix-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scalix/apis/scalix-cloud-api/revisions/2c04ca0a90bb?raw)
