WordPDF Document API

Get started with your API key

Use your private API key as a Bearer token. The current API is focused on written document workflows: TXT to PDF, Markdown to PDF, and CSV to PDF.

1. Check API health

curl https://word-to-pdf-converter.com/api/v1/health

2. Upload a text file

curl -X POST https://word-to-pdf-converter.com/api/v1/uploads \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@example.txt"

3. Create a TXT to PDF job

curl -X POST https://word-to-pdf-converter.com/api/v1/jobs \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"txt-to-pdf","uploadId":"UPLOAD_ID"}'

4. Process the job

curl -X POST https://word-to-pdf-converter.com/api/v1/jobs/JOB_ID/process \
  -H "Authorization: Bearer YOUR_API_KEY"

5. Download the result

curl -L https://word-to-pdf-converter.com/api/v1/jobs/JOB_ID/download \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -o result.pdf

Important rules

  • Keep your API key private.
  • Send it only in the Authorization header.
  • Allowed uploads: txt, md, csv, rtf.
  • Current workers: txt-to-pdf, md-to-pdf, csv-to-pdf.
  • Do not expose your API key in frontend JavaScript.
WordPDF Converter

Free online tools for PDF editing, document conversion, image conversion, video conversion, audio conversion, archives, and file preparation.