Get the merge-variable schema for a template
GET/v1/docgen/templates/:id/form-fields
Returns the merge fields a template references so authoring UIs can
populate field pickers and dataset bindings without an extra ingest
step. Fields are scope-aware: values read inside a {{#each}} block
are reported as item fields of that list rather than as top-level
fields. A list is typed array with itemType object (and its item
fields under fields) or string; a {{#if}} condition is typed
boolean. A type declared in the template's dataSchema takes
precedence over the inferred one.
Request
Responses
- 200
- 404
Merge field schema
Response Headers
Correlation id for this request, returned on every response (success and error). Quote it when contacting support to pinpoint the exact request, and use it to correlate your own logs. It is the same 128-bit id as the trace-id segment of the traceparent header.
W3C Trace Context identifier for this request, returned on every response. Send your own traceparent on a request to have it adopted, so a multi-call workflow shares one trace. Format: 00-<32-hex trace-id>-<16-hex span-id>-<2-hex flags>.
Template not found
Response Headers
Correlation id for this request, returned on every response (success and error). Quote it when contacting support to pinpoint the exact request, and use it to correlate your own logs. It is the same 128-bit id as the trace-id segment of the traceparent header.
W3C Trace Context identifier for this request, returned on every response. Send your own traceparent on a request to have it adopted, so a multi-call workflow shares one trace. Format: 00-<32-hex trace-id>-<16-hex span-id>-<2-hex flags>.