Response Content Types
Response Content Types
Response headers and body contain this information:
ConversionTime - time in seconds that took to convert the file. This amount of seconds will be deducted from your balance after the conversion.
FileName - name of the converted file.
FileSize - converted file size in bytes.
FileData - converted file content.
FileUrl - link to a converted file if StoreFile parameter was set to true.
application/json
Single file result example
[response]
{
"ConversionTime": 2,
"Files": [
{
"FileName": "my_file.pdf",
"FileSize": 523672,
"FileData": "--Base64 encoded file content--"
}
]
}
multipart/mixed
Each part contains converted file data or URL to the file.
Single file result example
[response]
--43cf1475-ab15-4c6b-b5ee-e2cbcedfe92f
ConversionTime: 3
Content-Type: application/octet-stream
Content-Disposition: attachment; filename="my_file.pdf"; size=8475
--FILE CONTENT--
--43cf1475-ab15-4c6b-b5ee-e2cbcedfe92f--
application/octet-stream
The response body is a result of converted file content. The filename can be found in content-disposition header field. It can be used with converters that produce a single file result.
Updated on: 22/02/2024
Thank you!