# /documentprocessing/document/merge

> The /documentprocessing/document/merge endpoint of the DS Server Web API and its POST method, which merges hierarchical JSON data into a template.

- **Product:** DS Server
- **Section:** Documentation
- **Kind:** Endpoint
- **Path:** DS Server > API Reference > Web API > DocumentProcessing > /documentprocessing/document/merge
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/web-api/documentprocessing/document-merge/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/web-api/documentprocessing/document-merge/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/web-api/documentprocessing/document-merge/llms-full.txt

---

## In This Section

- [POST /documentprocessing/document/merge](https://docs.textcontrol.com/ds-server/reference/web-api/documentprocessing/document-merge/post/llms.txt): Merge a JSON data array into a Base64 DOCX, DOC, RTF or TX template with MergeSettings and returnFormat, and get the created documents as Base64 strings.

---

## Nearby

- **Previous:** [POST /documentprocessing/document/convert](https://docs.textcontrol.com/ds-server/reference/web-api/documentprocessing/document-convert/post/llms.txt)
- **Next:** [POST /documentprocessing/document/merge](https://docs.textcontrol.com/ds-server/reference/web-api/documentprocessing/document-merge/post/llms.txt)
