Convert Document

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Converts an uploaded document file, provided text, or a document available at a web URL into another supported file format. Converting a PDF file to another format is not supported. The converted file is returned as binary content in the response body. Provide exactly one of content, text, or url.

Endpoints

OAuth Scope

ZohoWriter.documentEditor.ALLCopied!

Request Example

cURL
cURL
Deluge
Copied!
curl --request POST \
  --url https://www.zohoapis.com/writer/api/v1/documents/convert \
  --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
  --header 'content-type: multipart/form-data' \
  -F 'content=@file_path' \
  -F 'text=string' \
  -F 'url=http://example.com' \
  -F 'format=docx' \
  -F 'password=string' \
  -F 'filename=string'

Request Body

multipart/form-data
contentbinary(Optional)

The document file to be converted. Supported formats: docx (up to 50 MB), rtf, odt, txt, html, epub (up to 10 MB).

textstring(Optional)

The text content to be converted into a document.

Maximum Length :10000001000000Copied!
urluri(Optional)

The web URL of the document to be converted. Supported formats: docx (up to 50 MB), rtf, odt, txt, html, epub (up to 10 MB).

Maximum Length :50005000Copied!
formatstring(Required)

The output format to convert the document into.

Allowed Values :
Show Values
docxCopied!
odtCopied!
rtfCopied!
txtCopied!
htmlCopied!
pdfCopied!
zdocCopied!
epubCopied!
Copied!Copy all as JSON Array
passwordstring(Optional)

A unique password for the document to be converted. Applicable when content or url is provided.

Maximum Length :255255Copied!
filenamestring(Optional)

A name for the converted document.

Maximum Length :255255Copied!

Body Parameters

Copied!
// Note: payload contains multiple type attributes

// type: file
content = <file>

// type: string
text = string

// type: string(uri)
url = http://example.com

// type: string
format = docx

// type: string
password = string

// type: string
filename = string
Show full

Response Example

200
Copied!
200 The converted document is downloaded.
Show full