# POST /documentprocessing/document/findandreplace

> 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.

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

---

## On This Page

- [Description](https://docs.textcontrol.com/ds-server/reference/web-api/documentprocessing/document-findandreplace/post/#description)
- [Examples](https://docs.textcontrol.com/ds-server/reference/web-api/documentprocessing/document-findandreplace/post/#examples)
- [Authorization](https://docs.textcontrol.com/ds-server/reference/web-api/documentprocessing/document-findandreplace/post/#authorization)
- [Request Parameters](https://docs.textcontrol.com/ds-server/reference/web-api/documentprocessing/document-findandreplace/post/#request-parameters)
- [Request Payload](https://docs.textcontrol.com/ds-server/reference/web-api/documentprocessing/document-findandreplace/post/#request-payload)
- [Success Response](https://docs.textcontrol.com/ds-server/reference/web-api/documentprocessing/document-findandreplace/post/#success-response)
- [Error Response](https://docs.textcontrol.com/ds-server/reference/web-api/documentprocessing/document-findandreplace/post/#error-response)

---

## Nearby

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