Skip to content

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.

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.

[
{
"name": "X-Culture",
"in": "header",
"schema": {
"type": "string",
"default": "de-CH"
}
},
{
"name": "validate",
"in": "query",
"schema": {
"type": "boolean",
"default": false
}
}
]
{
"content": {
"multipart/form-data": {
"schema": {
"$ref": "#/components/schemas/FillForm"
}
}
},
"required": true
}
{
"200": {
"description": "OK"
}
}

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.

[
{
"name": "X-Culture",
"in": "header",
"schema": {
"type": "string",
"default": "de-CH"
}
}
]
{
"content": {
"multipart/form-data": {
"schema": {
"$ref": "#/components/schemas/FillForm"
}
}
},
"required": true
}
{
"200": {
"description": "OK"
},
"422": {
"description": "Unprocessable Content",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ProblemDetails"
}
}
}
}
}

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.

[
{
"name": "X-Culture",
"in": "header",
"schema": {
"type": "string",
"default": "de-CH"
}
}
]
{
"content": {
"multipart/form-data": {
"schema": {
"$ref": "#/components/schemas/FillForm"
}
}
},
"required": true
}
{
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DocxValidationResponse"
}
}
}
},
"422": {
"description": "Unprocessable Content",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ProblemDetails"
}
}
}
}
}
{
"200": {
"description": "OK"
}
}

Generate random JSON data from a supported JSON Schema.

{
"content": {
"application/json": {
"schema": {}
}
},
"required": true
}
{
"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"
}
}
}
}
}

Infer a JSON Schema from observed JSON data.

{
"content": {
"application/json": {
"schema": {}
}
},
"required": true
}
{
"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"
}
}
}
}
}

Infer and attach a schema and optionally sample data to a DOCX.

{
"content": {
"multipart/form-data": {
"schema": {
"$ref": "#/components/schemas/ReportDataForm"
}
}
},
"required": true
}
{
"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"
}
}
}
}
}

Infer and attach a schema and optionally sample data to an XLSX.

{
"content": {
"multipart/form-data": {
"schema": {
"$ref": "#/components/schemas/ReportDataForm"
}
}
},
"required": true
}
{
"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"
}
}
}
}
}

Fills a new Xlsx document with provided data.

Accepts json-data and returns the generated Xlsx document.

[
{
"name": "X-Culture",
"in": "header",
"schema": {
"type": "string",
"default": "de-CH"
}
}
]
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GenerateDataObject"
}
}
},
"required": true
}
{
"200": {
"description": "OK"
}
}
{
"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
}
}