---
title: "[Beta] Create DOCX Export Task"
method: POST
path: "/public/beta/documents/{document_id}/docx-export-tasks"
tags: ["Documents"]
---

# [Beta] Create DOCX Export Task

`POST /public/beta/documents/{document_id}/docx-export-tasks`

> ⏱️ Export as DOCX is a non-blocking (asynchronous) operation
> The document generation process may take some time.
> With a successful request, you receive a response with task ID, status **created** and document id. After process completes, usually in a few minutes, the task status moves to the **done** state.
> You can download documents up to 300 pages. For documents of 301+ pages, you will receive an error “400: The number of pages more then limit 300”

## Path parameters

- `document_id` string, required

## Response `200`

Export DOCX task was created.

- DocumentDocxExport
  - `id` string, required — Export task id.
  - `document_id` string, required — Document id.
  - `status` 'created' | 'processing' | 'done' | 'error', required — | **Status** | **Description** | |---------------|---------------------------------------------------------------------------------------------| | **created** | The export task has been created, but the process has not started. | | **processing**| The export task is in progress. | | **done** | The export task is completed, and the response contains URLs for downloading the documents. | | **error** | An error occurred during the execution of the export task. |

## Other responses

- `401` — Authentication error
- `403` — Permission error
- `404` — Not found error
- `429` — Too many requests error

---

[API](https://skmtc.net/pandadoc/apis/pandadoc-public-api.md) · [All operations](https://skmtc.net/pandadoc/apis/pandadoc-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pandadoc/pandadoc-public-api/versions/0c2b70be3fb0/schema)
