Documentation and Setup

Sign up and Setup

Before getting started, you simply need to login or sign up for an account.

Get Some Tokens

You will need at least some tokens to start converting documents. When you sign up you get some free tokens. If you need more you can purchase them in your account.

Set up Api Key

Generate a unique Api Key for your account. You will need this key to make API calls to the service. In your account profile, you can create a new api key.
When you generate the new api key, you will need to copy it somewhere safe. You will not be able to see it again after it has been shown. You can then use this key as part of the CURL command in the examples below.

Make a Curl Request

Make a curl request to convert your document

 curl.exe -f "http://docto.works/api/v1/{API_KEY}/docto/pdf" -F "file=@C:\Folder\document.docx" -o "c:\output\NewDoc.pdf"

            

This curl request will convert the document at C:\Folder\document.docx and output to a PDF file at C:\output\NewDoc.pdf. You can change the output file name and location as needed. You need to input your api key. T

Can I add DocTo parameters to my curl request?

Is it possible to add parameters such as --compatibility to the curl request?

At the moment this is not possible, but we are working on adding this functionality. It will be available in Version 1.0 of the website.

Can I add DocTo parameters to my curl request?

Is it possible to add parameters such as --compatibility to the curl request?

At the moment this is not possible, but we are working on adding this functionality. It will be available in Version 1.0 of the website.

Using the Bash Script

If you want a slightly more straighforward way to convert documents, that doesnt use your api key in the url you can download and use the bash script which is generated whenever you generate a new api key. Download the script and save it to your path.
It will work on

  • Linux
  • Mac
  • Windows on WSL
  docto.works.sh -f "C:\Folder\document.docx" -o "c:\output\NewDoc.pdf"
            
The api key is saved in the script, but can be set as an enviornment variable if you desire.