---
title: "Import DOCX and convert to HTML"
method: POST
path: "/policies/import/docx"
tags: ["Policies"]
---

# Import DOCX and convert to HTML

`POST /policies/import/docx`

Uploads a .docx file (max 10 MB) and converts it to HTML suitable for the policy content editor. Returns the converted HTML and any conversion warnings.

## Response `200`

DOCX converted to HTML successfully

- object
  - `message` string
  - `data` object
    - `html` string — The converted HTML content
    - `warnings` string[] — Conversion warnings (e.g., unsupported formatting)

## Other responses

- `400` — Bad request — no file uploaded or invalid file type
- `500` — unresolved $ref

## Changes

> 70 revisions in range; 6 could not be searched.

- **2026-07-13** `d86d0bf8bebe` — 1 info
  - api operation id `importDocx` removed and replaced with `PolicyController.importDocx`
- **2026-07-13** `655215fe8c81` — 1 info
  - api operation id `PolicyController.importDocx` removed and replaced with `importDocx`
- **2026-06-22** `5878ba786a89` — 1 info
  - api operation id `importDocx` removed and replaced with `PolicyController.importDocx`
- **2026-04-21** `55cdc040840c` — 1 info
  - endpoint added
- **2025-01-22** `ed48b7196725` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/verifywise-ai/apis/verifywise-api/changes/policies/import/docx/post.md)

---

[API](https://skmtc.dev/verifywise-ai/apis/verifywise-api.md) · [All operations](https://skmtc.dev/verifywise-ai/apis/verifywise-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/verifywise-ai/verifywise-api/revisions/3b138b306b5b/schema)
