---
title: "Convert documents between formats"
method: POST
path: "/superdoc/v1/convert"
tags: ["SuperDoc"]
---

# Convert documents between formats

`POST /superdoc/v1/convert`

Convert documents between formats using SuperDoc. Supports DOCX to PDF, Markdown to DOCX, and HTML to DOCX conversions.

## Request body

- object
  - `document_url` string — URL to the document to convert
  - `document_base64` string — Base64-encoded document content
  - `from` 'docx' | 'md' | 'html', required — Source format of the document
  - `to` 'pdf' | 'docx' — Target format for conversion

## Response `200`

Converted document

## Other responses

- `400` — Invalid request - missing file or unsupported format
- `401` — Invalid API key
- `403` — Insufficient permissions for SuperDoc service
- `413` — File too large (max 25MB)
- `503` — SuperDoc service not configured

---

[API](https://skmtc.net/casemark/apis/case-dev-api.md) · [All operations](https://skmtc.net/casemark/apis/case-dev-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/casemark/case-dev-api/versions/5b7e64e6d6f9/schema)
