Managed PDF generation API

Ship PDFs, not PDF infrastructure.

Create a reusable template from a production design, an existing PDF, or a plain-English brief. Send JSON through one API and receive a consistent, production-ready PDF in ~2s.

50 documents freeNo credit cardTest renders don’t countRead the quickstart Import a PDF
POST/v1/generate
ready
JSON payloadapplication/json · 142 bytes
1{
2"template_id""tmpl_invoice",
3"data": {
4"customer": "",
5"amount"
6}
7}
edit the blue fields

01Three ways to start

Choose your starting point.

Use a production template, import a document you already trust, or describe one from scratch. Every route ends as the same versioned template and API.

in · choose any starting point

Start from3 ROUTES · 1 API
01Production templateinvoice / minimalfastest start
02Existing documentinvoice-final.pdflayout retained
03Plain-language briefA clean invoice with…made to order
templates · files · promptsall supported

the source changes · the API contract does not

doclinth compiles the templatetype · fields · print css

out · tmpl_invoice · v1

02Production runtime

Same input. Same document.

Rendering follows a fixed production path. Retries stay safe, tests stay stable, and a historical template version keeps producing the document you approved.

  • Versioned templates that do not drift
  • Idempotent retries and signed delivery
  • Every generation logged with timing
live retry verificationfixed render path

03Production-safe documents

Every template is a typed API.

doclinth derives a JSON Schema from every template — generate TypeScript, Zod, or Pydantic, and validate data before it renders. Then it stress-tests the layout with adversarial data, so the break never reaches your customer.

tests · we break your PDFs before your customers do6 / 6 passed
  • Passed for press
contract → adversarial payloads → rendered proofs, inspectedno overflow · no clipped text · no blank pages

04The production details

Built for the parts that break.

Pagination, retries, long-running jobs, and audit history are already part of the system — each documented, with its limits stated.

Deterministic
AI authors the template; the generation path never calls a model.
Managed Chromium
Real headless Chrome on our side. One HTTPS call on yours.
Render options per request
Format, landscape, margins, metadata and filename, set on the call.
Pagination that holds
Multi-page tables, running headers, breaks that land clean.
Idempotent
One header, and retries never double-print.
Async, with receipts
Long jobs deliver through signed webhooks.
The system of record
Versioned templates, logged generations, revocable keys.

05Agents and automation

One document API for your app — and your agents.

Author once, then render through REST, typed Node and Python SDKs, OpenAPI, or MCP. You keep the keys, the logs, and the kill switch.

Wire up an agent

An agent session, unattended: over MCP the agent calls create_template with a one-sentence prompt and gets tmpl_receipt back; it then calls generate_pdf with order data and receives a signed PDF URL in under two seconds. Each run prints the same receipt, run after run.

MCP

https://doclinth.com/mcp

Claude Code and any MCP client: four tools behind one URL.

SDK

npm i @doclinth/sdk

Fully typed, zero dependencies. Retries never double-print.

REST

GET /openapi.json

Every other framework, plus llms.txt for agents that read docs.

Agent sessionunattended · via MCP
keys
scoped per agent, revocable
every run
logged, with the exact payload
urls
signed, expiring

06Trust, in public

Run the request. Inspect the evidence.

The API contract, changelog, pricing limits, security practices, and a real request are all inspectable before signup — evaluate the whole integration first.

quickstart.sh
curl https://doclinth.com/v1/generate \
  -H "authorization: Bearer dl_test_your_key" \
  -H "content-type: application/json" \
  -d '{ "template_id": "tmpl_receipt", "data": { "order_id": "4021" } }'

07Pricing without traps

Start free. Scale without surprises.

The free plan is enough to build and verify the integration. Paid plans raise the volume and remove the doclinth badge from output — never seats, usage games, or surprise overages.

  • 50 documents each month at $0
  • Starter from $15 per month
  • Hard limits, never automatic overages

YOUR FIRST DOCUMENT IS WAITING

Bring the document. Keep the design.

Import a PDF or start from a prompt. Your first 50 documents are free, with no credit card and no infrastructure to operate.