/// 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, options, credits, and error codes.
Reference
URL-to-PDF endpoint
Reference for POST /api/v1/tools/url-to-pdf — SSRF-guarded, private IPs refused, wait strategies documented.
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
Optical character recognition on scanned PDFs with confidence scores and per-word bounding boxes.
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
Signed HMAC-SHA256 POST callbacks for job and pipeline events. 3 retries with exponential backoff.
Reference
Rate limits & quotas
Plan-tiered rate limits, per-response X-RateLimit-* headers, and idempotency-key caching for safe retries.
Reference
Error codes reference
Every error returns JSON with detail.code and detail.message. Full catalog of codes and remediation steps.
Reference
Generation tools — invoice, barcode, QR, screenshot, OG image, PDF to HTML
Reference for the six generation endpoints: invoice-pdf (1 credit), barcode (1), qr-code (1), og-image (1), screenshot (2) and pdf-to-html (2) — request shapes and curl examples.