Document Comparison API for Enterprise - Draftable

If you are working in C#/.NET, Java, Python, or Node.js, our client libraries make integration easy.

From other languages, you can still use our simple REST API.

1. Send a request with the two files you want to compare.

// Example POST request to https://api.draftable.com/v1/comparisons
{
   "left": {
       "display_name": "Julia Gillard - Standards of Ministerial Ethics.rtf",
       "source_url": "https://api.draftable.com/static/test-documents/code-of-conduct/left.rtf",
       "file_type": "rtf"
   },
   "right": {
       "display_name": "Tony Abbott - Statement of Ministerial Standards.pdf",
       "source_url": "https://api.draftable.com/static/test-documents/code-of-conduct/right.pdf",
       "file_type": "pdf"
   },
   "public": true
}

2. Draftable returns a viewer URL.

https://api.draftable.com/v1/comparisons/viewer/QqnpkT/ZjpBuiXb

3. Embed the viewer into your app with an iframe.

<iframe src="https://api.draftable.com/v1/comparisons/viewer/QqnpkT/ZjpBuiXb" allowfullscreen></iframe>

That's it!