Documents
Document format conversion APIs.
Base path: /api/v1/documents
All endpoints are POST with multipart/form-data:
file(required) — document to convertX-Api-Key(required)
curl -X POST "https://api.toolyour.com/api/v1/documents/pdf-to-docx" \
-H "X-Api-Key: $API_KEY" \
-F "file=@report.pdf"PDF generation routes
These support optional PDF options (page_size, orientation, margin):
docx-to-pdf,txt-to-pdf,rtf-to-pdf,md-to-pdf,html-to-pdf
Common conversions
| Examples | |
|---|---|
| Office | docx-to-pdf, pdf-to-docx, txt-to-docx |
| Text | pdf-to-txt, docx-to-txt, html-to-txt |
| Web | html-to-pdf, pdf-to-html, md-to-html |
25 document endpoints are listed under the Documents tag in the API reference.
Limits
- Max file size: 10 MB (server default)
- Response is typically binary file content