# docx\_fill\_convert API parameters

**API documentation:** <https://docmaker.co/api>

**Endpoint URL:** <https://api.v2.docmaker.co/docx\\_fill\\_convert>

### List of API call parameters:

<table><thead><tr><th width="214">Parameter</th><th width="137">Values enum</th><th>Decription</th></tr></thead><tbody><tr><td><code>"templateID"</code></td><td></td><td>ID of the docx template uploaded in your docmaker.co dashboard.</td></tr><tr><td><code>"templateURL"</code></td><td></td><td>As an alternative to the templateID, you may provide the full URL of your docx template file. Has to be a public file.</td></tr><tr><td><code>"name"</code></td><td></td><td>Name of the result file, has to include the extension (.pdf or .docx)</td></tr><tr><td><code>"pdfEngine"</code></td><td><code>"custom"</code>, <code>"standard"</code></td><td>"custom" pdf engine is faster but restricted to open source fonts (mostly google fonts)<br>"standard" pdf engine accepts most standard fonts</td></tr><tr><td>"<code>outputType"</code></td><td><code>"pdf"</code>, <code>"docx"</code></td><td>Define the format of the result file: docMaker can generate either docx or pdf files</td></tr><tr><td><code>"emptyTags"</code></td><td><p><code>"removeTags"</code>,</p><p><code>"leaveTags"</code>,</p><p><code>"undefined"</code>,</p><p><code>"N/A"</code></p></td><td>"removeTags": if no data is sent to replace a specific substitution tag, then the tag will be removed<br>"leaveTags": if no data, tag will remain in the document. Useful when creating custom templates with your app.<br>"undefined": if no data, tags will be replaced by "undefined"<br>"N/A": if no data, tags will be replaced by "N/A"</td></tr><tr><td><code>"showJSONinLogs"</code></td><td><p><code>true</code>,</p><p><code>false</code></p></td><td>Boolean parameter, if set to "no", then none of your data will be stored in docMaker servers, not event in technical logs</td></tr><tr><td><code>"metadata"</code></td><td></td><td>Free text field, where you can store any useful data to identify a specific docMaker API call in the logs</td></tr><tr><td><code>"upload_output_file"</code></td><td><code>true</code>,<code>false</code></td><td>Boolean parameter, defining whether result files should be uploaded to docMaker S3 buckets (files are deleted after 48 hours). Should be set to "yes" for most API calls. Except for Bubble.io, for which this can be set to "yes" if you chose to upload the result file to Bubble (see Bubble plugins specific parameters).</td></tr><tr><td><code>"privateUpload"</code></td><td><code>true</code>,<code>false</code></td><td>Boolean parameter, if set to "yes", your result files will be uploaded to a private S3 bucket. You will get a presigend URL valid for 2 hours.</td></tr><tr><td><code>"webhook_url"</code></td><td></td><td>URL of the webhook where you want the result file to be sent.</td></tr><tr><td><code>"webhook_token"</code></td><td></td><td>You may provide an auth token in order to authenticate the webhook call to your server. docMaker will add it as a Beare token in the "Authorization" header of the webhook API call.</td></tr><tr><td><code>"webhook_object_id"</code></td><td></td><td>Free text field, which you can use to help your backend identifiy the object to which the docMaker result_file should be attached.</td></tr><tr><td><code>"webhook_object_type"</code></td><td></td><td>Free text field, which you can use to help your backend identifiy the table to which the docMaker result_file should be attached.</td></tr><tr><td><code>"mailTo"</code></td><td></td><td>List of email adresses (separated by comma) to receove the email</td></tr><tr><td><code>"senderName"</code></td><td></td><td>Sender's name, when using docMaker to send the created file in attachment to an email.</td></tr><tr><td><code>"replyTo"</code></td><td></td><td>reply to: email adress to be used when your users will reply to the message set by docMaker</td></tr><tr><td><code>"ccTo"</code></td><td></td><td>cc to: List of email adresses (separated by comma) to receive a copy of the email sent by docMaker</td></tr><tr><td><code>"bccTo"</code></td><td></td><td>bcc to: List of email adresses (separated by comma)  to receive a blind copy of the email sent by docMaker</td></tr><tr><td><code>"mailSubject"</code></td><td></td><td>subject of the email</td></tr><tr><td><code>"mailContent"</code></td><td></td><td>email contents (html or text)</td></tr><tr><td><code>"attachOutput"</code></td><td><code>true</code>, <code>false</code></td><td>If true, the generated pdf will be attached ot the email</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guide.docmaker.co/features/create-pdf-from-docx-template/docx_fill_convert-api-parameters.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
