API operation reference
Generated from this branch’s endpoint metadata during the site build. Download OpenAPI JSON. See the API manual for authentication, compatibility, and examples.
POST /api/v1/docx/fill
Section titled “POST /api/v1/docx/fill”Fills a DOCX template with provided data.
Accepts a DOCX template and JSON data. Set validate=true to require the embedded schema and reject invalid data or bindings before returning the filled DOCX.
Parameters
Section titled “Parameters”[ { "name": "X-Culture", "in": "header", "schema": { "type": "string", "default": "de-CH" } }, { "name": "validate", "in": "query", "schema": { "type": "boolean", "default": false } }]Request body
Section titled “Request body”{ "content": { "multipart/form-data": { "schema": { "$ref": "#/components/schemas/FillForm" } } }, "required": true}Responses
Section titled “Responses”{ "200": { "description": "OK" }}POST /api/v1/docx/validatedfill
Section titled “POST /api/v1/docx/validatedfill”Validates and fills a DOCX template with provided data.
Equivalent to /docx/fill?validate=true. Requires an embedded report schema. Returns a filled DOCX or structured validation errors.
Parameters
Section titled “Parameters”[ { "name": "X-Culture", "in": "header", "schema": { "type": "string", "default": "de-CH" } }]Request body
Section titled “Request body”{ "content": { "multipart/form-data": { "schema": { "$ref": "#/components/schemas/FillForm" } } }, "required": true}Responses
Section titled “Responses”{ "200": { "description": "OK" }, "422": { "description": "Unprocessable Content", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }}POST /api/v1/docx/validate
Section titled “POST /api/v1/docx/validate”Validates DOCX data and bindings without returning a filled document.
Accepts the same template, JSON data, and culture as validated filling. Runs an in-memory fill to check the embedded schema and evaluated bindings; returns valid=true or structured validation errors. The source document is unchanged.
Parameters
Section titled “Parameters”[ { "name": "X-Culture", "in": "header", "schema": { "type": "string", "default": "de-CH" } }]Request body
Section titled “Request body”{ "content": { "multipart/form-data": { "schema": { "$ref": "#/components/schemas/FillForm" } } }, "required": true}Responses
Section titled “Responses”{ "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DocxValidationResponse" } } } }, "422": { "description": "Unprocessable Content", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }}GET /addin/config.json
Section titled “GET /addin/config.json”Responses
Section titled “Responses”{ "200": { "description": "OK" }}POST /api/v1/sample-data/generate
Section titled “POST /api/v1/sample-data/generate”Generate random JSON data from a supported JSON Schema.
Request body
Section titled “Request body”{ "content": { "application/json": { "schema": {} } }, "required": true}Responses
Section titled “Responses”{ "200": { "description": "OK" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "413": { "description": "Content Too Large", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "422": { "description": "Unprocessable Content", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }}POST /api/v1/schema/infer
Section titled “POST /api/v1/schema/infer”Infer a JSON Schema from observed JSON data.
Request body
Section titled “Request body”{ "content": { "application/json": { "schema": {} } }, "required": true}Responses
Section titled “Responses”{ "200": { "description": "OK" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "413": { "description": "Content Too Large", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "422": { "description": "Unprocessable Content", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }}POST /api/v1/docx/schema/infer
Section titled “POST /api/v1/docx/schema/infer”Infer and attach a schema and optionally sample data to a DOCX.
Request body
Section titled “Request body”{ "content": { "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ReportDataForm" } } }, "required": true}Responses
Section titled “Responses”{ "200": { "description": "OK" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "413": { "description": "Content Too Large", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "422": { "description": "Unprocessable Content", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }}POST /api/v1/xlsx/schema/infer
Section titled “POST /api/v1/xlsx/schema/infer”Infer and attach a schema and optionally sample data to an XLSX.
Request body
Section titled “Request body”{ "content": { "multipart/form-data": { "schema": { "$ref": "#/components/schemas/ReportDataForm" } } }, "required": true}Responses
Section titled “Responses”{ "200": { "description": "OK" }, "400": { "description": "Bad Request", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "413": { "description": "Content Too Large", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "422": { "description": "Unprocessable Content", "content": { "application/problem+json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }}POST /api/v1/xlsx/generate
Section titled “POST /api/v1/xlsx/generate”Fills a new Xlsx document with provided data.
Accepts json-data and returns the generated Xlsx document.
Parameters
Section titled “Parameters”[ { "name": "X-Culture", "in": "header", "schema": { "type": "string", "default": "de-CH" } }]Request body
Section titled “Request body”{ "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GenerateDataObject" } } }, "required": true}Responses
Section titled “Responses”{ "200": { "description": "OK" }}Referenced models
Section titled “Referenced models”{ "DocxValidationResponse": { "type": "object", "properties": { "valid": { "type": "boolean" } }, "additionalProperties": false }, "FillForm": { "type": "object", "properties": { "file": { "type": "string", "format": "binary", "nullable": true }, "fillDataJson": { "type": "string", "nullable": true } }, "additionalProperties": false }, "GenerateDataObject": { "type": "object", "properties": { "SheetName": { "type": "string", "nullable": true }, "Data": {}, "HeaderNames": { "type": "array", "items": { "type": "string" }, "nullable": true }, "HeaderExpressions": { "type": "object", "additionalProperties": { "type": "string" }, "nullable": true } }, "additionalProperties": false }, "ProblemDetails": { "type": "object", "properties": { "type": { "type": "string", "nullable": true }, "title": { "type": "string", "nullable": true }, "status": { "type": "integer", "format": "int32", "nullable": true }, "detail": { "type": "string", "nullable": true }, "instance": { "type": "string", "nullable": true } }, "additionalProperties": {} }, "ReportDataForm": { "type": "object", "properties": { "file": { "type": "string", "format": "binary", "nullable": true }, "data": { "type": "string", "nullable": true }, "id": { "type": "string", "nullable": true }, "version": { "type": "string", "nullable": true }, "title": { "type": "string", "nullable": true }, "attachData": { "type": "boolean" }, "removeData": { "type": "boolean" } }, "additionalProperties": false }}