Skip to main content
Version: v2023.18.0

POST a conversion order

This API allows you to request a conversion order to create a new document in an expected format.

API technical description

Endpoint:

POST /conversions

Body:

AttributeTypeRequiredDescription
documentIdStringyesSource document id.
formatStringyesTarget document format.

Response:

AttributeTypeDescription
conversionOrderIdConversionOrderIdconversion order ID.
This can allow you to use other APIs like the one to retrieve some information about the conversion or to delete it.

Examples

Convert a document

The call below generates a conversion request for a document already known from the rendition.

curl -X 'POST' \
'http://localhost:8761/conversions' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-d '{
"documentId": "docId",
"format": "pdf",
}'