1 Document Converters
Convert document files to different formats.
Example request with curl
curl -X POST "https://convert.tigerra.com/documents/word-to-pdf" \
-H "Authorization: Bearer your-token" \
-F "file=@/path/file.docx"
Valid url parameters
word-to-pdf, ppt-to-pdf, excel-to-pdf, odt-to-pdf, ods-to-pdf, odp-to-pdf, html-to-pdf, rtf-to-pdf, csv-to-pdf, pdf-to-html, pdf-to-odg, pdf-to-otg, pdf-to-fodg, pdf-to-docx, pdf-to-txt, html-to-odt, pdf-to-xlsx, txt-to-rtf, text-to-html, txt-to-docx, txt-to-doc, txt-to-odt, txt-to-xml, json-to-xml, xml-to-json, csv-to-json, rtf-to-txt, rtf-to-docx, rtf-to-html, rtf-to-doc, rtf-to-odt, rtf-to-ott
2 After the conversion request, you will receive a PID with which you can check the status of your request and delete the file.
Example response
{
"status":"pending",
"pid":"1:7a005b208e60445389c7930b376f91e4"
}
3 To check the status of the convertion, use the following request.
Example status check request
curl -X GET "https://convert.tigerra.com/get-status/1:7a005b208e60445389c7930b376f91e4" \
-H "Authorization: Bearer your-token"
4 If the conversion is successful, you will receive a status of 'completed' and a data attribute containing the download URL.
Example status check response
{
"status": "completed",
"data": "https://convert.tigerra.com/download/My9kZjkxZGZhMzNmMWE0NmZjODYwZDk4YmE3MDAxOTIwMi0xNzMwOTE0MjY1LTM6YmFlMmE3N2FkNjRiNGE0OTljYzZlYTkwYjA2ZWE3NmQvMS5tcDM"
}
5 Download the converted file. Receive the file as a stream or multiple files urls for download as a stream.
Example file download
curl -X GET "https://convert.tigerra.com/download/My9kZjkxZGZhMzNmMWE0NmZjODYwZDk4YmE3MDAxOTIwMi0xNzMwOTE0MjY1LTM6YmFlMmE3N2FkNjRiNGE0OTljYzZlYTkwYjA2ZWE3NmQvMS5tcDM" \
-H "Authorization: Bearer your-token" \
--output downloaded_file.ext
6 Delete the file.
Example file deletion
curl -X DELETE "https://convert.tigerra.com/delete-pid/1:7a005b208e60445389c7930b376f91e4" \
-H "Authorization: Bearer your-token"