# /documentprocessing/document/findandreplace

> The /documentprocessing/document/findandreplace endpoint of the DS Server Web API and its POST method, which replaces text in a template to create a document.

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

---

## In This Section

- [POST /documentprocessing/document/findandreplace](https://docs.textcontrol.com/ds-server/reference/web-api/documentprocessing/document-findandreplace/post/llms.txt): Replace pairs of strings in a Base64 DOCX, DOC, RTF or TX template with findAndReplaceData and MergeSettings, and get the result as PDF, DOCX or another format.

---

## Nearby

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