/// DOCUMENTATION

Documentation.

Everything you need to ship. All endpoints are HTTPS. Base URL: https://www.ashdocs.com

RESPONSE FORMATS

Default — job envelope. Every tool returns JSON describing the job: status, credits_consumed and output_files[], where each output carries a signed url that expires after 60 minutes. Download the file from that URL.

Flat URL output. Add "options": {"output": "url"} to any file-producing tool and the response flattens to {"file_url", "expires_at", "credits_charged", "job_id"} — the shape automation platforms (Zapier, Airtable, Apps Script) map directly. Default behaviour is unchanged.

URL input. Every file tool also accepts {"file_url": "https://..."} (or file_urls as a list of up to 10) in a JSON body instead of a multipart upload. URLs are fetched server-side behind the same SSRF guard as url-to-pdf.

GUIDES
REFERENCE
Reference
Authentication — API keys
ASHDOCS uses X-API-Key headers with test and live key pairs. Test keys never charge credits; live keys deduct from your plan.
Reference
HTML-to-PDF endpoint
Reference for POST /api/v1/tools/html-to-pdf: request shape, template data and strict mode, options, credits and error codes, with curl examples.
Reference
URL-to-PDF endpoint reference
Reference for POST /api/v1/tools/url-to-pdf: SSRF-guarded with private IPs refused, plus wait strategies, page format and print stylesheet options.
Reference
Document conversion tools
Office documents to PDF with office-to-pdf, and PDF to editable Word with pdf-to-docx — inputs, page-setup options, queueing and error codes.
Reference
OCR — text from scanned PDFs
OCR for scanned PDFs with confidence scores and per-word bounding boxes, a choice of installed languages, and an optional plain-text sidecar file.
Reference
Structured data extraction
Schema-driven extraction with Claude Sonnet 5. Returns the fields you describe with per-field confidence, and a review queue for the uncertain ones.
Reference
Webhooks reference — signed event callbacks
Signed HMAC-SHA256 POST callbacks for job and pipeline events, with 3 retries and exponential backoff. Inspect and replay failures from Deliveries.
Reference
Rate limits & quotas
Plan-tiered rate limits per API key, per-response X-RateLimit-* headers, and idempotency-key caching for safe retries. Failed requests count too.
Reference
Error codes reference
Every error returns JSON with detail.code and detail.message. Full catalog of codes and remediation steps; failed jobs are never charged credits.
Reference
Generation tools — invoices, barcodes, QR codes
Reference for the six generation endpoints: invoice-pdf, barcode, qr-code, og-image, screenshot and pdf-to-html, with credit costs and curl examples.