/// API REFERENCE

ASHDOCS API reference (OpenAPI)

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.

Endpoints

MethodPathWhat it does
POST/api/v1/tools/html-to-pdfHTML to PDF
POST/api/v1/tools/url-to-pdfURL to PDF
POST/api/v1/tools/mergeMerge PDF
POST/api/v1/tools/splitSplit PDF
POST/api/v1/tools/rotateRotate PDF
POST/api/v1/tools/compressCompress PDF
POST/api/v1/tools/watermarkWatermark PDF
POST/api/v1/tools/password-addPassword Protect
POST/api/v1/tools/password-removeRemove Password
POST/api/v1/tools/extract-pagesExtract Pages
POST/api/v1/tools/remove-pagesRemove Pages
POST/api/v1/tools/page-numbersAdd Page Numbers
POST/api/v1/tools/metadataEdit Metadata
POST/api/v1/tools/image-to-pdfImages to PDF
POST/api/v1/tools/pdf-to-imagePDF to Images
POST/api/v1/tools/ocrOCR PDF
POST/api/v1/tools/office-to-pdfOffice to PDF
POST/api/v1/tools/pdf-to-textPDF to Text
POST/api/v1/tools/pdf-to-tablePDF to Table
POST/api/v1/tools/pdf-to-dataPDF to Data (schema)
POST/api/v1/tools/bank-statement-to-csvBank Statement to CSV
POST/api/v1/tools/pdf-to-markdownPDF to Markdown
POST/api/v1/tools/markdown-to-pdfMarkdown to PDF
POST/api/v1/tools/pdf-to-htmlPDF to HTML
POST/api/v1/tools/invoice-pdfInvoice PDF
POST/api/v1/tools/barcodeBarcode
POST/api/v1/tools/qr-codeQR Code
POST/api/v1/tools/screenshotScreenshot
POST/api/v1/tools/og-imageOG Image
POST/api/v1/tools/redact-pdfRedact PDF
GET/api/jobsList 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}/logsPer-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/batchRun one tool over multiple files, one credit ledger entry
GET/api/v1/batch/{batch_id}Get a batch run's status
POST/api/webhooksRegister a webhook (X-ASHDOCS-Signature HMAC-SHA256)

Loading API reference…