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:
-
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_idsarray 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
-
Favorites are user-specific: The
is_favoritedfield 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
Headers
The tenant you are making this request on behalf of
Your api key
