Generated from the same curated spec served live at GET /openapi.json — re-exported and committed at every release (Block 1.2). Rendered client-side, no CDN script.
Each tool in the spec comes with request and response examples and credit costs. Download the OpenAPI spec (JSON) to import it into an API client or code generator.
The ASHDOCS API puts its document tools behind one API key. They convert HTML, URLs, Office files, images and Markdown to PDF and PDFs to images and HTML; edit PDFs (merge, split, rotate, compress, watermark, page numbers, metadata, extract and remove pages); extract text, tables, schema-driven data, Markdown and bank statements, with OCR; secure PDFs with passwords and redaction; and generate invoice PDFs, barcodes, QR codes, screenshots and OG images. The job endpoints list your recent jobs, return one job and its timing, credit and error timeline, and run one tool over multiple files as a batch, and a webhook endpoint registers a signed callback. Sandbox keys (ash_test_) never bill, and failed jobs are never charged.
| Method | Path | What it does |
|---|---|---|
POST | /api/v1/tools/html-to-pdf | HTML to PDF |
POST | /api/v1/tools/url-to-pdf | URL to PDF |
POST | /api/v1/tools/merge | Merge PDF |
POST | /api/v1/tools/split | Split PDF |
POST | /api/v1/tools/rotate | Rotate PDF |
POST | /api/v1/tools/compress | Compress PDF |
POST | /api/v1/tools/watermark | Watermark PDF |
POST | /api/v1/tools/password-add | Password Protect |
POST | /api/v1/tools/password-remove | Remove Password |
POST | /api/v1/tools/extract-pages | Extract Pages |
POST | /api/v1/tools/remove-pages | Remove Pages |
POST | /api/v1/tools/page-numbers | Add Page Numbers |
POST | /api/v1/tools/metadata | Edit Metadata |
POST | /api/v1/tools/image-to-pdf | Images to PDF |
POST | /api/v1/tools/pdf-to-image | PDF to Images |
POST | /api/v1/tools/ocr | OCR PDF |
POST | /api/v1/tools/office-to-pdf | Office to PDF |
POST | /api/v1/tools/pdf-to-text | PDF to Text |
POST | /api/v1/tools/pdf-to-table | PDF to Table |
POST | /api/v1/tools/pdf-to-data | PDF to Data (schema) |
POST | /api/v1/tools/bank-statement-to-csv | Bank Statement to CSV |
POST | /api/v1/tools/pdf-to-markdown | PDF to Markdown |
POST | /api/v1/tools/markdown-to-pdf | Markdown to PDF |
POST | /api/v1/tools/pdf-to-html | PDF to HTML |
POST | /api/v1/tools/invoice-pdf | Invoice PDF |
POST | /api/v1/tools/barcode | Barcode |
POST | /api/v1/tools/qr-code | QR Code |
POST | /api/v1/tools/screenshot | Screenshot |
POST | /api/v1/tools/og-image | OG Image |
POST | /api/v1/tools/redact-pdf | Redact PDF |
GET | /api/jobs | List your recent jobs |
GET | /api/jobs/{job_id} | Get a job by job_id — the id every status_url points to |
GET | /api/jobs/{job_id}/logs | Per-job timing, credit and error timeline |
GET | /api/v1/jobs/{request_id} | Get a job by request_id (a distinct id from job_id) |
POST | /api/v1/batch | Run one tool over multiple files, one credit ledger entry |
GET | /api/v1/batch/{batch_id} | Get a batch run's status |
POST | /api/webhooks | Register a webhook (X-ASHDOCS-Signature HMAC-SHA256) |
Loading API reference…