> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tiro.ooo/llms.txt
> Use this file to discover all available pages before exploring further.

# Document templates

> Create a personal or shared template and update just one section.

For a personal template, call `create_document_template` with a user credential and `note_document_template:write`. To share the template at creation, add `workspaceGuid` for a workspace where you can write. A workspace-bound user key creates in its own workspace by default. Built-in templates are read-only.

```json theme={"system"}
{
  "title": "Weekly meeting",
  "sections": [
    {
      "title": "Decisions",
      "sectionType": "PLAIN_TEXT",
      "userInstruction": "List decisions."
    }
  ]
}
```

Call `list_document_templates` with `{"pagination":{"size":20}}` for compact metadata. Pass the returned `nextCursor` as `pagination.cursor` for the next page. A null cursor marks the end. The no-argument call keeps its existing section details and totals.

## Read and update a section

Use the returned `templateId` with `get_document_template`. Each section includes its ID and display order. `note_document_template:read` grants read access. OAuth clients need a grant for the new write scope to create, update or delete.

In `update_document_template`, send the fields to change. An existing section needs its ID. An entry without an ID adds a new section. To remove one, send only `id` and `delete: true`. Omitted sections and fields are preserved. Keep 1–100 sections. Template and section titles accept up to 120 characters. Explicit null fields return 400.

```json theme={"system"}
{
  "templateId": 42,
  "sections": [
    {
      "id": 7,
      "title": "Agreements"
    }
  ]
}
```

Call `delete_document_template` with `templateId` after confirming deletion. A subsequent get returns 404.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.