{"uid":"cap_0X6Bzm8xfqfbIqVtU32lw","slug":"create-word-document-docx-from-markdown-7de4bee4","name":"Create Word Document (.docx) from Markdown","description":"Turn markdown into a real Word document (.docx) in one call. Send \"markdown\" and an optional \"title\": headings, paragraphs, bold, italic, strikethrough, inline code, bullet and numbered lists (nested), task lists, tables, code blocks, block quotes, horizontal rules and links come out as native Word.","url":"https://agent402.tools/api/docx-create?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"title":{"type":"string"},"filename":{"type":"string"},"markdown":{"type":"string"}}},"responseSchema":{"type":"json","example":{"bytes":10520,"links":1,"blocks":10,"tables":1,"filename":"update.docx","headings":1,"listItems":4,"codeBlocks":1,"docxBase64":"UEsDBAoAAAAAAG...","contentType":"application/vnd.openxmlformats-officedocument.wordprocessingml.document"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_igM27TgZ_mnnxDOE5NDq-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a markdown string into a fully native Word (.docx) document with proper formatting, tables, lists, and code blocks, returned as a base64-encoded file.","exampleAgentPrompt":"Can you turn this markdown into a Word document? Here's the content: '# Quarterly Report\n\nThis quarter we saw **strong growth**...' — please save it as quarterly-report.docx.","exampleUseCases":[{"title":"Automated report delivery in Word","prompt":"I have a markdown report summary from our analytics pipeline — can you convert it into a Word .docx file called 'monthly-summary.docx' so I can email it to the team?"},{"title":"Technical documentation export","prompt":"Take this markdown README I've written, including the code blocks and tables, and export it as a proper Word document titled 'API Documentation' so our non-technical stakeholders can open it."},{"title":"Meeting notes to shareable Word file","prompt":"Here are my meeting notes in markdown with a task checklist and bullet points — please convert them into a Word document called 'meeting-notes.docx' that I can share with everyone."}],"resultDescription":"Returns a JSON object containing a base64-encoded .docx file (docxBase64), the content MIME type, the filename, and document statistics including total byte size, number of headings, blocks, tables, list items, code blocks, and links.","failureModes":["Malformed or empty markdown input may produce a minimal or empty document","Extremely large markdown payloads may time out or hit size limits","Complex nested structures not supported by the Word format may be flattened or dropped","Missing required 'markdown' field returns an error response","Invalid characters or encoding issues in the input markdown may cause rendering artifacts"],"whenToPreferThis":"Choose this endpoint when you need to programmatically produce a native Word (.docx) file from markdown — especially when recipients need to edit the document in Microsoft Word or when rich formatting (tables, nested lists, code blocks, task lists) must survive as proper Word constructs rather than HTML or PDF. It is preferable over HTML or PDF converters when downstream users require a fully editable Office document.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-01T09:20:23.576Z","isFirstParty":false,"canonicalSlug":"create-word-document-docx-from-markdown-7de4bee4"}