Single Document Generation

Generate documents based on user input in webforms

post
Generate single document

https://app.edocgen.com/api/v1/document/generate/v1/cakes/:id
Generate document using template id and markers
Request
Response
Headers
x-access-token
required
string
Authorization header as obtained by calling login.
Body Parameters
request
required
string
Request object
200: OK
Cake successfully retrieved.
{
"name": "Cake's name",
"recipe": "Cake's recipe name",
"cake": "Binary cake"
}
404: Not Found
Could not find a cake matching this query.
{
"message": "Ain't no cake like that."
}

Request object

documentId - id of the template; format - output format docx or pdf. Default docx; outputFileName - file name for the output file

Example Value | Model
{
"documentId": "string",
"markers": "string",
"format": "string",
"outputFileName": "string"
}