You can only export a comparison that has finished processing. Confirm
ready is true and failed is false before creating an export.Export kinds
Choose what the PDF should contain with thekind parameter.
Creating an export
The response is 201 Created:
ready: false and no url.
Retrieving the finished PDF
Poll the export until it is ready:url appears:
ready: true means processing finished, not that it succeeded. Check failed, and read error_message when it is true.
A complete flow
1
Create the comparison
POST /comparisons with both documents. Keep the returned identifier.2
Wait for the comparison to be ready
Poll
GET /comparisons/{identifier} until ready is true. Confirm failed is false.3
Create the export
POST /exports with the comparison identifier and your chosen kind.4
Wait for the export to be ready
Poll
GET /exports/{identifier} until ready is true.5
Download the file
Fetch the PDF from the
url in the response, promptly.
