# Templates

> Nine /v1/templates methods for stored templates: upload DOC, DOCX, RTF or TX files, list, count, download or delete them, get merge fields and page images.

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

---

The template storage holds the templates your account keeps in ReportingCloud, so that a merge request only has to name one, and the endpoints below `/v1/templates` manage it. They upload a template in DOC, DOCX, RTF or TX format, list, count, download and delete the stored templates and check whether a template exists. For a single template, they return its merge fields and merge blocks (`info`), its number of pages (`pagecount`) and images of its pages (`thumbnails`). A method that works on one template takes its file name in the `templateName` parameter, and uploads and downloads carry the template as a Base64 string.

An upload under a new name counts against the template storage quota. An upload under the name of a stored template replaces that template and doesn't count again. Deleting a template lowers the count again. Template names are not case-sensitive: *Invoice.docx* and *invoice.DOCX* name the same template. Template thumbnails count against the document quota. Every SDK has a method for each endpoint; in .NET they are `UploadTemplate`, `ListTemplates`, `GetTemplateCount`, `TemplateExists`, `DownloadTemplate`, `DeleteTemplate`, `GetTemplateInfo`, `GetTemplatePageCount` and `GetTemplateThumbnails`. The guide page [Managing Templates](https://docs.textcontrol.com/reporting-cloud/document-processing/templates/llms-full.txt) shows them in use, and the portal's [Template Storage](https://docs.textcontrol.com/reporting-cloud/portal/templates/llms-full.txt) manages the same templates in the browser.

### Methods

| Method | Endpoint | Description |
|---|---|---|
| [`GET`](https://docs.textcontrol.com/reporting-cloud/reference/web-api/templates/count/get/llms-full.txt) | [/v1/templates/count](https://docs.textcontrol.com/reporting-cloud/reference/web-api/templates/count/get/llms-full.txt) | Returns the number of templates in the template storage. |
| [`DELETE`](https://docs.textcontrol.com/reporting-cloud/reference/web-api/templates/delete/delete/llms-full.txt) | [/v1/templates/delete](https://docs.textcontrol.com/reporting-cloud/reference/web-api/templates/delete/delete/llms-full.txt) | Deletes a template from the ReportingCloud template storage. |
| [`GET`](https://docs.textcontrol.com/reporting-cloud/reference/web-api/templates/download/get/llms-full.txt) | [/v1/templates/download](https://docs.textcontrol.com/reporting-cloud/reference/web-api/templates/download/get/llms-full.txt) | Returns the selected template from the storage. |
| [`GET`](https://docs.textcontrol.com/reporting-cloud/reference/web-api/templates/exists/get/llms-full.txt) | [/v1/templates/exists](https://docs.textcontrol.com/reporting-cloud/reference/web-api/templates/exists/get/llms-full.txt) | Checks whether a template exists in the template storage. |
| [`GET`](https://docs.textcontrol.com/reporting-cloud/reference/web-api/templates/info/get/llms-full.txt) | [/v1/templates/info](https://docs.textcontrol.com/reporting-cloud/reference/web-api/templates/info/get/llms-full.txt) | Returns information about the template including hierarchical structure of merge fields and merge blocks. |
| [`GET`](https://docs.textcontrol.com/reporting-cloud/reference/web-api/templates/list/get/llms-full.txt) | [/v1/templates/list](https://docs.textcontrol.com/reporting-cloud/reference/web-api/templates/list/get/llms-full.txt) | Lists all templates from the ReportingCloud template storage. |
| [`GET`](https://docs.textcontrol.com/reporting-cloud/reference/web-api/templates/pagecount/get/llms-full.txt) | [/v1/templates/pagecount](https://docs.textcontrol.com/reporting-cloud/reference/web-api/templates/pagecount/get/llms-full.txt) | Returns the number of pages of a template in the template storage. |
| [`GET`](https://docs.textcontrol.com/reporting-cloud/reference/web-api/templates/thumbnails/get/llms-full.txt) | [/v1/templates/thumbnails](https://docs.textcontrol.com/reporting-cloud/reference/web-api/templates/thumbnails/get/llms-full.txt) | Creates and returns thumbnail images of template pages. |
| [`POST`](https://docs.textcontrol.com/reporting-cloud/reference/web-api/templates/upload/post/llms-full.txt) | [/v1/templates/upload](https://docs.textcontrol.com/reporting-cloud/reference/web-api/templates/upload/post/llms-full.txt) | Stores an uploaded template in the ReportingCloud template storage. Supported template formats are Microsoft Word (.doc), WordProcessingML (.docx), Rich Text Format (.rtf) and TX Text Control Format (.tx). |

---

## In This Section

- [/v1/templates/count](https://docs.textcontrol.com/reporting-cloud/reference/web-api/templates/count/llms-full.txt): /v1/templates/count of the ReportingCloud Web API offers one GET method, which returns how many templates the template storage of your account holds.
- [/v1/templates/delete](https://docs.textcontrol.com/reporting-cloud/reference/web-api/templates/delete/llms-full.txt): /v1/templates/delete of the ReportingCloud Web API offers one DELETE method, which removes a template by name from the template storage of your account.
- [/v1/templates/download](https://docs.textcontrol.com/reporting-cloud/reference/web-api/templates/download/llms-full.txt): /v1/templates/download of the ReportingCloud Web API offers one GET method, which returns a template of the template storage as a Base64-encoded string.
- [/v1/templates/exists](https://docs.textcontrol.com/reporting-cloud/reference/web-api/templates/exists/llms-full.txt): /v1/templates/exists of the ReportingCloud Web API offers one GET method, which answers true or false for whether a template is in the template storage.
- [/v1/templates/info](https://docs.textcontrol.com/reporting-cloud/reference/web-api/templates/info/llms-full.txt): /v1/templates/info of the ReportingCloud Web API offers one GET method, which returns the merge fields, merge blocks and properties of a stored template.
- [/v1/templates/list](https://docs.textcontrol.com/reporting-cloud/reference/web-api/templates/list/llms-full.txt): /v1/templates/list of the ReportingCloud Web API offers one GET method, which lists the templates in the template storage with name, size and date.
- [/v1/templates/pagecount](https://docs.textcontrol.com/reporting-cloud/reference/web-api/templates/pagecount/llms-full.txt): /v1/templates/pagecount of the ReportingCloud Web API offers one GET method, which returns the number of pages of a template in the template storage.
- [/v1/templates/thumbnails](https://docs.textcontrol.com/reporting-cloud/reference/web-api/templates/thumbnails/llms-full.txt): /v1/templates/thumbnails of the ReportingCloud Web API offers one GET method, which renders pages of a stored template as PNG, JPG, GIF or BMP images.
- [/v1/templates/upload](https://docs.textcontrol.com/reporting-cloud/reference/web-api/templates/upload/llms-full.txt): /v1/templates/upload of the ReportingCloud Web API offers one POST method, which stores a DOC, DOCX, RTF or TX template in the template storage.

---

## Nearby

- **Previous:** [POST /v1/document/thumbnails](https://docs.textcontrol.com/reporting-cloud/reference/web-api/document/thumbnails/post/llms-full.txt)
- **Next:** [/v1/templates/count](https://docs.textcontrol.com/reporting-cloud/reference/web-api/templates/count/llms-full.txt)
