VoodooMerge Logo
  • Demo
  • Template Design
  • API

Generates the document in the requested format from the provided template and supplied data.
At least one of template / templateName attributes must be present in the request.
If authorization is enabled, the personal api key must be passed via the API_KEY request header.

You can test the request on the Demo page.


Request:
Attribute
Default
template [String]
-
Base64 encoded template file.
templateName [String]
-
Preinstalled template name on disk.
name [String]
-
New file name.
type [String]
"DOCX"
Output file
Supported: "PDF", "DOCX", "DOTX", "DOC", "DOT", "ODT", "OTT", "UOT", "XML", "HTML", "RTF", "TXT"
data [Json Object]
-
Data to be parsed into the template.
(example)
{
    "templateName": "sample_template_msword.docx",
    "type": "PDF",
    "data": {
        "title": "Dynamic title",
        "text": "Lorem ipsum lorem ipsum",
        "flagTrue": true,
        "persons": [
            {
                "firstName": "Valentin",
                "lastName": "Sydorenko",
                "contacts": []
            },
            {
                "firstName": "Jane",
                "lastName": "Dou",
                "contacts": [
                    {
                        "type": "work",
                        "phone": "0931112233",
                        "mail": "test@mail.com"
                    },
                    {
                        "type": "home",
                        "phone": "0933334455",
                        "mail": "test@mail.com"
                    }
                ]
            }
        ]
    }
}
                        

Response:

Document will be returned inside response body on success


Failure:
Attribute
Value
status
Response status.
Possible values: "ERROR"
message
Error message.

Generate documents in a batch of requested formats from the provided template and supplied data.
At least one of template / templateName attributes must be present in request.
If authorization is enabled, the personal api key must be passed via API_KEY request header.


Request:
Attribute
Default
template [String]
-
Base64 encoded template file.
templateName [String]
-
Preinstalled template name on disk.
types [String[]]
["DOCX"]
Output file formats in array
Supported: "PDF", "DOCX", "DOTX", "DOC", "DOT", "ODT", "OTT", "UOT", "XML", "HTML", "RTF", "TXT"
data [Json Object]
-
Data to be parsed into the template.
(example)
{
    "templateName": "sample_template_msword.docx",
    "types": ["PDF", "DOCX"],
    "data": {
        "title": "Dynamic title",
        "text": "Lorem ipsum lorem ipsum",
        "flagTrue": true,
        "persons": [
            {
                "firstName": "Valentin",
                "lastName": "Sydorenko",
                "contacts": []
            },
            {
                "firstName": "Jane",
                "lastName": "Dou",
                "contacts": [
                    {
                        "type": "work",
                        "phone": "0931112233",
                        "mail": "test@mail.com"
                    },
                    {
                        "type": "home",
                        "phone": "0933334455",
                        "mail": "test@mail.com"
                    }
                ]
            }
        ]
    }
}
                      

Response:
Attribute
Value
status
Response status. "SUCCESS or "ERROR"
message
Error message (if any).
names
Names of generated files on disk
links
Urls of generated files
  • Demo
  • Template Design
  • API
Contact: hello@insign.ch

© 2021 by insign | All rights reserved