Exporting lets you take your DocInject documents outside the platform. Use the Word export when you need a branded, formattedDocumentation Index
Fetch the complete documentation index at: https://docs.docinject.com/llms.txt
Use this file to discover all available pages before exploring further.
.docx file ready to send or archive. Use Markdown when you need plain text that works anywhere — wikis, code repositories, or downstream tools.
Export formats
| Format | File type | Template required |
|---|---|---|
| Word | .docx | Yes |
| Markdown | .md | No |
Export a document from the UI
Select a template (Word only)
If you chose Word, pick a template from the dropdown. The first available template is selected by default. If no templates appear, upload one first — see Managing templates below.
Export via API
template_id as a query parameter and returns the .docx file with Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document.
The Markdown export endpoint requires no additional parameters and returns the .md content with Content-Type: text/markdown.
Both endpoints require authentication.
The
template_id query parameter is required for Word export. Omitting it returns a 400 error.Managing templates
Templates are.docx files that control the layout and styling of your Word exports. DocInject fills in document sections, steps, and content during export.
Upload a template
You can also upload via the API:
tab_width field controls indentation in the exported document (defaults to 0.5).
List templates
Delete a template
In Settings → Templates, click the delete button next to the template you want to remove. Via the API:204 No Content on success.
