Document Generation

Fill documents without generating them

Changed on

Fills every chosen template for every chosen row on the server and returns, per document, the values with their origins and the fields still missing. Nothing is stored. Needs the read scope; as a POST it still requires a person at or above member behind the key. A batch holds at most 500 documents (rows times templates).

post/v1/doc-gen/drafts

Request

  • Base URL
    https://api.talonic.com
  • Auth
    HTTP bearer

Request body

DocGenGenerateRequest required

Name a template with template_id (and with_pair) or an explicit set with template_ids.

template_id, string uuid
template_ids, string[]
with_pair, boolean

Also generate the template's companion.

data_product_id, string uuid required
record_ids, string[] required

Row ids of the data product.

values, object

Values for every document by field key. A field entered per document takes the value as entered, a passage decided per document takes yes or no, and any other field takes it as an edit over the fill.

documents, DocGenDocumentValues[]

Values for single documents; they win over values.

profile, object

The writer's details for this batch only (name, kuerzel, titel, bereich, unterschrift); the saved profile is unchanged.

save_to_workspace, boolean

When false, the files are deleted 24 hours after generation.

allow_missing, boolean

Generate although some documents leave fields empty.

dry_run, boolean

Response

The templates and the filled documents.

DocGenDraftsResult required
templates, object[]
documents, DocGenDraft[]

Changes