# Document

> Merge templates with JSON data, append, convert and find and replace documents, create page thumbnails and share templates with the /v1/document endpoints.

- **Product:** ReportingCloud
- **Section:** Documentation
- **Kind:** Endpoint
- **Path:** ReportingCloud > API Reference > Web API > Document
- **751 words**
- **Web URL:** https://docs.textcontrol.com/reporting-cloud/reference/web-api/document/
- **LLMs URL:** https://docs.textcontrol.com/reporting-cloud/reference/web-api/document/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/reporting-cloud/reference/web-api/document/llms-full.txt

---

The endpoints below `/v1/document` create documents and page images. They merge a template with JSON data, append several documents to one, convert a document to another format, replace text in a template, render the pages of a document as images and return an encrypted name under which a template of the template storage can be shown in the viewer widget of ReportingCloud. Templates and documents travel in the request body as Base64 strings, and the created documents come back the same way. Merge and find and replace take either a template in the request or the `templateName` of a stored template.

Every method except share counts against the document quota, one per successful request whatever the number of documents it returns (a test run of convert or append on a trial account is not counted), and its processing time is limited to 60 seconds. The .NET SDK calls all six with `MergeDocument`, `AppendDocument`, `ConvertDocument`, `FindAndReplaceDocument`, `GetDocumentThumbnails` and `ShareDocument`. The PHP SDK calls five of them with `mergeDocument`, `appendDocument`, `convertDocument`, `findAndReplaceDocument` and `getDocumentThumbnails`, and has no method for share. The Java SDK covers merge, append, convert and find and replace with `mergeDocument`, `appendDocuments`, `convertDocument` and `findAndReplace`, and the Ruby SDK with `merge_document`, `append_documents`, `convert_document` and `find_and_replace`. [Mail Merge](https://docs.textcontrol.com/reporting-cloud/mail-merge/llms-full.txt) explains merging, and [Document Processing](https://docs.textcontrol.com/reporting-cloud/document-processing/llms-full.txt) the other tasks.

### Methods

| Method | Endpoint | Description |
|---|---|---|
| [`POST`](https://docs.textcontrol.com/reporting-cloud/reference/web-api/document/append/post/llms-full.txt) | [/v1/document/append](https://docs.textcontrol.com/reporting-cloud/reference/web-api/document/append/post/llms-full.txt) | Combines documents by appending them divided by a new section, paragraph or nothing. |
| [`POST`](https://docs.textcontrol.com/reporting-cloud/reference/web-api/document/convert/post/llms-full.txt) | [/v1/document/convert](https://docs.textcontrol.com/reporting-cloud/reference/web-api/document/convert/post/llms-full.txt) | Converts a document to another supported format. |
| [`POST`](https://docs.textcontrol.com/reporting-cloud/reference/web-api/document/findandreplace/post/llms-full.txt) | [/v1/document/findandreplace](https://docs.textcontrol.com/reporting-cloud/reference/web-api/document/findandreplace/post/llms-full.txt) | Executes a find and replace on a template to create a document. |
| [`POST`](https://docs.textcontrol.com/reporting-cloud/reference/web-api/document/merge/post/llms-full.txt) | [/v1/document/merge](https://docs.textcontrol.com/reporting-cloud/reference/web-api/document/merge/post/llms-full.txt) | Merges and returns a compatible template from the template storage or an uploaded template with hierarchical JSON data. |
| [`GET`](https://docs.textcontrol.com/reporting-cloud/reference/web-api/document/share/get/llms-full.txt) | [/v1/document/share](https://docs.textcontrol.com/reporting-cloud/reference/web-api/document/share/get/llms-full.txt) | Returns an encrypted document name that can be used in the viewer widget. |
| [`POST`](https://docs.textcontrol.com/reporting-cloud/reference/web-api/document/thumbnails/post/llms-full.txt) | [/v1/document/thumbnails](https://docs.textcontrol.com/reporting-cloud/reference/web-api/document/thumbnails/post/llms-full.txt) | Creates and returns thumbnail images of documents. |

---

## In This Section

- [/v1/document/append](https://docs.textcontrol.com/reporting-cloud/reference/web-api/document/append/llms-full.txt): /v1/document/append of the ReportingCloud Web API offers one POST method, which joins Base64 documents into a single document divided by a paragraph or section.
- [/v1/document/convert](https://docs.textcontrol.com/reporting-cloud/reference/web-api/document/convert/llms-full.txt): /v1/document/convert of the ReportingCloud Web API offers one POST method, which converts an RTF, DOC, DOCX, HTML, PDF, TX, XLSX or text file to another format.
- [/v1/document/findandreplace](https://docs.textcontrol.com/reporting-cloud/reference/web-api/document/findandreplace/llms-full.txt): /v1/document/findandreplace of the ReportingCloud Web API offers one POST method, which fills a stored or uploaded template by replacing pairs of strings.
- [/v1/document/merge](https://docs.textcontrol.com/reporting-cloud/reference/web-api/document/merge/llms-full.txt): /v1/document/merge of the ReportingCloud Web API offers one POST method, which merges JSON data into a stored or uploaded template and returns the documents.
- [/v1/document/share](https://docs.textcontrol.com/reporting-cloud/reference/web-api/document/share/llms-full.txt): /v1/document/share of the ReportingCloud Web API offers one GET method, which returns an encrypted document name for the viewer widget of ReportingCloud.
- [/v1/document/thumbnails](https://docs.textcontrol.com/reporting-cloud/reference/web-api/document/thumbnails/llms-full.txt): /v1/document/thumbnails of the ReportingCloud Web API offers one POST method, which returns thumbnail images of the pages of a document in the request body.

---

## Nearby

- **Previous:** [Web API](https://docs.textcontrol.com/reporting-cloud/reference/web-api/llms-full.txt)
- **Next:** [/v1/document/append](https://docs.textcontrol.com/reporting-cloud/reference/web-api/document/append/llms-full.txt)
