HTML and XHTML files to Word documents.https://api.apyhub.com/convert/html-file/doc-filePOSTmultipart/form-data| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| output | String | No | The name of Word file for the converted document. If no output attribute is provided, the default file name will be output.docx. |
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| file | File | Yes | Provide the file in html or xhtml format that needs to be converted. |
| Status Code | Description |
|---|---|
| 200 | The request was successful. |
| 401 | Required authentication information is either missing or not valid for the resource. |
| 400 | Invalid input - the files are empty or the files are corrupt. |
| 500 | If any unexpected error occurs while processing the request. |
tokens or basic authentication mechanisms.
You can generate and view your existing credentials from your workspace settings (on the left side of the navbar) and go to “API Keys".apy-token as the header parameter to pass the token.Authorization header to send the basic authentication credentials.