Skip to main content
The paths below come directly from the repository’s OpenAPI specification. Use the origin of your DocKiln instance. Client requests and errors use JSON. File downloads return binary content. The reference includes operations from the 1.1 review build. For release-specific details, see the migration guide.

Document generation

Submit a job, follow its status and retrieve the finished file. History returns up to 100 jobs, newest first. Pass a Unix millisecond timestamp as before to request earlier records. Choose a response mode.

Templates

Start from a library layout or save a workspace draft. Publish a snapshot when the layout is ready to use.

Accounts and sessions

API keys

Use a signed-in session to manage credentials. Create and verify a key.

Webhooks

Use a signed-in session for endpoint configuration and delivery history. Verify incoming events.

Bucket delivery

Use a signed-in session to configure a customer destination. Choose a bucket provider.

Usage and billing

Usage counts accepted jobs in the current UTC calendar month. Stripe operations require test credentials.

Integrations

AI draft generation requires an operator-configured provider.

Retry a submission

Send an Idempotency-Key header with a stable value for each logical generation. Use 1–128 letters, numbers, periods, underscores, colons or hyphens. Retry with the same workspace key scope and identical JSON payload, preserving property order. A duplicate returns the existing job ID without consuming another document unit. Reusing the key with a different payload returns 409.

Common errors

A 202 response confirms admission. Use the job’s terminal status to determine whether rendering and delivery succeeded.