# DocKiln - [DocKiln documentation](https://docs.dockiln.io/index.md): 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 PDF](https://docs.dockiln.io/quickstart.md): Submit a small HTML document, follow its job and save the PDF. This walkthrough uses Bash, curl and jq against a running DocKiln instance. - [Authentication](https://docs.dockiln.io/authentication.md): Use a browser session to manage a workspace and a bearer key to generate documents from a server or automation. - [Templates and JSON](https://docs.dockiln.io/templates.md): Keep the layout in a published template and send just the data that changes between documents. - [Render PDFs and images](https://docs.dockiln.io/generation.md): Choose a source, output format and page settings for a document job. - [Downloads and webhooks](https://docs.dockiln.io/delivery.md): Retrieve a finished file, deliver it to your bucket or notify a service when a document finishes. - [Migrate a PDFShift integration](https://docs.dockiln.io/pdfshift-migration.md): Map document inputs, conversion options and delivery behavior to the DocKiln review API. - [API reference](https://docs.dockiln.io/api.md): Look up the REST endpoints, retry rules and responses used by DocKiln clients. - [Document history](https://docs.dockiln.io/api-reference/document-history.md) - [Queue generation](https://docs.dockiln.io/api-reference/queue-generation.md) - [Poll generation status](https://docs.dockiln.io/api-reference/poll-generation-status.md) - [Download a PDF](https://docs.dockiln.io/api-reference/download-generated-file.md) - [Download a PDF or image](https://docs.dockiln.io/api-reference/download-generated-file-1.md) - [Create an expiring download link](https://docs.dockiln.io/api-reference/sign-private-s3-download-for-five-minutes.md) - [Preview private Open Graph image](https://docs.dockiln.io/api-reference/preview-private-open-graph-image.md) - [Queue up to eight independently validated documents](https://docs.dockiln.io/api-reference/queue-up-to-eight-independently-validated-documents.md) - [Starter layouts](https://docs.dockiln.io/api-reference/starter-layouts.md) - [List workspace templates](https://docs.dockiln.io/api-reference/list-workspace-templates.md) - [Create draft](https://docs.dockiln.io/api-reference/create-draft.md) - [Read draft](https://docs.dockiln.io/api-reference/read-draft.md) - [Save draft](https://docs.dockiln.io/api-reference/save-draft.md) - [Delete a workspace template and its versions](https://docs.dockiln.io/api-reference/delete-a-workspace-template-and-its-versions.md) - [Snapshot current draft](https://docs.dockiln.io/api-reference/snapshot-current-draft.md) - [Published snapshots](https://docs.dockiln.io/api-reference/published-snapshots.md) - [Download published HTML source](https://docs.dockiln.io/api-reference/download-published-html-source.md) - [Download HTML filled with JSON data](https://docs.dockiln.io/api-reference/download-html-filled-with-json-data.md) - [Register](https://docs.dockiln.io/api-reference/register.md) - [Login](https://docs.dockiln.io/api-reference/login.md) - [End session](https://docs.dockiln.io/api-reference/end-session.md) - [Account identity](https://docs.dockiln.io/api-reference/account-identity.md) - [List key labels](https://docs.dockiln.io/api-reference/list-key-labels.md) - [Create key and show its secret once](https://docs.dockiln.io/api-reference/create-key-and-show-its-secret-once.md) - [Revoke key](https://docs.dockiln.io/api-reference/revoke-key.md) - [Rename, enable or disable a key](https://docs.dockiln.io/api-reference/rename-enable-or-disable-a-key.md) - [Endpoint and delivery history](https://docs.dockiln.io/api-reference/endpoint-and-delivery-history.md) - [Set endpoint and rotate secret](https://docs.dockiln.io/api-reference/set-endpoint-and-rotate-secret.md) - [Disable webhook](https://docs.dockiln.io/api-reference/disable-webhook.md) - [Read destination metadata](https://docs.dockiln.io/api-reference/read-destination-metadata.md) - [Configure a private bucket](https://docs.dockiln.io/api-reference/configure-encrypted-s3-destination.md) - [Disable destination for future jobs](https://docs.dockiln.io/api-reference/disable-destination-for-future-jobs.md) - [Monthly usage](https://docs.dockiln.io/api-reference/monthly-usage.md) - [Create Stripe test checkout](https://docs.dockiln.io/api-reference/create-stripe-test-checkout.md) - [List the last 100 workspace requests](https://docs.dockiln.io/api-reference/list-the-last-100-workspace-requests.md) - [Inspect redacted request metadata](https://docs.dockiln.io/api-reference/inspect-redacted-request-metadata.md) - [Inspect UTC monthly allowances and rate limit](https://docs.dockiln.io/api-reference/inspect-utc-monthly-allowances-and-rate-limit.md) - [Read up to 25 linked Stripe test invoices](https://docs.dockiln.io/api-reference/read-up-to-25-linked-stripe-test-invoices.md) - [Provider configuration status](https://docs.dockiln.io/api-reference/provider-configuration-status.md) - [Generate a structured draft](https://docs.dockiln.io/api-reference/generate-a-structured-draft.md) - [Delivery and PDF guides](https://docs.dockiln.io/misc/overview.md): Choose where a generated file goes, how your integration receives it, and which settings travel with the PDF. - [Exporting to AWS S3](https://docs.dockiln.io/misc/buckets/aws-s3.md): Deliver generated files to a private Amazon S3 bucket using a workspace-scoped destination. - [Saving to Google Cloud Storage](https://docs.dockiln.io/misc/buckets/google-cloud-storage.md): Configure a customer-owned Google Cloud Storage bucket as a workspace destination in DocKiln 1.1. - [Saving to Cloudflare R2](https://docs.dockiln.io/misc/buckets/cloudflare-r2.md): Deliver a PDF or image to a private R2 bucket with bucket-scoped S3 API credentials in DocKiln 1.1. - [Varying responses](https://docs.dockiln.io/misc/varying-responses.md): Choose a job receipt, binary attachment or Base64 JSON and handle a render that outlasts the synchronous wait. - [Getting an API key](https://docs.dockiln.io/misc/getting-an-api-key.md): Create a workspace key, verify it without generating a document and rotate it safely. - [Webhook events](https://docs.dockiln.io/misc/webhook-events.md): Receive signed completion and failure notifications and safely acknowledge repeat deliveries. - [Response headers](https://docs.dockiln.io/misc/response-headers.md): Find the job URL, identify a request and distinguish request throttling from monthly allowance exhaustion. - [Rendering headers and footers](https://docs.dockiln.io/misc/header-footer.md): Put a repeating label and page count on a multi-page HTML document. - [Margins](https://docs.dockiln.io/misc/margins.md): Set a uniform page margin or specify each edge in physical units for a Chromium PDF. - [Adding protection to a PDF](https://docs.dockiln.io/misc/protection.md): Encrypt a PDF with an opening password and configure print, copy and modification permissions. - [Adding a watermark](https://docs.dockiln.io/misc/watermark.md): Overlay text or a supplied PNG or JPEG on every page of a generated PDF. - [Deployment](https://docs.dockiln.io/deployment.md): Run the full application on a single Docker host or split the web gateway from the rendering and storage services. ## OpenAPI Specs - [openapi](/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.