# CRM document templates

These templates have `moduleId: crm`. Bitrix24 exposes them through `crm.documentgenerator.template.*`. An API key needs the `crm` scope.

## Operations

- [List](./crm-document-templates/list.md) — `GET /v1/crm-document-templates`
- [Get](./crm-document-templates/get.md) — `GET /v1/crm-document-templates/:id`
- [Create](./crm-document-templates/create.md) — `POST /v1/crm-document-templates`
- [Update](./crm-document-templates/update.md) — `PATCH /v1/crm-document-templates/:id`
- [Delete](./crm-document-templates/delete.md) — `DELETE /v1/crm-document-templates/:id`
- [Available for a record](./crm-document-templates/available.md) — `GET /v1/crm-document-templates/available?entityTypeId=2&entityId=123`
- [Download DOCX](./crm-document-templates/download.md) — `GET /v1/crm-document-templates/:id/download`

## Which templates to use

`/v1/doc-templates` lists app templates (`moduleId: rest`) with `documentgenerator` scope. This section lists CRM templates (`moduleId: crm`) with `crm` scope. [Create a CRM document](/docs/entities/documents/crm-create) from the selected template, then find it in [`/v1/crm-documents`](/docs/entities/documents/crm-list).
