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

# Get Note Templates

> List all non-archived note templates.

IMPORTANT: This endpoint intentionally returns ALL templates regardless of user access.
User-based filtering and sorting is handled on the frontend for the following reasons:

1. **Admin visibility**: Users with admin/management permissions (e.g., SETTINGS_NOTE_TEMPLATES_*)
   need to see all templates to manage access control, even templates they personally cannot use.
   The settings page (note-templates/page.tsx) displays all templates for this purpose.

2. **Access control data**: Each template includes a `user_ids` array indicating which users
   have access. The frontend uses this to filter templates appropriately based on context:
   - Template selectors (SelectTemplateModal): Filter to only show templates the user can access
   - Settings pages: Show all templates for management purposes

3. **Favorites are user-specific**: The `is_favorited` field reflects the current user's
   preference and is used by the frontend to sort favorited templates first.

Frontend filtering logic (in useNoteTemplates hook):
- Shows templates where user_ids is null/undefined (legacy: everyone has access)
- Shows templates where user_ids includes the current user's ID
- Sorts favorited templates to the top, then alphabetically by name



## OpenAPI

````yaml get /notes/templates
openapi: 3.1.0
info:
  title: Decoda API
  description: External API documentation for the Decoda Health platform.
  version: '1.0'
servers: []
security: []
paths:
  /notes/templates:
    get:
      tags:
        - provider
        - scribe
        - note
        - templates
      summary: Get Note Templates
      operationId: get_note_templates_notes_templates_get
      parameters:
        - name: TENANT
          in: header
          required: true
          schema:
            type: string
            title: Tenant
          description: The tenant you are making this request on behalf of
        - name: API-KEY
          in: header
          required: true
          schema:
            type: string
            title: Api-Key
          description: Your api key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/NoteTemplateTableItem'
                type: array
                title: Response Get Note Templates Notes Templates Get
components:
  schemas:
    NoteTemplateTableItem:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        contentTemplate:
          anyOf:
            - type: string
            - type: 'null'
          title: Contenttemplate
        attachments:
          items:
            $ref: '#/components/schemas/NoteTemplateAttachmentResponse'
          type: array
          title: Attachments
          default: []
        createdDate:
          type: string
          format: date-time
          title: Createddate
      type: object
      required:
        - id
        - name
        - createdDate
      title: NoteTemplateTableItem
    NoteTemplateAttachmentResponse:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        gcsPath:
          anyOf:
            - type: string
            - type: 'null'
          title: Gcspath
        signedUrl:
          anyOf:
            - type: string
            - type: 'null'
          title: Signedurl
        createdDate:
          type: string
          format: date-time
          title: Createddate
      type: object
      required:
        - id
        - name
        - createdDate
      title: NoteTemplateAttachmentResponse

````