Skip to content

DocKiln documentation

Turn JSON, HTML or a public web page into a downloadable document. Start with one request, then move repeated layouts into versioned templates.

Generate your first PDFCreate a key, submit HTML and download the finished file.Build a reusable templateMap JSON fields, repeat table rows and publish a layout.

With a workspace API key and your instance URL in the environment, send HTML to the documents endpoint.

Terminal
curl --fail-with-body -sS "$DOCKILN_URL/v1/documents" \
-H "Authorization: Bearer $DOCKILN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"html":"<h1>Order confirmed</h1><p>Order DK-1042</p>"}'

A successful submission returns 202 Accepted with a job ID. Use that ID to check the result and download the PDF. To try the built-in layouts before creating a workspace, use the sample playground.

Input When to use it
Published template + JSON Invoices, receipts or reports that share a layout and need predictable pagination.
HTML with inline CSS A custom print layout or a raster image of self-contained markup.
Public URL A static snapshot of a public HTML page. Embed the styles and images the output needs.

Rendering options cover paper sizes, page numbers, screenshots and readiness controls.