Skip to content

Word to HTML

Convert Word documents (.doc/.docx) to HTML format. Provide a URL to the Word document and receive the HTML representation.

Endpoint: POST /biz/cloud/convert/convert/doc2html

Parameters

ParameterTypeRequiredDescription
docUrlStringYesURL to the Word document (.doc or .docx)

Request

bash
curl -X POST "https://api.alaikis.com/std/biz/cloud/convert/convert/doc2html" \
  -H "X-API-Key: your_api_key" \
  -H "X-API-Secret: your_api_secret" \
  -d 'bizContent={"docUrl": "https://example.com/document.docx"}'

Response

json
{
  "code": 200,
  "msg": "success",
  "data": {
    "html": "<html><body><h1>Document Title</h1><p>Content...</p></body></html>"
  }
}

Supported Formats

FormatExtensionSupported
Word 2007+.docxYes
Word 97-2003.docYes

Error Codes

CodeDescription
406Missing required parameter (docUrl)