A Document Solution is the unit that ties together everything a generation pipeline needs: one or more Document Templates, one or more Data Sources, and one or more Configurations. The templates and Data Sources define what gets generated; a Configuration defines how — output format, delivery, locale, and rendering options.
This separation means the same content can be produced in different ways without duplicating the template-and-data pairing — for example a PDF to Storage in one scenario and a DOCX to OneDrive in another.
This page explains the resources. To create a solution, its Configuration and a Document Request step by step, see Generate Document, Part 2.
A solution has a name and description, the templates and Data Sources attached to it, and its Configurations. Reading a solution also returns usage figures, such as how many documents it has generated, so you can see how it is used without querying requests.
Templates and Data Sources are independent records: one template or Data Source can be attached to several solutions, and deleting a solution doesn't delete them. Configurations, by contrast, belong to the solution and are deleted with it.
A single create call can attach existing templates and Data Sources by id and define Configurations in full with configurationDetails. The solution's id is what you reference from then on.
Linking by id on create is best-effort: a template, Data Source or Configuration id that can't be found is skipped rather than failing the request. Compare the returned lists with what you sent.
After creation you can attach and detach templates and Data Sources, rename the solution, manage its Configurations, file it in a folder, or delete it, which deletes its Configurations too. See the full set of solution endpoints in the API Reference.
A Configuration belongs to exactly one solution, and a solution can hold several — each a named, independent variant of how generation should run. A Configuration sets:
Europe/Dublin.Configurations are defined with the solution (configurationDetails) or added to an existing solution with POST /documents/configuration/create. Updating a Configuration is a full replacement: fields you leave out are cleared, and sending options replaces all option values.
Rendering and delivery options — PDF conformance, image DPI, Word track changes, OneDrive and Google Drive sharing, Google generation settings and more — are set on a Configuration as option values. Doctavian maintains the catalogue of available options; it is read-only.
GET /documents/option/definition/list. Each has an id, a readable key such as pdf_compliance, a type and, where the choice is fixed, its allowed values.options on configuration create or update, naming each by its definition id. A value is always a string, such as "true" or "300".GET /documents/option/DocumentSolutionConfiguration/{configurationId}/list.For example, two option values in a Configuration's options:
"options": [
{ "optionDefinitionId": "fd4d6425-a871-4bcd-8f16-a088146bd924", "value": "PdfA2b" },
{ "optionDefinitionId": "8d254f60-aa38-4509-87de-74fa14702764", "value": "750" }
]Option groups correspond to the sections of document.options on a one-call generate request. Every option, with its type, default and accepted values, is listed in the Option Definitions Reference.
Every generation through a solution is a Document Request — a record that tracks one generation from start to finish, referencing the template and Data Source used and, optionally, the Configuration.
Document Requests move through four statuses: New (saved; returned by create), Processing, then Completed (with documentId naming the document record) or Failed (with errorMessage). A failed request is not retried — create a new one. See Handle Async Generation for polling and listing, and Error Handling for what to do when something fails.
See the full set of request endpoints in the API Reference.
A request names the template record (documentTemplateId) and Data Source (dataSourceId) to generate from, and optionally the Configuration (documentSolutionConfigurationId) to apply. When no Configuration is named, none is used: the solution's default is not looked up.
Output settings such as file format, delivery method, path, locale, time zone and title can be set on the request itself. Any left out are taken from the Configuration, and failing that from built-in defaults (the template's own format, delivered to Storage). The resolved values are stored on the request when it is saved, so later changes to the Configuration don't reach requests already created.
On completion, documentId names the document record. Its urn is the generated file; see Storage and File IDs for which id goes to which operation.
Uploaded template and data files in Storage are consumed by the first generation that reads them, whether it succeeded or failed. A later request on the same template or Data Source ends in
Failed. Upload fresh files and update the records'urnbefore each run. See Storage and File IDs.
Ready to put this into practice? Generate Document, Part 2, creates a solution, a Configuration and a Document Request, then polls it to the finished file.