Convert Documents with Web URL
Purpose
To convert any document's existing file format (say html) to another file format (say docx or txt) with web URL.
Supported file formats -> docx, odt, rtf, txt, html, pdf
HTTP Request URL
https://{zohoapis_domain}/writer/api/v1/documents/convert
Body Parameters
Parameter | Data Type | Description |
Mandatory Parameters | ||
url | String | Specify the web URL, through which the document will be converted. |
format | String | Specify the format of the document to be converted. |
filename | String | Specify a name to the document to be converted. |
Optional Parameter | ||
Password | String | Specify a unique password for the document to be converted. |
Sample Request
Copiedcurl --location --request POST "https://www.zohoapis.com/writer/api/v1/documents/convert" \
--header "Authorization: Zoho-oauthtoken xxx.yyy.zzz" \
--form "url=https://calibre-ebook.com/downloads/demos/demo.docx" \
--form "format=docx" \
--form "filename=Output filename"
Sample Response
Converted document will be downloaded.