Guides / Documents

Markdown → Word

POST /v1/md/to-docx  · 

Converts GitHub-flavoured Markdown into a formatted .docx: headings, lists, tables, bold/italic and links all carry over. Send the Markdown as JSON, or upload a .md file directly.

Parameters

NameTypeDescription
markdownstringGitHub-flavoured Markdown. Required unless a file is uploaded.
filefileAlternative to markdown: upload a .md file as multipart field file.

Example request

curl -X POST https://api.bigapi.dev/v1/md/to-docx \
  -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -d '{"markdown":"# Report\n\nHello **world**"}' \
  -o report.docx

Example response

HTTP/1.1 200 OK
Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document
X-BigAPI-Cost: 1

(binary .docx body)

Related guides