---
title: "Export To Docx"
method: POST
path: "/api/batch/{batch_id}/export/docx"
tags: ["Batch Processing"]
---

# Export To Docx

`POST /api/batch/{batch_id}/export/docx`

## Request

- Base URL: `https://api.qomplement.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.qomplement.com/api/batch/{batch_id}/export/docx`
- Auth: HTTP bearer

Generate a professional DOCX export of structured data.

Args:
    batch_id: Batch UUID
    request: Export request containing document data
    current_user: Authenticated user (optional for guest mode)

Returns:
    StreamingResponse with DOCX file

## Path parameters

- `batch_id` string, required

## Request body

- ExportRequest: Request model for export operations
  - `documents` object[], required
  - `include_images` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/qomplement/apis/qomplement-api.md) - [All operations](https://skmtc.dev/qomplement/apis/qomplement-api/llms.txt) - [OpenAPI document](https://skmtc.dev/qomplement/apis/qomplement-api/revisions/6fe617c112ef?raw)
