POST
/v1/convertQueue a DOCX file for conversion.
- Request
- multipart/form-data: file
- Response
- 202 Accepted
API REFERENCE / V1
The first version has three endpoints and four meaningful states: pending, processing, done, and failed.
AUTHENTICATION
Set API_KEY in the deployment environment, then send it as X-API-Key on every /v1/ request. The /healthz readiness endpoint remains public.
curl http://localhost:8080/v1/jobs/{id} \
-H "X-API-Key: $DOCX_PDF_API_KEY"/v1/convertQueue a DOCX file for conversion.
/v1/jobs/{id}Read the current state of a conversion job.
/v1/jobs/{id}/pdfDownload the rendered PDF after the job completes.
JOB STATES
Accepted and waiting in the queue.
The worker is rendering the document.
A PDF output is available.
Rendering stopped with an error message.