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:
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.
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:
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):
The tenant you are making this request on behalf of
Your api key