---
title: "Anything To Markdown"
method: POST
path: "/v1/convert/anything-to-markdown"
tags: ["v1", "v1-convert"]
---

# Anything To Markdown

`POST /v1/convert/anything-to-markdown`

## Request

- Base URL: `https://api.enconvert.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.enconvert.com/v1/convert/anything-to-markdown`
- Auth: none declared

Convert an uploaded file to clean Markdown (RAG ingestion building block).

Auto-detects the input format by extension and dispatches to the right
extractor: PDF, DOCX, PPTX, XLSX, CSV, HTML, EPUB, plain text/Markdown, and
legacy/ODF office (DOC/PPT/XLS/ODT/ODS/ODP/RTF via unoserver). The output is
a single .md file with heading-aware structure suited to semantic chunking.

Args:
    file: The document to convert.
    output_filename: Optional custom output name (defaults to input name .md).
    direct_download: If True (default), return the file; else JSON metadata.

## Headers

- `X-API-Key` string, nullable
- `authorization` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/enconvert/apis/conversion-api.md) · [All operations](https://skmtc.dev/enconvert/apis/conversion-api/llms.txt) · [OpenAPI document](https://skmtc.dev/enconvert/apis/conversion-api/revisions/b8c820393569?raw)
