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:
[String]
[String]
[String]
[String]
Supported: "PDF", "DOCX", "DOTX", "DOC", "DOT", "ODT", "OTT", "UOT", "XML", "HTML", "RTF", "TXT"
[Json Object]
{ "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:
Possible values: "ERROR"
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:
[String]
[String]
[String[]]
Supported: "PDF", "DOCX", "DOTX", "DOC", "DOT", "ODT", "OTT", "UOT", "XML", "HTML", "RTF", "TXT"
[Json Object]
{ "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" } ] } ] } }