About this endpoint
What it does
Uploads a DOCX file, adds the requested header/footer content to it, and returns the modified document as a downloadable file.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | DOCX file to modify. |
| output | String | No | Output filename stem, without extension. Defaults to document. |
| footer_text | String | No | Footer text. |
| header_text | String | No | Header text. At least one of header_text, footer_text, header_image, footer_image, or include_table_of_content is required. |
| footer_image | String | No | Footer image (PNG). |
| header_image | String | No | Header image (PNG). |
| footer_alignment | ENUM | No | Allowed values: left, center, right. Default: center. |
| header_alignment | ENUM | No | Allowed values: left, center, right. Default: center. |
| include_table_of_content | Boolean | No | Insert a table of contents at the beginning of the document. Default: false. |
Response
Returns a binary file download containing the modified document.