Conversion Status API
Base path: /api/v1/conversion/. One status, wait and delete for a conversion id from any
converter: documents, images, video, 3D models or fonts. API-key scope:
convert (scopes).
| Method | Path | Python | Purpose |
|---|---|---|---|
GET | /{conversion_id}/ | client.conversion.get(id) | Current status |
GET | /wait/{conversion_id}/ | client.conversion.wait(id, timeout=180) | Long-poll until the conversion finishes |
DELETE | /{conversion_id}/ | client.conversion.delete(id) | Purge the files from storage and hide the row; answers 204 |
POST | /{conversion_id}/cancel/ | — | Stop a pending or processing job you own: 200 {id, status: "cancelled"}, 409 with the current status once it has finished, 404 for an id that is not yours |
Submit the job on the converter’s own endpoint (documents,
media, fonts), then follow it here by the id the submit
returned:
from indox_client import Indox
with Indox() as client:
job = client.images.convert("photo.png", target_format="webp")
final = client.conversion.wait(job["id"], timeout=120)
client.media.download(job["id"], "photo.webp")A cancelled job ends with status cancelled: it is not charged, nothing is delivered to a cloud
destination, and its download answers 409. A running encode finishes in the background and
its output is discarded.
wait returns once the status is completed or partial (some formats succeeded). A failed
conversion raises ConversionError, and a conversion still running after timeout seconds raises
ConversionTimeoutError. The client asks the server to hold each wait request for up to 30
seconds and repeats until timeout.
Download the result from the converter that made it (client.pdf.download,
client.media.download, client.fonts.conversions.download); each serves its own files.