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
| Parameter | Type | Required | Description |
|---|---|---|---|
| docUrl | String | Yes | URL 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
| Format | Extension | Supported |
|---|---|---|
| Word 2007+ | .docx | Yes |
| Word 97-2003 | .doc | Yes |
Error Codes
| Code | Description |
|---|---|
| 406 | Missing required parameter (docUrl) |