Skip to content

Build your personal knowledge base with Trilium Notes

feat(global-menu): name each item by what it opens

Elian Doran3b1dd9dadcac
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json
index bb69429fa9..4028a4d629 100644
--- a/apps/client/src/translations/en/translation.json
+++ b/apps/client/src/translations/en/translation.json
@@ -1164,32 +1164,32 @@
"global_menu": {
"menu": "Menu",
"options": "Options",
- "open_new_window": "Open new window",
+ "open_new_window": "New window",
"switch_to_mobile_version": "Switch to mobile version",
"switch_to_desktop_version": "Switch to desktop version",
"zoom": "Zoom",
- "toggle_fullscreen": "Toggle fullscreen",
+ "toggle_fullscreen": "Fullscreen",
"fullscreen": "Fullscreen",
"zoom_out": "Zoom out",
"reset_zoom_level": "Reset zoom level",
"zoom_in": "Zoom in",
"configure_launchbar": "Configure launch bar...",
- "show_shared_notes_subtree": "Show shared notes subtree",
- "show_deleted_notes": "Show deleted notes",
- "show_space_usage": "Show space usage",
+ "show_shared_notes_subtree": "Shared notes",
+ "show_deleted_notes": "Deleted notes",
+ "show_space_usage": "Space usage",
"advanced": "Advanced",
- "open_dev_tools": "Open dev tools",
- "open_sql_console": "Open SQL console",
- "open_sql_console_history": "Open SQL console history",
- "open_search_history": "Open search history",
- "show_backend_log": "Show backend log",
+ "open_dev_tools": "Developer tools",
+ "open_sql_console": "SQL console",
+ "open_sql_console_history": "SQL console history",
+ "open_search_history": "Search history",
+ "show_backend_log": "Backend log",
"reload_hint": "Reload can help with some visual glitches without restarting the whole app.",
"reload_frontend": "Reload frontend",
- "show_hidden_subtree": "Show hidden subtree",
- "show_help": "Show help",
+ "show_hidden_subtree": "Hidden notes",
+ "show_help": "Help",
"about": "About Trilium Notes",
- "logout": "Logout",
- "show-cheatsheet": "Show cheatsheet",
+ "logout": "Log out",
+ "show-cheatsheet": "Keyboard shortcuts",
"toggle-zen-mode": "Zen mode",
"new-version-available": "New update available",
"download-update": "Get version {{latestVersion}}",
@@ -2857,7 +2857,7 @@
"more_actions": "More actions"
},
"title_bar_buttons": {
- "window-on-top": "Keep window on top"
+ "window-on-top": "Always on top"
},
"note_detail": {
"content_load_error": "The note's content could not be loaded.",
diff --git a/apps/server/src/assets/help/help_content.json b/apps/server/src/assets/help/help_content.json
index 5d6b928f7c..a34f1ca0d9 100644
--- a/apps/server/src/assets/help/help_content.json
+++ b/apps/server/src/assets/help/help_content.json
@@ -29,7 +29,7 @@
"_help_yeEaYqosGLSh": "<p>As an alternative to <a href=\"#root/_help_Dgg7bR3b6K9j\">hosting your own Trilium instance</a>, there are two services out there that provide out of the box support for Trilium.</p><aside class=\"admonition important\"><p><strong>Disclaimer</strong>: The Trilium Notes project and maintainers are not directly affiliated with either of the projects.</p><p>PikaPods have gracefully offered us free credits for testing purposes.</p></aside><h2>Cloud instance providers</h2><h3>PikaPods</h3><ol><li>Go to <a href=\"https://www.pikapods.com\">pikapods.com</a> &nbsp;and sign up.</li><li>In the “Available Apps” section, look for \"TriliumNext<br>&nbsp;and select “Run your own”.</li><li>Follow the on-screen instructions to set up your own cloud hosted instance.</li></ol><p>PikaPods generally updates their Trilium instances to the latest version within a two-week interval after a new version is released.</p><h2>Matching your version with the cloud instance</h2><p>Please note that once you set up&nbsp;<a class=\"reference-link\" href=\"#root/_help_cbkrhQjrkKrh\">Synchronization</a>&nbsp;between a cloud instance and <a href=\"#root/_help_poXkQfguuA0U\">desktop</a> clients, it's important that the version of the desktop application and the server match up.</p><p>When setting up a cloud instance, it's best to check the version of the server by accessing it via a web browser and going to the <em>About</em> section. It's best that both the desktop and the server have the same <em>App version</em>; however it's generally OK to update the desktop to a newer version than the server if it has the same <em>Sync version</em>.</p><p>If the <em>Sync version</em> between the server and the desktop application doesn't match, synchronization will not work.</p>",
"_help_iGTnKjubbXkA": "<ul><li>Using Docker, the server can be run on Windows, Linux and macOS devices.</li><li>Native binaries are provided for Linux x64 and ARM (<code>aarch64</code>).</li></ul><h2>Legacy ARM support</h2><p>The Docker builds also provide <code>linux/arm/v7</code> and <code>linux/arm/v8</code> platforms. These platforms are considered legacy since Trilium uses Node.js version 24 which have <a href=\"https://github.com/nodejs/node/commit/6682861d6f\">officially downgraded support</a> for these platforms to “experimental”.</p><p>As a result, Trilium needs to use Node.js 22 for these versions. As soon as soon Node.js 22 will no longer be compatible, support for <code>armv7</code> and <code>armv8</code> will be dropped entirely.</p><p>Regardless of upstream support, these platforms are supported on a best-effort basis and are not officially supported by the Trilium development team. Bug reports are accepted but they will not be treated with priority; contributions are welcome.</p>",
"_help_cbkrhQjrkKrh": "<p>Trilium is an offline-first note-taking application that stores all data locally on the desktop client. However, it also offers the option to set up synchronization with a server instance, allowing multiple desktop clients to sync with a central server. This creates a star-shaped topology:</p><p><img src=\"{{helpAssets}}/User%20Guide/Installation%20%26%20Setup/Synchronization_image.jpg\"></p><p>In this setup, a central server (referred to as the <em>sync server</em>) and multiple <em>client</em> (or <em>desktop</em>) instances synchronize with the sync server. Once configured, synchronization is automatic and ongoing, requiring no manual intervention.</p><h2>Setting Up Synchronization</h2><h3>Security Considerations</h3><p>Setting up the server securely is critical and can be complex. It is crucial to use a valid <a href=\"#root/_help_l2VkvOwUNfZj\">TLS certificate</a> (HTTPS) rather than an unencrypted HTTP connection to ensure security and avoid potential vulnerabilities.</p><h3>Synchronizing a Desktop Instance with a Sync Server</h3><p>This method is used when you already have a desktop instance of Trilium and want to set up a sync server on your web host.</p><ol><li><strong>Server Deployment</strong>: Ensure your server instance is deployed but uninitialized.</li><li><strong>Desktop Configuration</strong>: Open your desktop instance, navigate to&nbsp;<a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a>&nbsp;→ <em>Sync</em> → <em>Sync server</em>, and set the <em>Server address</em> to your sync server's address.<ul><li>Note that the sync server can also be overridden through&nbsp;<a class=\"reference-link\" href=\"#root/_help_Gzjqa934BdH4\">Configuration (config.ini or environment variables)</a>, case in which that value takes precedence. If that's the case, a field called <em>Server in use</em> indicates it.</li></ul></li><li><strong>Testing Sync</strong>: Click the <em>Test sync</em> button to verify the connection to the sync server.<ul><li>If successful, the client will start pushing all data to the server instance.</li><li>This process may take some time, but you can continue using Trilium. Periodically check the server instance to confirm when the sync is complete. Once finished, you should see the login screen on the server.</li></ul></li></ol><h3>Synchronizing a Desktop Instance from a Sync Server</h3><p>This method is used when you already have a sync server and want to configure a new desktop instance to sync with it.</p><ol><li><strong>Desktop Setup</strong>: Follow the <a href=\"#root/_help_poXkQfguuA0U\">desktop installation page</a>.</li><li><strong>Initial Configuration</strong>: When prompted, choose the option to set up sync with a sync server.</li></ol><p><img src=\"{{helpAssets}}/User%20Guide/Installation%20%26%20Setup/Synchronization_sync-init.png\" alt=\"screenshot of the sync from server setup page\"></p><ol><li><strong>Server Details</strong>: Configure the Trilium server address and enter the server's password. If the server has <a class=\"reference-link\" href=\"#root/_help_7DAiwaf8Z7Rz\">Multi-factor authentication with TOTP</a> enabled, also enter a one-time password from your authenticator app, or a recovery code.</li><li><strong>Finish Setup</strong>: Click the \"Finish setup\" button. If successful, you will see the following screen:</li></ol><p><img src=\"{{helpAssets}}/User%20Guide/Installation%20%26%20Setup/Synchronization_sync-in-progress.png\" alt=\"screenshot of the sync page\"></p><p>Once synchronization is complete, you will be automatically redirected to the Trilium application.</p><h3>Desktop-to-desktop sync</h3><p>This method allows two desktop instances to synchronize between each other without requiring a&nbsp;<a class=\"reference-link\" href=\"#root/_help_WOcw2SLH6tbX\">Server Installation</a>.</p><aside class=\"admonition warning\"><p>Since v0.104.0, LAN access needs to be enabled to allow this sync to function. See&nbsp;<a class=\"reference-link\" href=\"#root/_help_swSFivWk6KkA\">Network Access</a>&nbsp;for information on how to do so.</p></aside><h2>Proxy Configuration</h2><p>Two proxy setups are supported:</p><ul><li><strong>Explicit Proxy Configuration</strong>: Set the proxy server in Options / Sync. Only unauthenticated proxy servers are supported.</li><li><strong>System Proxy Settings</strong>: If no proxy server is explicitly configured, Trilium will use the system proxy settings.</li></ul><h2>Troubleshooting</h2><h3>Date/Time Synchronization</h3><p>For successful synchronization, both client and server must have the same date and time, with a tolerance of up to five minutes.</p><h3>Certificate Issues</h3><p>When using TLS, Trilium will verify the server certificate. If verification fails (e.g., due to self-signed certificates or certain corporate proxies), you can run the Trilium client with the <code>NODE_TLS_REJECT_UNAUTHORIZED</code> environment variable set to <code>0</code>:</p><pre><code class=\"language-text-x-trilium-auto\">export NODE_TLS_REJECT_UNAUTHORIZED=0</code></pre><p>This will disable TLS certificate verification, significantly reducing security and exposing the setup to MITM attacks. It is strongly recommended to use a valid signed server certificate. Newer Trilium versions include a script called <code>trilium-no-cert-check.sh</code> for this purpose.</p><h3>Conflict Resolution</h3><p>If you edit the same note on multiple instances before synchronization, Trilium resolves conflicts by retaining the newer change and discarding the older one. The older version remains accessible in <a href=\"#root/_help_vZWERwf8U3nx\">note revisions</a>, allowing data recovery if needed.</p><h3>Hash Check</h3><p>After each synchronization, Trilium computes a hash of all synced data on both the client and the sync server. If there is a discrepancy, Trilium will automatically initiate a recovery mechanism to resolve the issue.</p>",
- "_help_RDslemsQ6gCp": "<figure class=\"image image-style-align-right image_resized\" style=\"width:33.52%;\"><img style=\"aspect-ratio:1242/2688;\" src=\"{{helpAssets}}/User%20Guide/Installation%20%26%20Setup/Mobile%20Frontend_IMG_1765.PNG\" width=\"1242\" height=\"2688\"></figure><p>Trilium has a mobile web frontend which is optimized for touch based devices - smartphones and tablets. It is activated automatically during login process based on browser detection.</p><p>Mobile frontend is limited in features compared to the full desktop version. See below for more details on this.</p><h2>Layout basics</h2><p>Unlike the desktop version, the mobile version has a slightly different UI meant to better fit the constrained screens of a mobile phone.</p><p>Here is a non-exhaustive list of differences between the desktop version and the mobile one:</p><ul><li>The&nbsp;<a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>&nbsp;is displayed as a sidebar. To display the sidebar, press the button in the top-left of the screen.<ul><li>There is also a swipe gesture that can be done from the left of the screen, but the browser's navigation gesture interferes with it most of the time (depending on the platform).</li><li>Press and hold a note to display the&nbsp;<a class=\"reference-link\" href=\"#root/_help_YtSN43OrfzaA\">Note tree contextual menu</a>.</li></ul></li><li>The&nbsp;<a class=\"reference-link\" href=\"#root/_help_Ms1nauBra7gq\">Quick search</a>&nbsp;bar is also displayed at the top of the note tree.</li><li>The full&nbsp;<a class=\"reference-link\" href=\"#root/_help_eIg8jdvaoNNd\">Search</a>&nbsp;function can be triggered either from either the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>&nbsp;or from the&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>, if configured.</li><li>The&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a> is shorter: <em>Open new window</em> and <em>Show cheatsheet</em> are left out, and <em>Switch to desktop version</em> is under <em>Advanced</em>.</li><li>The&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>&nbsp;is displayed at the bottom of the screen.<ul><li>The launch bar uses a different configuration for icons than the desktop version. See the dedicated page for more information on how to configure it.</li></ul></li><li>Most of the note-related actions are grouped in the horizontal dots icon on the top-right of the note.</li><li>In a text note, the formatting toolbar sits at the bottom of the screen. See <em>Editing text notes</em> below.</li><li>While the on-screen keyboard is open, a <span class=\"tn-icon bx bxs-keyboard\"></span> button in the bottom-right corner, just above the keyboard, hides it. In a text note, the button is at the right end of the formatting toolbar. While a menu of the formatting toolbar is open in place of the keyboard, the button becomes a <span class=\"tn-icon bx bx-x\"></span>, which closes the menu and brings the keyboard back. This works in every note type and in every text field, and is the only way to hide the keyboard in the iOS app, where the keyboard has no <em>Done</em> button.</li><li>The&nbsp;<a class=\"reference-link\" href=\"#root/_help_3seOhtN8uLIY\">Tabs</a>&nbsp;are grouped under a tab switcher in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>, where the tabs are displayed in a full-screen grid with preview for easy switching, as well as additional options such as reopening closed tabs.</li><li>Since v0.100.0,&nbsp;<a class=\"reference-link\" href=\"#root/_help_luNhaphA37EO\">Split View</a>&nbsp;can also be used in mobile view, but with a maximum of two panes at once. The splits are displayed vertically instead of horizontally.</li></ul><h2>Editing text notes</h2><h3>The formatting toolbar</h3><p>In a text note, the formatting toolbar sits at the bottom of the screen as a single row that scrolls sideways. It is shown only while you are editing the text, and hides when you hide the keyboard or move to another field, such as the note title. From left to right, it holds:</p><ul><li><em>Undo</em> and <em>Redo</em>, since the on-screen keyboard has no keys for them.</li><li>A highlighted button naming the element the cursor is in, such as <em>Table ›</em> or <em>List ›</em>, when it is in one. See <em>Tables, images and other elements</em> and <em>Lists</em> below.</li><li>The <span class=\"tn-icon cke cke-trilium-block-type\"></span> block type button, <span class=\"tn-icon cke cke-plus\"></span> to insert content, and <span class=\"tn-icon cke cke-text\"></span> for the formatting applied to text.</li><li><span class=\"tn-icon cke cke-link\"></span> to add a link and <span class=\"tn-icon cke cke-paper-clip\"></span> to attach a file.</li><li>The indentation buttons, then <span class=\"tn-icon cke cke-arrow-up\"></span> and <span class=\"tn-icon cke cke-arrow-down\"></span>, which move the current block, or the selected blocks, up or down, as <kbd>Alt</kbd>+<kbd>↑</kbd> and <kbd>Alt</kbd>+<kbd>↓</kbd> do on a keyboard. Inside a table they move the row instead.</li><li>The <span class=\"tn-icon cke cke-trilium-ai\"></span> AI assistant button, shown once a provider is configured, which opens its quick actions as a menu at the bottom of the screen, with <em>Ask AI…</em> at its top.</li></ul><p>While the keyboard is open, the <span class=\"tn-icon bx bxs-keyboard\"></span> button at the right end of the toolbar hides it.</p><p>The hints in the corner of the editor that explain the element under the cursor, such as a to-do item's state and its shortcut, are not shown, whatever the <em>Content hints</em> setting under <em>Options</em> → <em>Text Notes</em> → <em>Features</em>.</p><h3>Inserting content</h3><p>The <span class=\"tn-icon cke cke-plus\"></span> button opens insertions as tiles at the bottom of the screen:</p><ul><li>Image, table and to-do list.</li><li>Code block, block quote and admonition.</li><li>The less common collapsible, tabs, columns, horizontal line, page break, footnote, math, drawing canvas, Mermaid diagram, bookmark, link and content embeds, special characters, emoji, icon, date/time, template and Markdown import.</li></ul><p>The image is also under the paperclip, and the to-do list, code block, block quote and admonition are also in the block type button.</p><p>The tiles marked with <span class=\"tn-icon bx bx-chevron-right\"></span> open a list of choices:</p><ul><li><em>Code block</em>: the language.</li><li><em>Admonition</em>: its type.</li><li><em>Insert table</em>: the size of the table.</li><li><em>Columns</em>: the number of columns.</li><li><em>Footnote</em>: a new footnote or a reference to an existing one.</li><li><em>Date/time</em>: the format of the date and time.</li><li><em>Insert text snippet</em>: the template to insert. It is grayed out while there are none.</li></ul><h3>Block types</h3><p>The <span class=\"tn-icon cke cke-trilium-block-type\"></span> block type button opens the block types as tiles at the bottom of the screen, with the current one highlighted:</p><ul><li>Paragraph and heading 2 to 6.</li><li>Bulleted list, numbered list and to-do list.</li><li>Code block, block quote and admonition.</li></ul><p>Picking a paragraph or a heading in a list turns the item back into plain text, and the same goes for a code block. Block quote and admonition wrap the current block rather than replace it, so they are highlighted alongside it; pick one again to remove it.</p><p>Typing <code>-</code> , <code>1.</code> or <code>[ ]</code> at the start of a line also starts a list.</p><h3>Lists</h3><p>While the cursor is in a list, a <em>List ›</em> button follows <em>Undo</em> and <em>Redo</em>. Its row holds:</p><ul><li>The indentation buttons and the buttons that move the item up or down, as on the main row.</li><li><em>List type</em>, which opens the to-do list and the markers of bulleted and numbered lists (such as squares or roman numerals) as tiles, the markers under the kind of each, with the current one highlighted. Picking a tile of another kind also turns the list into that kind, such as a bulleted list into a numbered one or a to-do list back into a bulleted one.</li><li>In a numbered list, <em>Start at</em>, which asks for the number the list starts at, and <span class=\"tn-icon bx bx-sort-down\"></span> <em>Reversed order</em>, which is highlighted while the list counts down.</li><li>In a to-do list, a button for each task state, followed by <span class=\"tn-icon bx bx-pencil\"></span> to edit the states.</li></ul><p>Starting a list, from the block type button, the insert menu or by typing <code>-</code> , <code>1.</code> or <code>[ ]</code>, shows this row right away. It stays closed once you tap the back button, until you start another list.</p><h3>Tables, images and other elements</h3><p>While the cursor is in a table, an image, a code block, a link or another element that has a toolbar of its own on desktop, a highlighted button naming that element, such as <em>Table ›</em>, follows <em>Undo</em> and <em>Redo</em>. It replaces the formatting toolbar with the element's toolbar, which starts with a back button that closes it again, followed by the element's name ahead of its tools. The button goes away when the cursor leaves the element.</p><p>Selecting an element as a whole, such as an image, or tapping a link shows its toolbar right away; tap the back button to return to the formatting toolbar.</p><p>Buttons of the element's toolbar with a list of choices, such as the column and row actions of a table, open that list as a menu at the bottom of the screen, where an option that is on or off, such as a table's header row, is a switch.</p><h3>Formatting text</h3><p>The formatting applied to text (bold, italic, underline, strikethrough, inline code, superscript and subscript, keyboard shortcut, font size and colors, and removing formatting) is on a row of its own, followed by the left, center, right and justify alignments of the current block, with the current one highlighted. The row ends with <span class=\"tn-icon cke cke-trilium-scissors\"></span> to cut the selection into a sub-note.</p><ul><li>Tap <span class=\"tn-icon cke cke-text\"></span> after the <span class=\"tn-icon cke cke-plus\"></span> button to show it, and <span class=\"tn-icon cke cke-previous-arrow\"></span> at its start to return to the main row.</li><li>Selecting text shows this row on its own, and it goes back to the main row once the selection is gone (for example as you start typing), unless you opened or closed the row yourself in the meantime.</li></ul><p>The font size button opens the list of sizes as a menu at the bottom of the screen, each drawn at its size, with the current one checked.</p><p>A single color button replaces the separate text and background color buttons. It opens a menu with a row of colors for the text and one for its background, each with a cell that removes the color and one that opens the device's color picker.</p><h3>Links and attachments</h3><p>The <span class=\"tn-icon cke cke-link\"></span> link button replaces the separate link and internal link buttons. It opens the <em>Add link</em> dialog, which links to a note or to a web address, or <em>Edit link</em> when the cursor is inside a link. The dialog does not open the keyboard by itself; tap the note or address field to type. The same button is on the row of text formatting, after the inline styles, to turn selected text into a link.</p><p>The <span class=\"tn-icon cke cke-paper-clip\"></span> button opens <em>Image</em>, <em>Camera</em>, <em>Attach and embed file</em> and <em>Attach file as a link</em> as a list: the menu of the desktop toolbar, with <em>Camera</em> added. <em>Camera</em> opens the device's camera and inserts the photo taken; the others open the device's file picker.</p><h2>Installing as a PWA</h2><p>The mobile view can be set up as a PWA. While this does not offer any offline capabilities, it will display the application in full-screen and makes it easy to access via your mobile phone's home screen.</p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\"><span class=\"tn-icon bx bxl-apple\"></span>&nbsp;iOS with Safari</p><div class=\"trilium-tab-panel\"><ol><li>Open your default web browser and access your Trilium instance.</li><li>Login.</li><li>Press the […] button in the bottom-right of the screen and select Share.</li><li>Scroll down to reveal the full list of items and choose <em>Add to Home Screen</em>.</li><li>Press <em>Add</em> and the web app will be available.</li></ol></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\"><span class=\"tn-icon bx bxl-chrome\"></span>&nbsp;Android with Google Chrome</p><div class=\"trilium-tab-panel\"><aside class=\"admonition important\"><p>Google Chrome requires the server to be served over HTTPS in order to display in full-screen. If using HTTP, the app will appear like a normal web page (similar to a bookmark).</p></aside><ol><li>Open your default web browser and access your Trilium instance.</li><li>Login.</li><li>Press the three vertical dots icon in the top-right of the screen and select <em>Add to Home screen.</em></li><li>Select the <em>Install</em> option.</li><li>Select an appropriate name.</li><li>The web app will appear as an application, not on the home screen.</li></ol></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">Android with Brave</p><div class=\"trilium-tab-panel\"><aside class=\"admonition important\"><p>Brave requires the server to be served over HTTPS in order to display in full-screen. If using HTTP, the app will appear like a normal web page (similar to a bookmark).</p></aside><ol><li>Open your default web browser and access your Trilium instance.</li><li>Login.</li><li>Press the three vertical dots icon in the bottom-right of the screen and select <em>Add to Home screen</em>.</li><li>Press the <em>Install</em> option.</li><li>The web app will appear as an application, not on the home screen.</li></ol></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">Samsung Browser</p><div class=\"trilium-tab-panel\"><ol><li>Open your default web browser and access your Trilium instance.</li><li>Login.</li><li>Press the hamburger menu in the bottom-right of the screen.</li><li>Select <em>Add to</em>, followed by <em>Home screen</em>.</li><li>Press <em>Add</em> and the web app will appear on the home page.</li></ol></div></section></div><h2>Sharing to Trilium</h2><p>Once installed as a PWA on Android, Trilium appears in the system's share menu, so links, text, images and other files can be sent to it from other apps. Shared content is saved to the&nbsp;<a class=\"reference-link\" href=\"#root/_help_S0Fos78ZfcY7\">Note Inbox</a>, and Trilium opens the note it created:</p><ul><li>Text or a link becomes a text note. A shared link is also stored in the <code>#pageUrl</code> label.</li><li>A single file becomes an image note or a file note, placed directly in the inbox.</li><li>Several files, or files shared together with text, are placed under a new text note that holds the text.</li></ul><p>Every note created this way carries the <code>#clipType=share</code> label, which gives a shared text note the <span class=\"tn-icon bx bx-share\"></span> icon unless the note has an <code>#iconClass</code> of its own. A single share can carry at most 20 files.</p><aside class=\"admonition note\"><p>Sharing requires being logged in. If the session has expired, log in again and share once more.</p></aside><h2>Testing via the desktop application</h2><p>If you are running Trilium without a dedicated <a href=\"#root/_help_WOcw2SLH6tbX\">server installation</a>, you can still test the mobile application using the desktop application. For more information, see&nbsp;<a class=\"reference-link\" href=\"#root/_help_nRqcgfTb97uV\">Using the desktop application as a server</a>. To access it go to <code>http://&lt;ip&gt;:37840/login?mobile</code> .</p><h2>Forcing mobile/desktop frontend</h2><p>Trilium decides automatically whether to use mobile or desktop front-end. If this is not appropriate, you can use <code>?mobile</code> or <code>?desktop</code> query param on <strong>login</strong> page (Note: you might need to log out).</p><p>Alternatively, simply select <em>Switch to mobile version</em> in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>. In the mobile version, select <em>Advanced</em> → <em>Switch to desktop version</em> there instead.</p><h2>Scripting</h2><p>You can alter the behavior with&nbsp;<a class=\"reference-link\" href=\"#root/_help_CdNpE2pqjmI6\">Scripting</a>, just like for normal frontend. For script notes to be executed, they need to have labeled <code>#run=mobileStartup</code>.</p><p>Custom&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>&nbsp;widgets are also supported.</p>",
+ "_help_RDslemsQ6gCp": "<figure class=\"image image-style-align-right image_resized\" style=\"width:33.52%;\"><img style=\"aspect-ratio:1242/2688;\" src=\"{{helpAssets}}/User%20Guide/Installation%20%26%20Setup/Mobile%20Frontend_IMG_1765.PNG\" width=\"1242\" height=\"2688\"></figure><p>Trilium has a mobile web frontend which is optimized for touch based devices - smartphones and tablets. It is activated automatically during login process based on browser detection.</p><p>Mobile frontend is limited in features compared to the full desktop version. See below for more details on this.</p><h2>Layout basics</h2><p>Unlike the desktop version, the mobile version has a slightly different UI meant to better fit the constrained screens of a mobile phone.</p><p>Here is a non-exhaustive list of differences between the desktop version and the mobile one:</p><ul><li>The&nbsp;<a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>&nbsp;is displayed as a sidebar. To display the sidebar, press the button in the top-left of the screen.<ul><li>There is also a swipe gesture that can be done from the left of the screen, but the browser's navigation gesture interferes with it most of the time (depending on the platform).</li><li>Press and hold a note to display the&nbsp;<a class=\"reference-link\" href=\"#root/_help_YtSN43OrfzaA\">Note tree contextual menu</a>.</li></ul></li><li>The&nbsp;<a class=\"reference-link\" href=\"#root/_help_Ms1nauBra7gq\">Quick search</a>&nbsp;bar is also displayed at the top of the note tree.</li><li>The full&nbsp;<a class=\"reference-link\" href=\"#root/_help_eIg8jdvaoNNd\">Search</a>&nbsp;function can be triggered either from either the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>&nbsp;or from the&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>, if configured.</li><li>The&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a> is shorter: <em>New window</em> and <em>Keyboard shortcuts</em> are left out, and <em>Switch to desktop version</em> is under <em>Advanced</em>.</li><li>The&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>&nbsp;is displayed at the bottom of the screen.<ul><li>The launch bar uses a different configuration for icons than the desktop version. See the dedicated page for more information on how to configure it.</li></ul></li><li>Most of the note-related actions are grouped in the horizontal dots icon on the top-right of the note.</li><li>In a text note, the formatting toolbar sits at the bottom of the screen. See <em>Editing text notes</em> below.</li><li>While the on-screen keyboard is open, a <span class=\"tn-icon bx bxs-keyboard\"></span> button in the bottom-right corner, just above the keyboard, hides it. In a text note, the button is at the right end of the formatting toolbar. While a menu of the formatting toolbar is open in place of the keyboard, the button becomes a <span class=\"tn-icon bx bx-x\"></span>, which closes the menu and brings the keyboard back. This works in every note type and in every text field, and is the only way to hide the keyboard in the iOS app, where the keyboard has no <em>Done</em> button.</li><li>The&nbsp;<a class=\"reference-link\" href=\"#root/_help_3seOhtN8uLIY\">Tabs</a>&nbsp;are grouped under a tab switcher in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>, where the tabs are displayed in a full-screen grid with preview for easy switching, as well as additional options such as reopening closed tabs.</li><li>Since v0.100.0,&nbsp;<a class=\"reference-link\" href=\"#root/_help_luNhaphA37EO\">Split View</a>&nbsp;can also be used in mobile view, but with a maximum of two panes at once. The splits are displayed vertically instead of horizontally.</li></ul><h2>Editing text notes</h2><h3>The formatting toolbar</h3><p>In a text note, the formatting toolbar sits at the bottom of the screen as a single row that scrolls sideways. It is shown only while you are editing the text, and hides when you hide the keyboard or move to another field, such as the note title. From left to right, it holds:</p><ul><li><em>Undo</em> and <em>Redo</em>, since the on-screen keyboard has no keys for them.</li><li>A highlighted button naming the element the cursor is in, such as <em>Table ›</em> or <em>List ›</em>, when it is in one. See <em>Tables, images and other elements</em> and <em>Lists</em> below.</li><li>The <span class=\"tn-icon cke cke-trilium-block-type\"></span> block type button, <span class=\"tn-icon cke cke-plus\"></span> to insert content, and <span class=\"tn-icon cke cke-text\"></span> for the formatting applied to text.</li><li><span class=\"tn-icon cke cke-link\"></span> to add a link and <span class=\"tn-icon cke cke-paper-clip\"></span> to attach a file.</li><li>The indentation buttons, then <span class=\"tn-icon cke cke-arrow-up\"></span> and <span class=\"tn-icon cke cke-arrow-down\"></span>, which move the current block, or the selected blocks, up or down, as <kbd>Alt</kbd>+<kbd>↑</kbd> and <kbd>Alt</kbd>+<kbd>↓</kbd> do on a keyboard. Inside a table they move the row instead.</li><li>The <span class=\"tn-icon cke cke-trilium-ai\"></span> AI assistant button, shown once a provider is configured, which opens its quick actions as a menu at the bottom of the screen, with <em>Ask AI…</em> at its top.</li></ul><p>While the keyboard is open, the <span class=\"tn-icon bx bxs-keyboard\"></span> button at the right end of the toolbar hides it.</p><p>The hints in the corner of the editor that explain the element under the cursor, such as a to-do item's state and its shortcut, are not shown, whatever the <em>Content hints</em> setting under <em>Options</em> → <em>Text Notes</em> → <em>Features</em>.</p><h3>Inserting content</h3><p>The <span class=\"tn-icon cke cke-plus\"></span> button opens insertions as tiles at the bottom of the screen:</p><ul><li>Image, table and to-do list.</li><li>Code block, block quote and admonition.</li><li>The less common collapsible, tabs, columns, horizontal line, page break, footnote, math, drawing canvas, Mermaid diagram, bookmark, link and content embeds, special characters, emoji, icon, date/time, template and Markdown import.</li></ul><p>The image is also under the paperclip, and the to-do list, code block, block quote and admonition are also in the block type button.</p><p>The tiles marked with <span class=\"tn-icon bx bx-chevron-right\"></span> open a list of choices:</p><ul><li><em>Code block</em>: the language.</li><li><em>Admonition</em>: its type.</li><li><em>Insert table</em>: the size of the table.</li><li><em>Columns</em>: the number of columns.</li><li><em>Footnote</em>: a new footnote or a reference to an existing one.</li><li><em>Date/time</em>: the format of the date and time.</li><li><em>Insert text snippet</em>: the template to insert. It is grayed out while there are none.</li></ul><h3>Block types</h3><p>The <span class=\"tn-icon cke cke-trilium-block-type\"></span> block type button opens the block types as tiles at the bottom of the screen, with the current one highlighted:</p><ul><li>Paragraph and heading 2 to 6.</li><li>Bulleted list, numbered list and to-do list.</li><li>Code block, block quote and admonition.</li></ul><p>Picking a paragraph or a heading in a list turns the item back into plain text, and the same goes for a code block. Block quote and admonition wrap the current block rather than replace it, so they are highlighted alongside it; pick one again to remove it.</p><p>Typing <code>-</code> , <code>1.</code> or <code>[ ]</code> at the start of a line also starts a list.</p><h3>Lists</h3><p>While the cursor is in a list, a <em>List ›</em> button follows <em>Undo</em> and <em>Redo</em>. Its row holds:</p><ul><li>The indentation buttons and the buttons that move the item up or down, as on the main row.</li><li><em>List type</em>, which opens the to-do list and the markers of bulleted and numbered lists (such as squares or roman numerals) as tiles, the markers under the kind of each, with the current one highlighted. Picking a tile of another kind also turns the list into that kind, such as a bulleted list into a numbered one or a to-do list back into a bulleted one.</li><li>In a numbered list, <em>Start at</em>, which asks for the number the list starts at, and <span class=\"tn-icon bx bx-sort-down\"></span> <em>Reversed order</em>, which is highlighted while the list counts down.</li><li>In a to-do list, a button for each task state, followed by <span class=\"tn-icon bx bx-pencil\"></span> to edit the states.</li></ul><p>Starting a list, from the block type button, the insert menu or by typing <code>-</code> , <code>1.</code> or <code>[ ]</code>, shows this row right away. It stays closed once you tap the back button, until you start another list.</p><h3>Tables, images and other elements</h3><p>While the cursor is in a table, an image, a code block, a link or another element that has a toolbar of its own on desktop, a highlighted button naming that element, such as <em>Table ›</em>, follows <em>Undo</em> and <em>Redo</em>. It replaces the formatting toolbar with the element's toolbar, which starts with a back button that closes it again, followed by the element's name ahead of its tools. The button goes away when the cursor leaves the element.</p><p>Selecting an element as a whole, such as an image, or tapping a link shows its toolbar right away; tap the back button to return to the formatting toolbar.</p><p>Buttons of the element's toolbar with a list of choices, such as the column and row actions of a table, open that list as a menu at the bottom of the screen, where an option that is on or off, such as a table's header row, is a switch.</p><h3>Formatting text</h3><p>The formatting applied to text (bold, italic, underline, strikethrough, inline code, superscript and subscript, keyboard shortcut, font size and colors, and removing formatting) is on a row of its own, followed by the left, center, right and justify alignments of the current block, with the current one highlighted. The row ends with <span class=\"tn-icon cke cke-trilium-scissors\"></span> to cut the selection into a sub-note.</p><ul><li>Tap <span class=\"tn-icon cke cke-text\"></span> after the <span class=\"tn-icon cke cke-plus\"></span> button to show it, and <span class=\"tn-icon cke cke-previous-arrow\"></span> at its start to return to the main row.</li><li>Selecting text shows this row on its own, and it goes back to the main row once the selection is gone (for example as you start typing), unless you opened or closed the row yourself in the meantime.</li></ul><p>The font size button opens the list of sizes as a menu at the bottom of the screen, each drawn at its size, with the current one checked.</p><p>A single color button replaces the separate text and background color buttons. It opens a menu with a row of colors for the text and one for its background, each with a cell that removes the color and one that opens the device's color picker.</p><h3>Links and attachments</h3><p>The <span class=\"tn-icon cke cke-link\"></span> link button replaces the separate link and internal link buttons. It opens the <em>Add link</em> dialog, which links to a note or to a web address, or <em>Edit link</em> when the cursor is inside a link. The dialog does not open the keyboard by itself; tap the note or address field to type. The same button is on the row of text formatting, after the inline styles, to turn selected text into a link.</p><p>The <span class=\"tn-icon cke cke-paper-clip\"></span> button opens <em>Image</em>, <em>Camera</em>, <em>Attach and embed file</em> and <em>Attach file as a link</em> as a list: the menu of the desktop toolbar, with <em>Camera</em> added. <em>Camera</em> opens the device's camera and inserts the photo taken; the others open the device's file picker.</p><h2>Installing as a PWA</h2><p>The mobile view can be set up as a PWA. While this does not offer any offline capabilities, it will display the application in full-screen and makes it easy to access via your mobile phone's home screen.</p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\"><span class=\"tn-icon bx bxl-apple\"></span>&nbsp;iOS with Safari</p><div class=\"trilium-tab-panel\"><ol><li>Open your default web browser and access your Trilium instance.</li><li>Login.</li><li>Press the […] button in the bottom-right of the screen and select Share.</li><li>Scroll down to reveal the full list of items and choose <em>Add to Home Screen</em>.</li><li>Press <em>Add</em> and the web app will be available.</li></ol></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\"><span class=\"tn-icon bx bxl-chrome\"></span>&nbsp;Android with Google Chrome</p><div class=\"trilium-tab-panel\"><aside class=\"admonition important\"><p>Google Chrome requires the server to be served over HTTPS in order to display in full-screen. If using HTTP, the app will appear like a normal web page (similar to a bookmark).</p></aside><ol><li>Open your default web browser and access your Trilium instance.</li><li>Login.</li><li>Press the three vertical dots icon in the top-right of the screen and select <em>Add to Home screen.</em></li><li>Select the <em>Install</em> option.</li><li>Select an appropriate name.</li><li>The web app will appear as an application, not on the home screen.</li></ol></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">Android with Brave</p><div class=\"trilium-tab-panel\"><aside class=\"admonition important\"><p>Brave requires the server to be served over HTTPS in order to display in full-screen. If using HTTP, the app will appear like a normal web page (similar to a bookmark).</p></aside><ol><li>Open your default web browser and access your Trilium instance.</li><li>Login.</li><li>Press the three vertical dots icon in the bottom-right of the screen and select <em>Add to Home screen</em>.</li><li>Press the <em>Install</em> option.</li><li>The web app will appear as an application, not on the home screen.</li></ol></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">Samsung Browser</p><div class=\"trilium-tab-panel\"><ol><li>Open your default web browser and access your Trilium instance.</li><li>Login.</li><li>Press the hamburger menu in the bottom-right of the screen.</li><li>Select <em>Add to</em>, followed by <em>Home screen</em>.</li><li>Press <em>Add</em> and the web app will appear on the home page.</li></ol></div></section></div><h2>Sharing to Trilium</h2><p>Once installed as a PWA on Android, Trilium appears in the system's share menu, so links, text, images and other files can be sent to it from other apps. Shared content is saved to the&nbsp;<a class=\"reference-link\" href=\"#root/_help_S0Fos78ZfcY7\">Note Inbox</a>, and Trilium opens the note it created:</p><ul><li>Text or a link becomes a text note. A shared link is also stored in the <code>#pageUrl</code> label.</li><li>A single file becomes an image note or a file note, placed directly in the inbox.</li><li>Several files, or files shared together with text, are placed under a new text note that holds the text.</li></ul><p>Every note created this way carries the <code>#clipType=share</code> label, which gives a shared text note the <span class=\"tn-icon bx bx-share\"></span> icon unless the note has an <code>#iconClass</code> of its own. A single share can carry at most 20 files.</p><aside class=\"admonition note\"><p>Sharing requires being logged in. If the session has expired, log in again and share once more.</p></aside><h2>Testing via the desktop application</h2><p>If you are running Trilium without a dedicated <a href=\"#root/_help_WOcw2SLH6tbX\">server installation</a>, you can still test the mobile application using the desktop application. For more information, see&nbsp;<a class=\"reference-link\" href=\"#root/_help_nRqcgfTb97uV\">Using the desktop application as a server</a>. To access it go to <code>http://&lt;ip&gt;:37840/login?mobile</code> .</p><h2>Forcing mobile/desktop frontend</h2><p>Trilium decides automatically whether to use mobile or desktop front-end. If this is not appropriate, you can use <code>?mobile</code> or <code>?desktop</code> query param on <strong>login</strong> page (Note: you might need to log out).</p><p>Alternatively, simply select <em>Switch to mobile version</em> in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>. In the mobile version, select <em>Advanced</em> → <em>Switch to desktop version</em> there instead.</p><h2>Scripting</h2><p>You can alter the behavior with&nbsp;<a class=\"reference-link\" href=\"#root/_help_CdNpE2pqjmI6\">Scripting</a>, just like for normal frontend. For script notes to be executed, they need to have labeled <code>#run=mobileStartup</code>.</p><p>Custom&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>&nbsp;widgets are also supported.</p>",
"_help_MtPxeAWVAzMg": "<p><img src=\"{{helpAssets}}/User%20Guide/Installation%20%26%20Setup/Web%20Clipper_image.png\"></p><p>Trilium Web Clipper is a web browser extension which allows user to clip text, screenshots, whole pages and short notes and save them directly to Trilium Notes.</p><h2>Supported browsers</h2><p>Trilium Web Clipper officially supports the following web browsers:</p><ul><li>Mozilla Firefox, using Manifest v2.</li><li>Google Chrome, using Manifest v3. Theoretically the extension should work on other Chromium-based browsers as well, but they are not officially supported.</li></ul><h2>Obtaining the extension</h2><p>The extension is available from the official browser web stores:</p><ul><li><strong>Firefox</strong>: <a href=\"https://addons.mozilla.org/firefox/addon/trilium-notes-web-clipper/\">Trilium Web Clipper on Firefox Add-ons</a></li><li><strong>Chrome</strong>: <a href=\"https://chromewebstore.google.com/detail/trilium-web-clipper/ofoiklieachadcaeffficgjaajojpkpi\">Trilium Web Clipper on Chrome Web Store</a></li></ul><h2>Functionality</h2><ul><li>select text and clip it with the right-click context menu</li><li>click on an image or link and save it through context menu</li><li>save whole page from the popup or context menu</li><li>save a PDF that the browser shows, as a file note</li><li>save a screenshot of an area you select, of the visible part of the page or of the whole page, from either popup or context menu</li><li>create short text note from popup</li></ul><h2>The popup</h2><p>Clicking the extension's button in the browser toolbar opens its popup:</p><ul><li><p>The popup shows what will be saved from the current page: the note's title, which can be edited before saving, the website, and below them a preview, which starts with a box for your own note and the page's description. A switch above the preview chooses what to save, among what the page offers:</p><ul><li><em>Selection</em>, when text is selected on the page: <em>Save selection</em> saves it into the note of that page's clippings, as the context menu does.</li><li><em>Page</em>: <em>Save page to Trilium</em> saves the page's text and images. A smaller switch at the top of the preview chooses how much of the page to keep: <em>Article</em> keeps only the page's main text, without its menus, sidebars and footers, and <em>Whole page</em> keeps everything the page shows. <em>Whole page</em> is for pages that are not an article (such as a gallery or a page of cards), where <em>Article</em> can leave out part of the content; the preview shows what each one keeps. <em>Article</em> is unavailable on a page where Trilium finds no article. The author the page names shows under the description, marked by the <span class=\"tn-icon bx bx-user\"></span> icon. It can be edited or cleared before saving, or written in when the page names none, and is saved in the <code>#pageAuthor</code> label of the note. When the page states when it was published, that date shows under the author, marked by the <span class=\"tn-icon bx bx-calendar\"></span> icon, and is saved in the <code>#publishedDate</code> label of the note. When it states when it was last modified, that date shows below, marked by the <span class=\"tn-icon bx bx-history\"></span> icon, and is saved in the <code>#modifiedDate</code> label.</li><li><em>PDF</em>, when the tab shows a PDF in the browser's viewer: <em>Save PDF to Trilium</em> downloads the PDF and saves it as a file note, which Trilium opens in its&nbsp;<a class=\"reference-link\" href=\"#root/_help_XJGJrpu7F9sh\">PDFs</a> viewer. Only the title and the description can be edited, since a file note has no text of its own for your note. The page's address is saved in the note's <code>#pageUrl</code> label and the PDF's file name in <code>#originalFileName</code>. Saving a PDF needs Trilium v0.107.0 or later.</li><li><em>Bookmark</em>, always: there is no preview, and <em>Save bookmark</em> saves a link to the page with your note as the content of the note. Left empty, the title stays the page's title.</li></ul><p>The box for your note, marked by the <span class=\"tn-icon bx bx-info-circle\"></span> icon, has the cursor when the popup opens, so a note (such as why the page is worth keeping) can be typed right away. It grows with its text, and keeps it when switching between <em>Selection</em>, <em>Page</em> and <em>Bookmark</em>. A note on a selection or a page is saved above the clipped content, in a <em>Note</em> admonition. Left empty, nothing is added. <kbd>Ctrl</kbd>+<kbd>Enter</kbd> in any of the popup's fields saves, whichever is chosen.</p><p>The description, marked by the <span class=\"tn-icon bx bx-align-left\"></span> icon, comes from the page's <code>description</code> meta tag, or the one it gives social sites. It can be edited or cleared before saving, or written in when the page has none, and is saved in the <code>#pageDescription</code> label of the note. Clippings saved with the keyboard shortcuts or the context menu, screenshots and images included, get the description as the page gives it. Each clipping that brings a description updates the label. The description, the author and the dates are shown by clicking the <em>Web clip</em> badge next to the title of the note (see <a class=\"reference-link\" href=\"#root/_help_B5dihXRDksTk\">Note badges</a>).</p><p>The popup opens on the selection if there is one, otherwise on <em>Page</em>, showing the article, or the whole page when the page has no article. On a PDF, it opens on <em>PDF</em>. On a page that shows nothing to save, it opens on <em>Bookmark</em> and says so. The keyboard shortcuts and the context menu still save right away, without a preview: saving the whole page that way saves the article, the whole page when the page has no article, or the PDF when the tab shows one.</p></li><li><p>Pages the extension cannot access (the browser's own pages, the extension stores, and pages that were open before the extension was installed until they are reloaded) cannot be saved or captured, so the popup says so in place of the preview, and only <em>All tabs</em> remains available there.</p></li><li><p>Below the preview, a row of buttons offers the other actions: <em>Area</em> (a screenshot of an area you select), <em>Visible</em> (a screenshot of the visible part of the page), <em>Full page</em> (a screenshot of the whole page) and <em>All tabs</em> (saves the links of every tab in the current window as a list of <a class=\"reference-link\" href=\"#root/_help_UmgZAfcltxkS\">Link Previews</a>, or of plain links when <em>Autogenerate link previews</em> is turned off). Hovering over a button shows its full name and, if it has one, its keyboard shortcut.</p></li><li><p><em>Full page</em> scrolls through the page, takes a screenshot of each part and joins them into one image, then scrolls back to where the page was. The scrollbars are hidden while it does, so they do not appear in the image. Stay on the tab until it is saved: switching to another tab stops the screenshot. A header that stays at the top of the window appears once, at the top of the image, and headings that stick while scrolling appear where they are in the page. Other elements that stay in place while scrolling (such as cookie banners and chat buttons) are left out, while a background that fills the whole window repeats on every screen. In Firefox, the page is captured without scrolling through it, which is faster: such a background then appears only at the top, and images that the page loads only once they are scrolled into view can be missing. A long page is saved as several images, one below the other in the note. A page longer than 100 screens is cut off there, and the message after saving says so. Screenshots keep their full height in Trilium: <em>Resize image</em> (under <em>Automatically compress images</em> in Options → Media) limits only their width.</p></li><li><p>The popup stays open while Trilium saves, which can take a few seconds for a long page or a large PDF, and the other actions wait until it is done. The bar at the top of the popup then says, in green, that the clipping was saved (in place of the notice that the page was already clipped), with <em>Open note</em> to open it in Trilium (and, after <em>All tabs</em>, <em>Close saved tabs</em>), or, in red, why it could not be saved. The same clipping cannot be saved twice by accident: the save button stays disabled until another mode is chosen. <em>Crop</em> is the exception: the popup closes so that an area of the page can be selected, and the notification on the page reports the outcome.</p></li><li><p>If the current page was already clipped, a notice at the top offers to open the note in Trilium.</p></li><li><p>If Trilium cannot be found, the popup explains why instead of showing the actions, with buttons to look for Trilium again and to open the options.</p></li><li><p>The bottom of the popup shows whether the extension is connected to Trilium, as a colored dot (green when connected, amber when the versions are not compatible, red when Trilium was not found) next to a description of the connection, followed by the buttons for the extension's options and for this help page. A button to check the connection again appears next to them when hovering over the bar, and stays visible while Trilium cannot be reached or is not compatible.</p></li></ul><h2>Location of clippings</h2><p>Trilium will save these clippings as a new child note under a \"clipper inbox\" note.</p><p>By default, that's the&nbsp;<a class=\"reference-link\" href=\"#root/_help_l0tKav7yLHGF\">Day Notes</a>&nbsp;but you can override that by setting the <a href=\"#root/_help_zEY4DaJG4YT5\">label</a> <code>clipperInbox</code>, on any other note.</p><p>Further clippings of the same kind from the same page are added to the note created by the first one, even on a later day or after that note was moved out of the clipper inbox. The note stays where it is and is not cloned back into the inbox. A PDF is the exception: each save creates a new file note, since the PDF can have changed since it was last saved.</p><p>The icon of a clipped note shows what was saved:</p><ul><li><span class=\"tn-icon bx bx-paperclip\"></span> a selection, a screenshot or a link from the context menu;</li><li><span class=\"tn-icon bx bx-globe\"></span> a page (<em>Article</em> or <em>Whole page</em>);</li><li><span class=\"tn-icon bx bx-bookmark\"></span> a bookmark;</li><li><span class=\"tn-icon bx bx-window-alt\"></span> the tabs of a window.</li></ul><p>The icon is derived from the note's <code>#clipType</code> label, so setting an <code>#iconClass</code> label on the note replaces it. A saved PDF has the icon of a PDF file, like any other PDF in Trilium.</p><h2>Embedded videos</h2><p>A YouTube video embedded in a clipped page is saved as a <a class=\"reference-link\" href=\"#root/_help_UmgZAfcltxkS\">Link Previews</a> embed, with the video's title and thumbnail. As with a link preview added in the editor, the video plays only when clicked. Other embedded content (such as videos from other websites) is not saved.</p><p>The popup's preview shows each such video as a chip with the YouTube icon and the video's short link, and leaves out the embedded content that will not be saved.</p><h2>Keyboard shortcuts</h2><p>Keyboard shortcuts are available for most functions:</p><ul><li>Save selected text: <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>S</kbd> (Mac: <kbd>⌘</kbd>+<kbd>⇧</kbd>+<kbd>S</kbd>)</li><li>Save whole page: <kbd>Alt</kbd>+<kbd>Shift</kbd>+<kbd>S</kbd> (Mac: <kbd>⌥</kbd>+<kbd>⇧</kbd>+<kbd>S</kbd>)</li><li>Save a screenshot of an area: <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>E</kbd> (Mac: <kbd>⌘</kbd>+<kbd>⇧</kbd>+<kbd>E</kbd>)</li><li>Save all tabs of the current window: no default shortcut, but one can be assigned as described below.</li><li>Save a screenshot of the whole page: no default shortcut, but one can be assigned as described below.</li></ul><p>To set custom shortcuts, follow the directions for your browser.</p><ul><li><strong>Firefox</strong>: <code>about:addons</code> → Gear icon ⚙️ → Manage extension shortcuts</li><li><strong>Chrome</strong>: <code>chrome://extensions/shortcuts</code></li></ul><aside class=\"admonition note\"><p>On Firefox, the default shortcuts interfere with some browser features. As such, the keyboard combinations will not trigger the Web Clipper action. To fix this, simply change the keyboard shortcut to something that works. The defaults will be adjusted in future versions.</p></aside><h2>Configuration</h2><p>The extension needs to connect to a running Trilium instance. By default, it looks for the desktop application on port 37840 of the local computer. If the desktop application runs on a different port (for example because it was started with the <code>TRILIUM_PORT</code> environment variable), enter that port in the extension's options. The extension checks for Trilium again every minute, or right away when pressing the refresh button at the bottom of its popup.</p><p>It's also possible to configure the <a href=\"#root/_help_WOcw2SLH6tbX\">server</a> address if you don't run the desktop application, or want it to work without the desktop application running.</p><p>To connect to a server, enter its address and your password in the extension's options and press <em>Login to the server instance</em>. If the server uses <a href=\"#root/_help_7DAiwaf8Z7Rz\">multi-factor authentication</a>, also fill in <em>Authentication code</em> with the current code from your authenticator app (or one of your recovery codes); otherwise leave it empty. The password and the code are used only once, to obtain a token for the extension, and are not stored.</p><h3>When a clipping fails</h3><p>After each clipping made with a keyboard shortcut or the context menu, a notification in the corner of the page confirms that it was saved, with a link to open the new note in Trilium. A clipping made from the popup reports in the popup instead, unless the popup was closed before it was saved. If the clipping could not be saved, the message says why instead:</p><ul><li>Trilium was not found: start the desktop application, or check the server address and token in the extension's options.</li><li>The versions of Trilium and the extension are not compatible: update the one the message names.</li><li>Trilium rejected the request: the message includes the reason Trilium gave.</li><li>The popup could not reach the extension's background script, or it gave no answer: close the popup and open it again. If the extension was just updated or reloaded, reload the page as well.</li><li>A PDF could not be saved: Trilium is older than v0.107.0, the website refused to send the PDF again, or the PDF is larger than 100 MB. The extension downloads the PDF with the browser's cookies for that website, so a PDF behind a login can be saved while you are logged in.</li></ul><p>The extension downloads the images of a clipping itself, so that they are stored in Trilium together with the note. If some of them cannot be downloaded (for example because the website refuses the request), the clipping is still saved, and the notification says how many images are missing. Those images keep their address on the original website: Trilium tries to download them once more if <em>Download images automatically</em> is enabled in <a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> → <em>Media</em>, and otherwise the note shows them from the website for as long as it serves them.</p><p>The notification is shown on the page itself, so it does not appear on pages where extensions cannot run (such as the browser's own settings pages, the extension stores and Firefox's PDF viewer). A clipping saved from the popup on such a page still reports in the popup.</p><h2>Testing development versions</h2><p>Development versions are version pre-release versions, generally meant for testing purposes. These are not available in the Google or Firefox web stores, but can be downloaded from either:</p><ul><li><a href=\"https://github.com/TriliumNext/Trilium/releases\">GitHub Releases</a> by looking for releases starting with <em>Web Clipper.</em></li><li>Artifacts in GitHub Actions, by looking for the <a href=\"https://github.com/TriliumNext/Trilium/actions/workflows/web-clipper.yml\"><em>Deploy web clipper extension</em> workflow</a>. Once a workflow run is selected, the ZIP files are available in the <em>Artifacts</em> section, under the name <code>web-clipper-extension</code>.</li></ul><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\"><span class=\"tn-icon bx bxl-chrome\"></span>&nbsp;Chrome</p><div class=\"trilium-tab-panel\"><ol><li>Download <code>trilium-web-clipper-[x.y.z]-chrome.zip</code>.</li><li>Extract the archive.</li><li>In Chrome, navigate to <code>chrome://extensions/</code></li><li>Toggle <em>Developer Mode</em> in top-right of the page.</li><li>Press the <em>Load unpacked</em> button near the header.</li><li>Point to the extracted directory from step (2).</li></ol></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\"><span class=\"tn-icon bx bxl-firefox\"></span>&nbsp;Firefox</p><div class=\"trilium-tab-panel\"><aside class=\"admonition warning\"><p>Firefox prevents installation of unsigned packages in the “retail” version. To be able to install extensions from disk, consider using <em>Firefox Developer Edition</em> or a non-branded version of Firefox (e.g. <em>GNU IceCat</em>).</p><p>One time, go to <code>about:config</code> and change <code>xpinstall.signatures.required</code> to <code>false</code>.</p></aside><ol><li>Navigate to <code>about:addons</code>.</li><li>Select <em>Extensions</em> in the left-side navigation.</li><li>Press the <em>Gear</em> icon on the right of the <em>Manage Your Extensions</em> title.</li><li>Select <em>Install Add-on From File…</em></li><li>Point it to <code>trilium-web-clipper-[x.y.z]-firefox.zip</code>.</li><li>Press the <em>Add</em> button to confirm.</li></ol></div></section></div><h2>Credits</h2><p>Some parts of the code are based on the <a href=\"https://github.com/laurent22/joplin/tree/master/Clipper\">Joplin Notes browser extension</a>.</p>",
"_help_n1lujUxCwipy": "<p>This document outlines the steps required to upgrade Trilium to a new release version.</p><h2>How to Upgrade</h2><p>Trilium does not support built-in automatic upgrades; all updates must be performed manually. The upgrade process varies depending on the installation method:</p><ul><li><a href=\"#root/_help_rWX5eY045zbE\"><strong>Docker Server Installation</strong></a>: Pull the new image and restart the container.</li><li><strong>Other Installations</strong>: Download the latest version from the <a href=\"https://github.com/TriliumNext/Trilium/releases/latest\">release page</a> and replace the existing application files.</li></ul><h2>Database Compatibility and Migration</h2><p>Upon startup, Trilium will automatically migrate the <a href=\"#root/_help_wX4HbRucYSDD\">database</a> to the new version. Note that after migration, older versions of Trilium will be unable to read the database. If you need to revert to a previous version of Trilium and its database, you can restore the <a href=\"#root/_help_ODY7qQn5m2FT\">backup</a> that is created prior to migration.</p><h2>Sync Compatibility</h2><p>The <a href=\"#root/_help_cbkrhQjrkKrh\">synchronization</a> protocol used by Trilium is versioned, requiring all members of the sync cluster to use the same protocol version. Therefore, when upgrading to a new version, you may need to upgrade all instances in the sync cluster. Changes to the sync protocol version are typically indicated on the release page.</p>",
"_help_ODY7qQn5m2FT": "<p>Trilium supports simple backup scheme where it saves copy of the&nbsp;<a class=\"reference-link\" href=\"#root/_help_wX4HbRucYSDD\">Database</a>&nbsp;on these events:</p><ul><li>once a day</li><li>once a week</li><li>once a month</li><li>before DB migration to newer version</li></ul><p>So in total you'll have at most 4 backups from different points in time which should protect you from various problems. These backups are stored by default in <code>backup</code> directory placed in the <a href=\"#root/_help_tAassRL4RSQL\">data directory</a>.</p><p>This is only very basic backup solution, and you're encouraged to add some better backup solution - e.g. backing up the&nbsp;<a class=\"reference-link\" href=\"#root/_help_wX4HbRucYSDD\">Database</a>&nbsp;to cloud / different computer etc.</p><p>Note that&nbsp;<a class=\"reference-link\" href=\"#root/_help_cbkrhQjrkKrh\">Synchronization</a>&nbsp;provides also some backup capabilities by its nature of distributing the data to other computers.</p><h2>Creating a backup</h2><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\"><span class=\"tn-icon bx bx-desktop\"></span>&nbsp;On the desktop app &amp; web client</p><div class=\"trilium-tab-panel\"><ol><li>Go to&nbsp;<a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> → <em>Backup</em> and press the <em>Backup now</em> button.</li><li>The backup creation process may take a few moments, especially for larger databases. A notification will inform you when the backup is complete.</li><li>The backup will be saved as <code>backup-now</code> in the <em>Existing backups</em> list, where you can download it.</li></ol></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\"><span class=\"tn-icon bx bx-globe\"></span>&nbsp;On the standalone client</p><div class=\"trilium-tab-panel\"><ol><li>Go to&nbsp;<a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> → <em>Backup</em> and press the <em>Download backup</em> button.</li><li>You will be prompted to restart the app. Confirm, and the app will restart automatically.</li><li>Set a <em>backup name</em> or <em>password</em> (both optional), then press <em>Continue</em>.</li><li>Press the <em>Generate and download</em> button and wait for the download to complete.</li><li>Once you confirm the download is saved on your device, press <em>Finish</em> to complete</li></ol></div></section></div><h2>Downloading a backup</h2><ul><li><strong>Desktop and web client</strong>: to download an existing backup, navigate to&nbsp;<a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> → <em>Backup</em> → <em>Existing backups</em> and select <em>Download</em> (<span class=\"tn-icon bx bx-download\"></span>).</li><li><strong>Standalone client</strong>: automatic backups are not supported in this version. You can manually create and download a backup by going to&nbsp;<a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> → <em>Backup</em> → <em>Download backup</em>.</li></ul><h2>Restoring a backup</h2><ul><li><strong>For a new Trilium instance</strong>: When setting up a new Trilium instance, use the <em>Restore from backup</em> option in the setup menu to guide you through restoring your existing backup.</li><li><strong>For an existing Trilium instance</strong>: To restore a backup and replace your current database, go to&nbsp;<a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> → <em>Backup</em> and click <em>Restore a backup</em>. You will be prompted to restart the app for the restoration process to begin. After restarting, you can choose to back up the existing database before overwriting it. Note: For the web client, use the Start Over feature (&nbsp;<a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> → <em>Database</em> → <em>Start over</em> (<span class=\"tn-icon bx bx-reset\"></span>)) to switch to the setup screen and restore a backup.</li></ul><p>Next, select the backup file (.db or .tnbackup) from your device. The web client is optimized for handling large backups and is resilient to unstable network conditions, similar to the desktop application.</p><p>If your database is encrypted, you will be prompted to enter the password used for encrypting the backup file. Without the correct password, decryption and restoration cannot proceed.</p><p>Restoring a backup may take some time, depending on its size. Once it completes, Trilium will open the freshly restored database.</p><h3>The alternative way for restoring a backup</h3><p>Let's assume you want to restore the weekly backup (only in .db format, .tnbackup files are not supported by this method), here's how to do it:</p><ul><li>find <a href=\"#root/_help_tAassRL4RSQL\">data directory</a> Trilium uses - easy way is to open \"About Trilium Notes\" (<span class=\"tn-icon bx bx-info-circle\"></span>) from \"Menu\" in upper left corner and looking at \"data directory\"<ul><li>I'll refer to <code>~/trilium-data</code> as data directory from now on</li></ul></li><li>find <code>~/trilium-data/backup/backup-weekly.db</code> - this is the&nbsp;<a class=\"reference-link\" href=\"#root/_help_wX4HbRucYSDD\">Database</a>&nbsp;backup.</li><li>at this point stop/kill Trilium</li><li>delete <code>~/trilium-data/document.db</code>, <code>~/trilium-data/document.db-wal</code> and <code>~/trilium-data/document.db-shm</code> (latter two files are auto generated)</li><li>copy and rename this <code>~/trilium-data/backup/backup-weekly.db</code> to <code>~/trilium-data/document.db</code></li><li>make sure that the file is writable, e.g. with <code>chmod 600 document.db</code></li><li>start Trilium again</li></ul><aside class=\"admonition warning\"><p>If you have configured sync then you need to do it across all members of the sync cluster, otherwise older version (restored backup) of the document will be detected and synced to the newer version.</p></aside><h2>Changing the backup location in Trilium (desktop only)</h2><p>Starting with version 0.105, the Trilium desktop client allows users to change the directory where backups are stored. Follow these steps to specify a custom backup directory:</p><ol><li>Navigate to&nbsp;<a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> → <em>Backup</em> → <em>Backup location</em>.</li><li>Click the <em>Select location</em> button.</li><li>Choose any writable directory on your file system. This could include network shares, depending on your operating system.</li></ol><p>Once you set a custom directory, all manual and automatic backups will be saved there. If the selected directory becomes unavailable, backups may fail or revert to the default location.</p><aside class=\"admonition tip\"><p>For better privacy when using unsafe backup locations, you can enable backup encryption, which makes the backup file unreadable without the correct password.</p></aside><h2>Backup encryption</h2><p>Trilium can secure the entire content of the database backup, ensuring it remains unreadable unless the correct password is provided. This is particularly useful for storing backups in unsecured locations, like network shares, unencrypted external drives, or cloud services.&nbsp;</p><p>Encrypted database backups use the Trilium Backup Container (.tnbackup) format, which relies on AES-256-GCM. This authenticated encryption mode scrambles the data and generates a tag confirming it hasn't been altered. The password itself isn't directly used as the key; it's processed through scrypt, a key derivation function designed to be slow and memory-intensive, making brute-force password guessing difficult even with powerful hardware. Each backup also receives a random 16-byte salt, ensuring that the same password never produces the same encryption key twice. Additionally, critical metadata such as chunk order, length, and header flags are cryptographically bound into the encryption (via \"additional authenticated data\"), preventing undetected tampering like reorder, truncate, or splice operations.</p><h3>Enabling backup encryption</h3><p>To enable encryption for automatic backups in the Desktop application:</p><ol><li>Go to&nbsp;<a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> → <em>Backup</em> → <em>Backup options</em>.</li><li>Click on <em>Turn on encryption</em> and set a password.</li></ol><p>Once encryption is enabled, all newly created backups (both automatic and manual) will be encrypted with the specified password. Backups created prior to enabling encryption will remain unsecured.</p><p>You can change the password anytime using the <em>Change password</em> button. The new password will apply to backups created after the change.</p><p>To disable encryption, uncheck&nbsp;<a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> → <em>Backup</em> → <em>Enable encryption</em>.</p><aside class=\"admonition note\"><p>On some systems, a keyring may not be available for Trilium to securely store the encryption password. In such cases, the encryption option is disabled.</p></aside><h2>Backup compression</h2><p>Database backups can be optionally compressed to minimize storage footprint. This method is effective primarily when the database consists largely of text content. However, media files (images, videos, audio), along with PDF, ODF, and DOCX files, are already compressed in their original formats and won't benefit from further compression.</p><p>Compressed backups are stored using the Trilium Backup Container (.tnbackup), employing RFC 1952 GZIP compression.</p><aside class=\"admonition warning\"><p><strong>Note:</strong> Compression increases the time required for backup creation and restoration. It may also lead to higher CPU usage during automatic backups, potentially draining the battery faster on battery-powered devices. Enable this option only if necessary.</p></aside><h3>Enabling Backup Compression (Desktop Only)</h3><p>To enable compression for new automatic and manual backups, navigate to&nbsp;<a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> → <em>Backup</em> → <em>Backup options</em> and toggle <em>Enable compression</em> to on.</p><h2>Disabling backup</h2><p>Although this is not recommended, it is possible to disable backup in <code>config.ini</code> in the <a href=\"#root/_help_tAassRL4RSQL\">data directory</a>:</p><pre><code class=\"language-text-x-trilium-auto\">[General]\n... some other configs\n# set to true to disable backups (e.g. because of limited space on server)\nnoBackup=true</code></pre><p>You can also review the <a href=\"#root/_help_Gzjqa934BdH4\">configuration</a> file to provide all <code>config.ini</code> values as environment variables instead.</p><p>See <a href=\"https://github.com/TriliumNext/Trilium/blob/master/config-sample.ini\">sample config</a>.</p>",
@@ -42,8 +42,8 @@
"_help_yTjUdsOi4CIE": "<p>In the&nbsp;<a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>, it's possible to select multiple notes at one time. This won't affect the currently displayed note, but it allows to do batch operations.</p><h2>Types of multiple selection</h2><figure class=\"image image-style-align-right image_resized\" style=\"width:28.54%;\"><img style=\"aspect-ratio:335/306;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree/Multiple%20selection_image.png\" width=\"335\" height=\"306\"></figure><h3>Selecting notes one by one</h3><p>To individually select each note, press the <kbd>Alt</kbd> key and click on the note to be selected.</p><p>The selected notes will be indicated via a different background color and an icon.</p><h3>Selecting notes in a sequence</h3><figure class=\"image image-style-align-right image_resized\" style=\"width:29.24%;\"><img style=\"aspect-ratio:233/205;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree/Multiple%20selection_image.jpg\" width=\"233\" height=\"205\"></figure><p>When notes are in a sequence (e.g. one underneath the other), the entire selection can be made just by selecting the first and the last item instead of individually clicking all the notes.</p><p>To do so, first select the note to start the selection with. Then hold <kbd>Shift</kbd> and click on the note to end the selection with. All the notes between the start and the end note will be selected as well.</p><h2>Selected notes vs. active note</h2><p>There is a distinction between <em>selected notes</em> and the <em>active note</em>:</p><ul><li><em>Selected notes</em> are simply the notes that were selected in the multiple section process (i.e. either via <kbd>Alt</kbd> or <kbd>Shift</kbd>).</li><li>The <em>active note</em> is simply the note that whose content is being displayed to the right of the tree.<ul><li><p>Visually, it's identified in the tree by having a different background color and a subtle shadow.</p></li><li><p>The active note can also be selected case in which the icon and background will also change:</p><img class=\"image_resized\" style=\"aspect-ratio:317/223;width:35.1%;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree/1_Multiple%20selection_image.png\" width=\"317\" height=\"223\"></li></ul></li></ul>",
"_help_DvdZhoQZY9Yd": "<p>The&nbsp;<a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>&nbsp;comes with multiple keyboard shortcuts to make editing faster:</p><h2>Navigation within the tree</h2><ul><li><kbd><span>↑</span></kbd> and <kbd><span>↑</span></kbd> to navigate between notes.</li><li><kbd><span>←</span></kbd> to collapse a note with children, or <kbd><span>→</span></kbd> to expand it.</li><li><kbd><span>←</span></kbd> on a note with no children to navigate to its parent.</li></ul><h2>Opening notes</h2><ul><li><kbd>Click</kbd> to open the note in the current tab.</li><li><kbd>Ctrl</kbd>+<kbd>Click</kbd> or <kbd>Middle click</kbd> to open the note in a new tab.</li><li><kbd>Ctrl</kbd>+<kbd>Right click</kbd> to open the note in&nbsp;<a class=\"reference-link\" href=\"#root/_help_ZjLYv08Rp3qC\">Quick edit</a>.</li></ul><h2>Clipboard management</h2><ul><li><kbd>Ctrl</kbd>+<kbd>C</kbd> to copy one or more notes based on selection (see&nbsp;<a class=\"reference-link\" href=\"#root/_help_IakOLONlIfGI\">Cloning Notes</a>).</li><li><kbd>Ctrl</kbd>+<kbd>X</kbd> to cut one or more notes (for moving them).</li><li><kbd>Ctrl</kbd>+<kbd>V</kbd> to paste them somewhere (which results in a copy or move based on the shortcut used).</li></ul><h2>Moving notes</h2><ul><li><kbd>Ctrl</kbd> + <kbd><span>↑</span></kbd> , <kbd>Ctrl</kbd> + <kbd><span>↓</span></kbd> - move note up/down in the note list.</li><li><kbd>Ctrl</kbd> + <kbd><span>←</span></kbd> - move note up in the note tree.</li><li><kbd>Ctrl</kbd>+<kbd><span>→</span></kbd> - move note down in the note tree.</li><li><kbd>Del</kbd> - deletes note and optionally its subtree (asked in the dialog).</li><li><kbd>Alt</kbd>+<kbd>S</kbd> - sorts the child notes of the note (see&nbsp;<a class=\"reference-link\" href=\"#root/_help_aGlEvb9hyDhS\">Sorting Notes</a>).</li></ul><h2>Multiple selection</h2><p>See&nbsp;<a class=\"reference-link\" href=\"#root/_help_yTjUdsOi4CIE\">Multiple selection</a>&nbsp;for more information about how selection works.</p><ul><li><kbd>Alt</kbd>+<kbd>Click</kbd> – add a single note to the current selection.</li><li><kbd>Shift</kbd>+<kbd>Click</kbd> – select a range of notes, starting from the current note (the highlighted one) to the one that is being clicked.</li><li><kbd>Shift</kbd>+<kbd><span>↑</span></kbd>, <kbd>Shift</kbd>+<kbd><span>↓</span></kbd> – multi-select not above/below.</li><li><kbd>Ctrl</kbd>+<kbd>A</kbd> – select all notes in the current level</li></ul>",
"_help_wyaGBBQrl4i3": "<figure class=\"image image-style-align-right\"><img style=\"aspect-ratio:328/45;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree/1_Hiding%20the%20subtree_image.png\" width=\"328\" height=\"45\"><figcaption>An example of a collection with a relatively large number of children that are hidden from the tree.</figcaption></figure><p>The tree works well when the notes are structured in a hierarchy so that the number of items stays small. When a note has a large number of notes (in the order of thousands or tens of thousands), two problems arise:</p><ul><li>Navigating between notes becomes cumbersome and the tree itself gets cluttered with a large amount of notes.</li><li>The large amount of notes can slow down the application considerably.</li></ul><p>Since v0.102.0, Trilium allows the tree to hide the child notes of particular notes. This works for both&nbsp;<a class=\"reference-link\" href=\"#root/_help_GTwFsgaA0lCt\">Collections</a>&nbsp;and normal notes.</p><h2>Interaction</h2><p>When the subtree of a note is hidden, there are a few subtle changes:</p><ul><li>To indicate that the subtree is hidden, the note will not have an expand button and it will display the number of children to the right.</li><li>It's not possible to add a new note directly from the tree.<ul><li>For&nbsp;<a class=\"reference-link\" href=\"#root/_help_GTwFsgaA0lCt\">Collections</a>, it's best to use the built-in mechanism to create notes (for example by creating a new point on a geo-map, or by adding a new row in a table).</li><li>For normal notes, it's still possible to create children via other means such as using the&nbsp;<a class=\"reference-link\" href=\"#root/_help_hrZ1D00cLbal\">Internal (reference) links</a>&nbsp;system.</li></ul></li><li>Notes can be dragged from outside the note, case in which they will be cloned into it.<ul><li>Instead of switching to the child notes that were copied, the parent note is highlighted instead.</li><li>A notification will indicate this behavior.</li></ul></li><li>Similarly, features such as cut/copy and then paste into the note will also work.</li></ul><h2>Spotlighting</h2><figure class=\"image image-style-align-right\"><img style=\"aspect-ratio:322/83;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree/Hiding%20the%20subtree_image.png\" width=\"322\" height=\"83\"></figure><p>Even if the subtree of a note is hidden, if a child note manages to become active, it will still appear inside the tree in a special state called <em>spotlighted</em>.</p><p>During this state, the note remains under its normal hierarchy, so that its easy to tell its location. In addition, this means that:</p><ul><li>The note position is clearly visible when using the&nbsp;<a class=\"reference-link\" href=\"#root/_help_eIg8jdvaoNNd\">Search</a>.</li><li>The note can still be operated on from the tree, such as adding a&nbsp;<a class=\"reference-link\" href=\"#root/_help_TBwsyfadTA18\">Branch prefix</a>&nbsp;or moving it outside the collection.</li></ul><p>The note appears in italics to indicate its temporary display. When switching to another note, the spotlighted note will disappear.</p><aside class=\"admonition note\"><p>Only one note can be highlighted at the time. When working with multiple notes such as dragging them into the collection, no note will be spotlighted. This is intentional to avoid displaying a partial state of the subtree.</p></aside><h2>Working with collections</h2><p>For large collections, it can be helpful to hide their child notes for performance reasons or de-cluttering the tree.</p><p>To toggle this behavior:</p><ul><li>Open the collection and in&nbsp;<a class=\"reference-link\" href=\"#root/_help_CssoWBu8I7jF\">Collection Properties</a>, look for <em>Hide child notes in tree</em>.</li><li>Right click the collection note in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>&nbsp;and select <em>Advanced</em> → <em>Show subtree</em>.</li></ul><h2>Working with normal notes</h2><p>It's possible to hide the subtree for normal notes as well, not just collections. To do so, right click the note in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>&nbsp;and select <em>Advanced</em> → <em>Hide subtree.</em></p>",
- "_help_3seOhtN8uLIY": "<figure class=\"image image-style-align-center\"><img style=\"aspect-ratio:1119/43;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Tabs_image.png\" width=\"1119\" height=\"43\"></figure><p>In Trilium, tabs allow easy switching between notes.</p><h2>Layout</h2><p>Depending on the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x0JgW8UqGXvq\">Vertical and horizontal layout</a>:</p><ul><li>For the vertical layout, the tabs will be placed at the top but to the right of the&nbsp;<a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>.</li><li>For the horizontal layout, the tabs will be placed at the top in full-width, above the&nbsp;<a href=\"#root/_help_oPVyFC7WL2Lp\">note tree</a>, allowing for more tabs to be comfortably displayed.</li></ul><h2>Interaction</h2><ul><li>To create a new tab, press the&nbsp;<span class=\"tn-icon bx bx-plus\"></span> button that is to the right of the last tab.</li><li>Right-clicking the <span class=\"tn-icon bx bx-plus\"></span> button shows a menu with <em>New tab</em> and, if there are any <a class=\"reference-link\" href=\"#root/_help_9sRHySam5fXb\">Workspaces</a>, one entry per workspace, which opens the workspace in a new tab, hoisted into it.</li><li>To close a tab, press the corresponding&nbsp;<span class=\"tn-icon bx bx-x\"></span> button.</li><li>For multitasking, tabs can be used alongside&nbsp;<a class=\"reference-link\" href=\"#root/_help_luNhaphA37EO\">Split View</a>. Each tab can have one or more notes, displayed horizontally.</li><li>Tabs can be reordered by drag-and-dropping it into a new position.</li><li>An existing tab can be displayed in a new window by dragging the tab upwards or downwards. It is not possible to combine tabs back into another window.</li></ul><h2>Keyboard interaction</h2><p>Since tabs are a commonly used feature, there are multiple keyboard shortcuts that can be used:</p><ul><li><kbd>Ctrl</kbd>+<kbd>T</kbd> to open a new tab.</li><li><kbd>Ctrl</kbd>+<kbd>W</kbd> to close the current tab.</li><li><kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>T</kbd> to reopen the last closed tab.</li><li><kbd>Ctrl</kbd>+<kbd>Tab</kbd> and <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>Tab</kbd> to go to the next or previous tab.</li><li><kbd>Ctrl</kbd>+<kbd>1</kbd>, <kbd>Ctrl</kbd>+<kbd>2</kbd>, up to <kbd>Ctrl</kbd>+<kbd>9</kbd> to activate the first, second and up to ninth tab.</li><li>There is also a shortcut to go to the last tab, but it is not assigned a key by default.</li></ul><h2>Full screen</h2><p>To show Trilium in full screen, press <kbd>F11</kbd> or the <span class=\"tn-icon bx bx-expand-alt\"></span> <em>Toggle fullscreen</em> button in the <a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>. While in full screen, the tab bar shows a <span class=\"tn-icon bx bx-exit-fullscreen\"></span> <em>Leave full screen</em> button before the <a class=\"reference-link\" href=\"#root/_help_RnaPdbciOfeq\">Right Sidebar</a> toggle; press it to return to the normal window.</p><h2>Background tabs</h2><p>When Trilium starts, it reopens the tabs from the previous session. Only the active tab loads its note right away; every other tab loads its note the first time you switch to it. This keeps startup fast when many tabs are open, especially tabs that show collections.</p><p>The same applies to a tab opened in the background, for example with a middle click or <kbd>Ctrl</kbd>+click on a link.</p><h2>Mobile</h2><figure class=\"image image-style-align-right image_resized\" style=\"width:34.12%;\"><img style=\"aspect-ratio:1242/2688;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Tabs_IMG_1767.PNG\" width=\"1242\" height=\"2688\"></figure><p>Tabs are also supported on the&nbsp;<a class=\"reference-link\" href=\"#root/_help_RDslemsQ6gCp\">Mobile Frontend</a>.</p><p>Since v0.102.0, the tabs are displayed by pressing the dedicated tab switcher button in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>. In this view the tabs are laid out on a grid with a preview of the note content.</p><p>The context menu button at the top-right of the popup allows creating a new tab, reopening the last closed tab and closing all the tabs.</p><p><a class=\"reference-link\" href=\"#root/_help_luNhaphA37EO\">Split View</a>s are also indicated in the tab switcher, with two titles displayed in a tab.</p><aside class=\"admonition note\"><p>Versions prior to v0.102.0 also supported tabs, but they were displayed directly above the&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>. The decision to use a more mobile-like tab switcher was taken because the original tab bar could not support many tabs at once and the new design better aligns with how mobile applications handle tabs.</p></aside>",
- "_help_xYmIYSP6wE3F": "<h2>Position of the Launch bar</h2><p>On desktop, depending on the layout selected, the launcher bar will either be on the left side of the screen with buttons displayed vertically or at the top of the screen. See&nbsp;<a class=\"reference-link\" href=\"#root/_help_x0JgW8UqGXvq\">Vertical and horizontal layout</a>&nbsp;for more information.</p><p>On mobile, the launch bar will always be at the bottom.</p><p>If there are too many items in the launch bar to fit the screen, it will become scrollable.</p><h2>Terminology</h2><ul><li><strong>Launcher</strong>: a button that can be (or is) displayed on the launch bar.</li><li><strong>Available Launcher</strong>: a launcher that is not displayed on the launch bar, but can be added.</li><li><strong>Visible Launcher</strong>: a launcher that is currently displayed on the launch bar.</li></ul><h2>Configuring the desktop Launch bar</h2><p>There are two ways to configure the launch bar:</p><ul><li>Right click in the empty space between launchers on the launch bar and select <em>Configure launch bar…</em></li><li>Click on the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>&nbsp;and select <em>Configure launch bar</em>.</li></ul><p>This will open a new tab with the&nbsp;<a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>&nbsp;listing the launchers.</p><p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Launch%20Bar_image.jpg\"></p><p>Expanding <em>Available Launchers</em> section will show the list of launchers that are not displayed on the launch bar. The <em>Visible Launchers</em> will show the ones that are currently displayed.</p><h2>Configuring the mobile launch bar</h2><p>The launch bar on mobile uses a different configuration from the desktop one. The reasoning is that not all desktop icons are available on mobile, and fewer icons fit on a mobile screen.</p><p>To configure the launch bar on mobile, go to&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>&nbsp;and select <em>Configure launch bar</em>.</p><p>The configure the mobile launch bar while on the desktop (especially useful to configure more complicated launchers such as scripts or custom widgets), go to&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>&nbsp;→ Advanced → Show hidden subtree and look for the <em>Mobile Launch Bar</em> section. While in the hidden subtree, it's also possible to drag launchers between the <em>Mobile Launch Bar</em> and (Desktop) <em>Launch Bar</em> sections.</p><h3>Adding/removing and reordering launchers</h3><p>To display a new launcher in the launch bar, first look for it in the <em>Available Launchers</em> section. Then right click it and select <em>Move to visible launchers</em>. It is also possible to drag and drop the item manually.</p><p>Similarly, to remove it from the launch bar, simply look for it in <em>Visible Launchers</em> then right click it and select <em>Move to available launchers</em> or use drag-and-drop.</p><p>Drag-and-drop the items in the&nbsp;tree&nbsp;in order to change their order. See&nbsp;<a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>&nbsp;for more interaction options, including using keyboard shortcuts.</p><h2>Customizing the launcher</h2><ul><li>The icon of a launcher can be changed just like a normal note. See&nbsp;<a href=\"#root/_help_p9kXRFAkwN4o\">note icons</a>&nbsp;for more information.</li><li>The title of the launcher can also be changed.</li></ul><h3>Resetting</h3><p>Resetting allows restoring the original configuration of Trilium for the launcher bar, or for a portion of it. Simply right click a launcher (or even the entire <em>Launch Bar</em> section) and select <em>Reset</em> to bring it back to the original state.</p><h3>Creating new launchers / types of launchers</h3><p>Right click either the <em>Available launchers</em> or <em>Visible launchers</em> sections and select one of the options:</p><ol><li><p><strong>Note Launcher</strong><br>A note launcher will simply navigate to a specified note.</p><ol><li>Set the <code>target</code> promoted attribute to the note to navigate to.</li><li>Optionally, set <code>hoistedNote</code> to hoist a particular note. See&nbsp;<a class=\"reference-link\" href=\"#root/_help_OR8WJ7Iz9K4U\">Note Hoisting</a>&nbsp;for more information.</li><li>Optionally, set a <code>keyboardShortcut</code> to trigger the launcher.</li></ol></li><li><p><strong>Script Launcher</strong><br>An advanced launcher which will run a script upon pressing. See&nbsp;<a class=\"reference-link\" href=\"#root/_help_CdNpE2pqjmI6\">Scripting</a>&nbsp;for more information.</p><ol><li>Set <code>script</code> to point to the desired script to run.</li><li>Optionally, set a <code>keyboardShortcut</code> to trigger the launcher.</li></ol></li><li><p><strong>Custom Widget</strong></p><p>Allows defining a custom widget to be rendered inside the launcher. See&nbsp;<a class=\"reference-link\" href=\"#root/_help_SynTBQiBsdYJ\">Widget Basics</a>&nbsp;for more information.</p></li><li><p><strong>Spacers</strong><br>Launchers that create some distance between other launchers for better visual distinction.</p></li></ol><p>Launchers are configured via predefined&nbsp;<a class=\"reference-link\" href=\"#root/_help_OFXdgB2nNk1F\">Promoted Attributes</a>.</p>",
+ "_help_3seOhtN8uLIY": "<figure class=\"image image-style-align-center\"><img style=\"aspect-ratio:1119/43;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Tabs_image.png\" width=\"1119\" height=\"43\"></figure><p>In Trilium, tabs allow easy switching between notes.</p><h2>Layout</h2><p>Depending on the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x0JgW8UqGXvq\">Vertical and horizontal layout</a>:</p><ul><li>For the vertical layout, the tabs will be placed at the top but to the right of the&nbsp;<a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>.</li><li>For the horizontal layout, the tabs will be placed at the top in full-width, above the&nbsp;<a href=\"#root/_help_oPVyFC7WL2Lp\">note tree</a>, allowing for more tabs to be comfortably displayed.</li></ul><h2>Interaction</h2><ul><li>To create a new tab, press the&nbsp;<span class=\"tn-icon bx bx-plus\"></span> button that is to the right of the last tab.</li><li>Right-clicking the <span class=\"tn-icon bx bx-plus\"></span> button shows a menu with <em>New tab</em> and, if there are any <a class=\"reference-link\" href=\"#root/_help_9sRHySam5fXb\">Workspaces</a>, one entry per workspace, which opens the workspace in a new tab, hoisted into it.</li><li>To close a tab, press the corresponding&nbsp;<span class=\"tn-icon bx bx-x\"></span> button.</li><li>For multitasking, tabs can be used alongside&nbsp;<a class=\"reference-link\" href=\"#root/_help_luNhaphA37EO\">Split View</a>. Each tab can have one or more notes, displayed horizontally.</li><li>Tabs can be reordered by drag-and-dropping it into a new position.</li><li>An existing tab can be displayed in a new window by dragging the tab upwards or downwards. It is not possible to combine tabs back into another window.</li></ul><h2>Keyboard interaction</h2><p>Since tabs are a commonly used feature, there are multiple keyboard shortcuts that can be used:</p><ul><li><kbd>Ctrl</kbd>+<kbd>T</kbd> to open a new tab.</li><li><kbd>Ctrl</kbd>+<kbd>W</kbd> to close the current tab.</li><li><kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>T</kbd> to reopen the last closed tab.</li><li><kbd>Ctrl</kbd>+<kbd>Tab</kbd> and <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>Tab</kbd> to go to the next or previous tab.</li><li><kbd>Ctrl</kbd>+<kbd>1</kbd>, <kbd>Ctrl</kbd>+<kbd>2</kbd>, up to <kbd>Ctrl</kbd>+<kbd>9</kbd> to activate the first, second and up to ninth tab.</li><li>There is also a shortcut to go to the last tab, but it is not assigned a key by default.</li></ul><h2>Full screen</h2><p>To show Trilium in full screen, press <kbd>F11</kbd> or the <span class=\"tn-icon bx bx-expand-alt\"></span> <em>Fullscreen</em> button in the <a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>. While in full screen, the tab bar shows a <span class=\"tn-icon bx bx-exit-fullscreen\"></span> <em>Leave full screen</em> button before the <a class=\"reference-link\" href=\"#root/_help_RnaPdbciOfeq\">Right Sidebar</a> toggle; press it to return to the normal window.</p><h2>Background tabs</h2><p>When Trilium starts, it reopens the tabs from the previous session. Only the active tab loads its note right away; every other tab loads its note the first time you switch to it. This keeps startup fast when many tabs are open, especially tabs that show collections.</p><p>The same applies to a tab opened in the background, for example with a middle click or <kbd>Ctrl</kbd>+click on a link.</p><h2>Mobile</h2><figure class=\"image image-style-align-right image_resized\" style=\"width:34.12%;\"><img style=\"aspect-ratio:1242/2688;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Tabs_IMG_1767.PNG\" width=\"1242\" height=\"2688\"></figure><p>Tabs are also supported on the&nbsp;<a class=\"reference-link\" href=\"#root/_help_RDslemsQ6gCp\">Mobile Frontend</a>.</p><p>Since v0.102.0, the tabs are displayed by pressing the dedicated tab switcher button in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>. In this view the tabs are laid out on a grid with a preview of the note content.</p><p>The context menu button at the top-right of the popup allows creating a new tab, reopening the last closed tab and closing all the tabs.</p><p><a class=\"reference-link\" href=\"#root/_help_luNhaphA37EO\">Split View</a>s are also indicated in the tab switcher, with two titles displayed in a tab.</p><aside class=\"admonition note\"><p>Versions prior to v0.102.0 also supported tabs, but they were displayed directly above the&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>. The decision to use a more mobile-like tab switcher was taken because the original tab bar could not support many tabs at once and the new design better aligns with how mobile applications handle tabs.</p></aside>",
+ "_help_xYmIYSP6wE3F": "<h2>Position of the Launch bar</h2><p>On desktop, depending on the layout selected, the launcher bar will either be on the left side of the screen with buttons displayed vertically or at the top of the screen. See&nbsp;<a class=\"reference-link\" href=\"#root/_help_x0JgW8UqGXvq\">Vertical and horizontal layout</a>&nbsp;for more information.</p><p>On mobile, the launch bar will always be at the bottom.</p><p>If there are too many items in the launch bar to fit the screen, it will become scrollable.</p><h2>Terminology</h2><ul><li><strong>Launcher</strong>: a button that can be (or is) displayed on the launch bar.</li><li><strong>Available Launcher</strong>: a launcher that is not displayed on the launch bar, but can be added.</li><li><strong>Visible Launcher</strong>: a launcher that is currently displayed on the launch bar.</li></ul><h2>Configuring the desktop Launch bar</h2><p>There are two ways to configure the launch bar:</p><ul><li>Right click in the empty space between launchers on the launch bar and select <em>Configure launch bar…</em></li><li>Click on the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>&nbsp;and select <em>Configure launch bar</em>.</li></ul><p>This will open a new tab with the&nbsp;<a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>&nbsp;listing the launchers.</p><p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Launch%20Bar_image.jpg\"></p><p>Expanding <em>Available Launchers</em> section will show the list of launchers that are not displayed on the launch bar. The <em>Visible Launchers</em> will show the ones that are currently displayed.</p><h2>Configuring the mobile launch bar</h2><p>The launch bar on mobile uses a different configuration from the desktop one. The reasoning is that not all desktop icons are available on mobile, and fewer icons fit on a mobile screen.</p><p>To configure the launch bar on mobile, go to&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>&nbsp;and select <em>Configure launch bar</em>.</p><p>The configure the mobile launch bar while on the desktop (especially useful to configure more complicated launchers such as scripts or custom widgets), go to&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>&nbsp;→ Advanced → Hidden notes and look for the <em>Mobile Launch Bar</em> section. While in the hidden subtree, it's also possible to drag launchers between the <em>Mobile Launch Bar</em> and (Desktop) <em>Launch Bar</em> sections.</p><h3>Adding/removing and reordering launchers</h3><p>To display a new launcher in the launch bar, first look for it in the <em>Available Launchers</em> section. Then right click it and select <em>Move to visible launchers</em>. It is also possible to drag and drop the item manually.</p><p>Similarly, to remove it from the launch bar, simply look for it in <em>Visible Launchers</em> then right click it and select <em>Move to available launchers</em> or use drag-and-drop.</p><p>Drag-and-drop the items in the&nbsp;tree&nbsp;in order to change their order. See&nbsp;<a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>&nbsp;for more interaction options, including using keyboard shortcuts.</p><h2>Customizing the launcher</h2><ul><li>The icon of a launcher can be changed just like a normal note. See&nbsp;<a href=\"#root/_help_p9kXRFAkwN4o\">note icons</a>&nbsp;for more information.</li><li>The title of the launcher can also be changed.</li></ul><h3>Resetting</h3><p>Resetting allows restoring the original configuration of Trilium for the launcher bar, or for a portion of it. Simply right click a launcher (or even the entire <em>Launch Bar</em> section) and select <em>Reset</em> to bring it back to the original state.</p><h3>Creating new launchers / types of launchers</h3><p>Right click either the <em>Available launchers</em> or <em>Visible launchers</em> sections and select one of the options:</p><ol><li><p><strong>Note Launcher</strong><br>A note launcher will simply navigate to a specified note.</p><ol><li>Set the <code>target</code> promoted attribute to the note to navigate to.</li><li>Optionally, set <code>hoistedNote</code> to hoist a particular note. See&nbsp;<a class=\"reference-link\" href=\"#root/_help_OR8WJ7Iz9K4U\">Note Hoisting</a>&nbsp;for more information.</li><li>Optionally, set a <code>keyboardShortcut</code> to trigger the launcher.</li></ol></li><li><p><strong>Script Launcher</strong><br>An advanced launcher which will run a script upon pressing. See&nbsp;<a class=\"reference-link\" href=\"#root/_help_CdNpE2pqjmI6\">Scripting</a>&nbsp;for more information.</p><ol><li>Set <code>script</code> to point to the desired script to run.</li><li>Optionally, set a <code>keyboardShortcut</code> to trigger the launcher.</li></ol></li><li><p><strong>Custom Widget</strong></p><p>Allows defining a custom widget to be rendered inside the launcher. See&nbsp;<a class=\"reference-link\" href=\"#root/_help_SynTBQiBsdYJ\">Widget Basics</a>&nbsp;for more information.</p></li><li><p><strong>Spacers</strong><br>Launchers that create some distance between other launchers for better visual distinction.</p></li></ol><p>Launchers are configured via predefined&nbsp;<a class=\"reference-link\" href=\"#root/_help_OFXdgB2nNk1F\">Promoted Attributes</a>.</p>",
"_help_8YBEPzcpUgxw": "<figure class=\"image image-style-align-right image_resized\" style=\"width:25.95%;\"><img style=\"aspect-ratio:402/988;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Note%20menu_image.png\" width=\"402\" height=\"988\"></figure><p>The note menu contains various actions and configurations for the current note. It can be found in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_1P8QXI5edXNd\">Note buttons</a>&nbsp;area (to the right of the&nbsp;<a class=\"reference-link\" href=\"#root/_help_l7pigIGu01K2\">Title</a>).</p><p>Every split has a note menu of its own, which acts on the note displayed in that split. Entries that don't apply to the current note are still listed but grayed out, while entries that only exist for some notes (described in <em>Note-specific entries</em>) appear only on those notes.</p><h2>Navigating the note</h2><p>These entries are the row of icons at the top of the menu, each with a short title. Hovering one shows its full name and its keyboard shortcut. In Quick edit on a phone, where only <em>Find</em> is left, it is listed as an ordinary entry instead.</p><ul><li><span class=\"tn-icon bx bx-file-find\"></span>&nbsp;<em>Find</em> opens the&nbsp;<a class=\"reference-link\" href=\"#root/_help_McngOG2jbUWX\">Search in note</a>&nbsp;bar, to find and replace text inside the current note. On the desktop application, the same bar opens with <kbd>Ctrl</kbd>+<kbd>F</kbd>.<ul><li>It is available on&nbsp;<a class=\"reference-link\" href=\"#root/_help_iPIMuisry3hd\">Text</a>,&nbsp;<a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a>,&nbsp;<a class=\"reference-link\" href=\"#root/_help_gBbsAeiuUxI5\">Mind Map</a>&nbsp;and&nbsp;<a class=\"reference-link\" href=\"#root/_help_GWHEkY4I4OE3\">Spreadsheets</a>&nbsp;notes,&nbsp;<a class=\"reference-link\" href=\"#root/_help_GTwFsgaA0lCt\">Collections</a>, PDF files, and any note displayed as&nbsp;<a class=\"reference-link\" href=\"#root/_help_4FahAwuGTAwC\">Note source</a>.</li></ul></li><li><span class=\"tn-icon bx bx-paperclip\"></span>&nbsp;<em>Attachments</em> switches the note to the list of its&nbsp;<a class=\"reference-link\" href=\"#root/_help_0vhv7lsOLy82\">Attachments</a>, where they can be uploaded, opened, downloaded, renamed or deleted.</li><li><span class=\"tn-icon bx bxs-network-chart\"></span>&nbsp;<em>Note map</em> opens the&nbsp;<a class=\"reference-link\" href=\"#root/_help_KRlZFoIH0j6p\">Connections tab</a>&nbsp;of the&nbsp;<a class=\"reference-link\" href=\"#root/_help_RnaPdbciOfeq\">Right Sidebar</a>, which shows the&nbsp;<a class=\"reference-link\" href=\"#root/_help_BCkXAVs63Ttv\">Note Map (Link map, Tree map)</a>&nbsp;centered on the current note.</li></ul><h2>Note properties</h2><p>The toggles in this section take effect immediately:</p><ul><li><span class=\"tn-icon bx bx-share-alt\"></span>&nbsp;<em>Shared</em> publishes the note via&nbsp;<a class=\"reference-link\" href=\"#root/_help_R9pX4DGra2Vt\">Sharing</a>, by cloning it into the <em>Shared Notes</em> tree.<ul><li>Turning it off removes the clone from that tree. If the note exists only as a shared note, Trilium asks for confirmation, since unsharing it deletes it.</li><li>The toggle is unavailable on the root note, on the <em>Shared Notes</em> note itself, and on system notes.</li></ul></li><li><span class=\"tn-icon bx bx-lock-alt\"></span>&nbsp;<em>Protect the note</em> encrypts the note, turning it into one of the&nbsp;<a class=\"reference-link\" href=\"#root/_help_bwg0e8ewQMak\">Protected Notes</a>. If no protected session is active, Trilium asks for the password first. Only the current note is affected, not its children.</li><li><span class=\"tn-icon bx bx-bookmark\"></span>&nbsp;<em>Bookmark</em> adds the note to the&nbsp;<a class=\"reference-link\" href=\"#root/_help_u3YFHC9tQlpm\">Bookmarks</a>&nbsp;that are displayed in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>, or removes it from them.</li><li><span class=\"tn-icon bx bx-copy-alt\"></span>&nbsp;<em>Template</em> marks the note as one of the&nbsp;<a class=\"reference-link\" href=\"#root/_help_KC1HB96bqqHX\">Templates</a>&nbsp;(by adding the <code>#template</code> label), which makes it available when creating a new note.</li><li><span class=\"tn-icon bx bx-expand-horizontal\"></span>&nbsp;<em>Full width</em> lets the note use the whole width of the window instead of the limit set in&nbsp;<a class=\"reference-link\" href=\"#root/_help_t596jLvPrqkS\">Content width</a>&nbsp;by adding the <code>#fullContentWidth</code> label. It is not listed for note types that are always displayed at full width.</li></ul><p>The two submenus in this section:</p><ul><li><span class=\"tn-icon bx bx-file\"></span>&nbsp;<em>Note type</em> changes the type of the note to any of the&nbsp;<a class=\"reference-link\" href=\"#root/_help_KSZ04uQ2D1St\">Note Types</a>; the current one is checked. If the note already has content, Trilium asks for confirmation first, since the content generally doesn't carry over.&nbsp;<a class=\"reference-link\" href=\"#root/_help_jludwdW7N4hg\">Converting between note types</a>.<ul><li>For a&nbsp;<a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a>&nbsp;note, the language is chosen in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_AlJ73vBCjWDw\">Status bar</a>&nbsp;instead.</li></ul></li><li><span class=\"tn-icon bx bx-edit-alt\"></span>&nbsp;<em>Editable</em> controls when the note opens as read-only (see&nbsp;<a class=\"reference-link\" href=\"#root/_help_CoFPLs3dRlXc\">Read-Only Notes</a>):<ul><li><em>Auto</em> (the default): the note is editable, unless it is long enough to be opened as read-only automatically.</li><li><em>Read-only</em>: the note always opens as read-only, but can still be edited after pressing <em>Edit note</em>.</li><li><em>Always editable</em>: the note is always editable, regardless of its length.</li></ul></li></ul><h2>Importing, exporting and printing</h2><ul><li><span class=\"tn-icon bx bx-import\"></span>&nbsp;<em>Import files</em> opens the import dialog, which imports files as children of the current note. See&nbsp;<a class=\"reference-link\" href=\"#root/_help_mHbBMPDPkVV5\">Import &amp; Export</a>. It is unavailable on&nbsp;<a class=\"reference-link\" href=\"#root/_help_m523cpzocqaD\">Saved Search</a>&nbsp;notes.</li><li><span class=\"tn-icon bx bx-export\"></span>&nbsp;<em>Export note</em> opens the export dialog with <em>Only this note</em> selected; select <em>This note &amp; all descendants</em> there to export the whole subtree.</li><li><span class=\"tn-icon bx bx-printer\"></span><em>Print/export to PDF…</em> prints the note or saves it as a PDF file. See&nbsp;<a class=\"reference-link\" href=\"#root/_help_NRnIZmSMc5sj\">Printing &amp; Exporting as PDF</a>, including which note types and collections can be printed.</li></ul><p>Some note types add their own export formats right below <em>Export note</em>:</p><ul><li><span class=\"tn-icon bx bxs-file-image\"></span><em>Export as image</em>, on&nbsp;<a class=\"reference-link\" href=\"#root/_help_s1aBHPd79XYj\">Mermaid Diagrams</a>&nbsp;and&nbsp;<a class=\"reference-link\" href=\"#root/_help_gBbsAeiuUxI5\">Mind Map</a>&nbsp;notes, downloads the diagram as <em>PNG (raster)</em> or <em>SVG (vector)</em>.</li><li><span class=\"tn-icon bx bxs-spreadsheet\"></span><em>Export to Excel (.xlsx)</em> and <em>Export to CSV (.csv)</em>, on&nbsp;<a class=\"reference-link\" href=\"#root/_help_GWHEkY4I4OE3\">Spreadsheets</a>, download the spreadsheet in those formats.</li></ul><h2>Revisions</h2><p>These entries manage the&nbsp;<a class=\"reference-link\" href=\"#root/_help_vZWERwf8U3nx\">Note Revisions</a>&nbsp;of the note:</p><ul><li><span class=\"tn-icon bx bx-history\"></span><em>Note revisions…</em> opens the revisions dialog, where previous versions can be previewed, compared with the current one, downloaded or restored. The arrow beside it opens the entries that save a revision right away. On mobile, tapping it opens those entries, with <em>Note revisions…</em> as the first one.<ul><li><span class=\"tn-icon bx bx-save\"></span><em>Save revision</em> saves a revision of the note right away, instead of waiting for the next automatic snapshot.</li><li><span class=\"tn-icon bx bx-purchase-tag\"></span><em>Save named revision…</em> also saves a revision right away, but first asks for a short description of the changes, which is shown in the revisions dialog.</li></ul></li></ul><h2>Note-specific entries</h2><p>The following entries only appear on some notes:</p><ul><li><span class=\"tn-icon bx bx-pencil\"></span><em>Edit note</em> appears at the top of the menu when the note is currently read-only. It enables editing until the note is closed.</li><li><span class=\"tn-icon bx bx-align-justify\"></span><em>Word wrap</em> appears at the top of the menu on&nbsp;<a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a>&nbsp;notes, and sets whether long lines wrap in this note:<ul><li><em>Auto</em> (the default) follows&nbsp;<a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a>&nbsp;→ <em>Code Notes</em> → <em>Wrap lines in code notes</em>.</li><li><em>On</em> and <em>Off</em> override it for this note only, by setting the <code>#wrapLines</code> label.</li></ul></li><li><span class=\"tn-icon bx bx-paperclip\"></span><em>Convert into attachment</em> appears on an image note that has no children and a single parent which is a&nbsp;<a class=\"reference-link\" href=\"#root/_help_iPIMuisry3hd\">Text</a>&nbsp;note. After a confirmation, it turns the image into an attachment of its parent note and opens it there. See&nbsp;<a class=\"reference-link\" href=\"#root/_help_0vhv7lsOLy82\">Attachments</a>.</li><li><span class=\"tn-icon bx bx-extension\"></span><em>Re-render note</em> appears on a&nbsp;<a class=\"reference-link\" href=\"#root/_help_HcABDtFCkbFN\">Render Note</a>, and runs its script again to refresh the output.</li><li><span class=\"tn-icon bx bx-cog\"></span><em>Board properties</em> appears on a&nbsp;<a class=\"reference-link\" href=\"#root/_help_CtBQqbwXDx1w\">Kanban Board</a>, and configures its columns, card attributes and card templates.</li><li><span class=\"tn-icon bx bx-cog\"></span><em>Calendar properties</em> appears on a&nbsp;<a class=\"reference-link\" href=\"#root/_help_xWbu3jpNWapp\">Calendar</a> that creates events, and configures its event templates.</li><li><span class=\"tn-icon bx bx-cog\"></span><em>Geo map properties</em> appears on a&nbsp;<a class=\"reference-link\" href=\"#root/_help_81SGnPGMk7Xc\">Geo Map</a>, and configures its map settings and the image of an <a href=\"#root/_help_ZRDXGc0nAIh4\">image map</a>.</li><li><span class=\"tn-icon bx bx-cog\"></span><em>Table properties</em> appears on a <a class=\"reference-link\" href=\"#root/_help_2FvYrpmOXm29\">Table</a>, and configures which notes it shows.</li></ul><h2>Advanced</h2><p>The <span class=\"tn-icon bx bx-wrench\"></span><em>Advanced</em> submenu groups the actions that are needed less often:</p><ul><li><p><span class=\"tn-icon bx bx-file-find\"></span><em>Open note externally</em> (desktop application only) saves the note to a temporary file and opens it in the application that the operating system associates with it. Trilium watches the file, and offers to upload the modified version back into the note. It is unavailable on&nbsp;<a class=\"reference-link\" href=\"#root/_help_GTwFsgaA0lCt\">Collections</a>&nbsp;and&nbsp;<a class=\"reference-link\" href=\"#root/_help_m523cpzocqaD\">Saved Search</a>&nbsp;notes.</p></li><li><p><span class=\"tn-icon bx bx-customize\"></span><em>Open note custom</em> (desktop application only, Windows and Linux) works like <em>Open note externally</em>, but lets you pick the application to open the file with.</p></li><li><p><span class=\"tn-icon bx bx-code\"></span><em>Note source</em> shows the&nbsp;<a class=\"reference-link\" href=\"#root/_help_4FahAwuGTAwC\">Note source</a>, the content of the note exactly as it is stored.</p></li><li><p><span class=\"tn-icon bx bxl-markdown\"></span><em>Convert to Markdown note</em> (on text notes) and <em>Convert to text note</em> (on Markdown notes) switch the note between rich text and Markdown. After a confirmation, Trilium saves a revision and converts the content; the revision allows going back if some formatting was lost. See&nbsp;<a class=\"reference-link\" href=\"#root/_help_jludwdW7N4hg\">Converting between note types</a>.</p></li><li><p><span class=\"tn-icon bx bx-collapse-alt\"></span><em>Compress images</em> opens a dialog that reduces the size of the images in the note. It lists the images found and how much space they take, and offers to:</p><ul><li>Resize the images larger than a chosen size.</li><li>Keep, or compress, JPEG images.</li><li>Keep, optimize, or convert to JPEG the PNG images.</li><li><em>Process child notes as well</em>, to include the images of the notes beneath this one.</li></ul><p>Compressing cannot be undone. Images can also be compressed automatically on upload, see&nbsp;<a class=\"reference-link\" href=\"#root/_help_mT0HEkOsz6i1\">Images</a>.</p></li><li><p><span class=\"tn-icon bx bx-text\"></span><em>View OCR text</em> (on image and file notes) shows the text extracted from the note via&nbsp;<a class=\"reference-link\" href=\"#root/_help_TiQbQDgP8L5t\">Text Extraction (OCR)</a>. If the note has not been processed yet, the dialog offers to <em>Process OCR</em>.</p></li><li><p><span class=\"tn-icon bx bx-world\"></span><em>Open note on server</em> (desktop application only, listed when&nbsp;<a class=\"reference-link\" href=\"#root/_help_cbkrhQjrkKrh\">Synchronization</a>&nbsp;is configured) opens the same note on the sync server, in the web browser.</p></li></ul><h2>Deleting the note</h2><p><span class=\"tn-icon bx bx-trash\"></span><em>Delete note</em> opens the deletion dialog for the current note and its subtree. The dialog lists the notes that will be deleted and the relations that will be broken, and offers to:</p><ul><li>Also delete the other clones of the note, if it is cloned elsewhere. Otherwise, only the current placement is removed and the note stays in its other locations. See&nbsp;<a class=\"reference-link\" href=\"#root/_help_IakOLONlIfGI\">Cloning Notes</a>.</li><li><em>Erase permanently</em> instead of the usual soft deletion. This cannot be undone.</li></ul><p>Notes deleted without erasing can be brought back, see&nbsp;<a class=\"reference-link\" href=\"#root/_help_5Ct4MAJTS4tQ\">Restoring Deleted Notes</a>.</p><h2>Limitations</h2><ul><li>The note menu is not available on launchers.</li><li>On the notes of&nbsp;<a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a>&nbsp;and of the in-app help, most entries are grayed out, since these notes cannot be imported into, deleted or have revisions. Of the two, only the in-app help can be exported, see&nbsp;<a class=\"reference-link\" href=\"#root/_help_mHbBMPDPkVV5\">Import &amp; Export</a>.</li><li>The <a href=\"#note-properties\">Note properties</a> section is only listed when the note itself is displayed, not its&nbsp;<a class=\"reference-link\" href=\"#root/_help_0vhv7lsOLy82\">Attachments</a>&nbsp;or its&nbsp;<a class=\"reference-link\" href=\"#root/_help_4FahAwuGTAwC\">Note source</a>.</li><li>In&nbsp;<a class=\"reference-link\" href=\"#root/_help_ZjLYv08Rp3qC\">Quick edit</a>, <em>Note map</em>, <em>Full width</em> and <em>Convert into attachment</em> are not listed.</li></ul><h2>Mobile support</h2><p>On the&nbsp;<a class=\"reference-link\" href=\"#root/_help_RDslemsQ6gCp\">Mobile Frontend</a>, the note menu opens as a sheet from the bottom of the screen. Besides the entries above, it contains the items that the desktop layout places elsewhere:</p><ul><li>Two more icons in the row of icons at the very top of the sheet, which reads <span class=\"tn-icon bx bx-dock-right\"></span>&nbsp;<em>New split</em>, <em>Note map</em>, <em>Find</em> and <span class=\"tn-icon bx bx-plus\"></span>&nbsp;<em>Child note</em> from left to right: <em>New split</em> opens a <a class=\"reference-link\" href=\"#root/_help_luNhaphA37EO\">Split View</a> while there is none in the tab, and <em>Child note</em> creates a note under the current one.</li><li><em>Backlinks</em> and <em>Note paths</em>, below the row of icons, which open the <a class=\"reference-link\" href=\"#root/_help_wfGXLmm7x27z\">Backlinks</a> and the other locations of the note.</li><li><span class=\"tn-icon bx bx-paperclip\"></span>&nbsp;<em>Attachments</em> and <span class=\"tn-icon bx bx-list-check\"></span>&nbsp;<em>Attributes</em>, under them, which open the attachments and the attributes of the note, each with the number the note has. Links made by the content of the note are not counted as attributes. <em>Attributes</em> is unavailable where the note cannot be edited. On mobile, <em>Attachments</em> is listed here instead of in the row of icons.</li><li>The custom buttons of the note type (such as <span class=\"tn-icon bx bx-download\"></span><em>Download</em> on a&nbsp;<a class=\"reference-link\" href=\"#root/_help_W8vYD3Q1zjCR\">File</a>).</li><li><em>Close this pane</em>, on the second note of a <a class=\"reference-link\" href=\"#root/_help_luNhaphA37EO\">Split View</a>.</li><li><span class=\"tn-icon bx bx-slider-alt\"></span>&nbsp;<em>Note settings</em>, below <em>Protect the note</em>, which opens <em>Shared</em> and <em>Bookmark</em>, then <em>Note type</em>, <em>Template</em> and <em>Full width</em>, on a page of their own, together with the language of the note: the content language on <a class=\"reference-link\" href=\"#root/_help_iPIMuisry3hd\">Text</a> notes (see <a class=\"reference-link\" href=\"#root/_help_veGu4faJErEM\">Content language &amp; Right-to-left support</a>), and the language of the code on <a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a> notes. The choices of <em>Editable</em> are listed at the end of that page, under their own heading, instead of in a further submenu.</li><li><span class=\"tn-icon bx bx-info-circle\"></span>&nbsp;<em>Note info</em>, below <em>Note settings</em>, which opens the dates, type, ID and size of the note on a page of its own, ending with <em>Show similar notes</em> (see <a class=\"reference-link\" href=\"#root/_help_xWtq5NUHOwql\">Similar Notes</a>).</li><li><em>Note map</em> opens the map in a popup instead of the right sidebar.</li></ul>",
"_help_1P8QXI5edXNd": "<p>The note buttons is an area at the top-right of a note with a few buttons:</p><ul><li>The&nbsp;<a class=\"reference-link\" href=\"#root/_help_8YBEPzcpUgxw\">Note menu</a>&nbsp;which offers commands for the note or its subtree, such as import, export, viewing the&nbsp;<a href=\"#root/_help_4FahAwuGTAwC\">Note source code</a>&nbsp;or&nbsp;<a href=\"#root/_help_0vhv7lsOLy82\">Attachments</a>.</li><li><a class=\"reference-link\" href=\"#root/_help_luNhaphA37EO\">Split View</a>&nbsp;controls<ul><li><span class=\"tn-icon bx bx-dock-right\"></span>&nbsp;to open a new split</li><li><span class=\"tn-icon bx bx-chevron-right\"></span>/<span class=\"tn-icon bx bx-chevron-left\"></span> to move the pane around</li><li><span class=\"tn-icon bx bx-x\"></span>&nbsp;to close the pane.</li></ul></li><li>On some note types such as&nbsp;<a class=\"reference-link\" href=\"#root/_help_W8vYD3Q1zjCR\">File</a>&nbsp;and images, there are dedicated buttons (e.g.&nbsp;<span class=\"tn-icon bx bx-download\"></span> to download the file locally).</li></ul>",
"_help_4TIF1oA4VQRO": "<figure class=\"image image-style-align-center\"><img style=\"aspect-ratio:1189/709;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/UI%20Elements/Options_image.png\" width=\"1189\" height=\"709\"></figure><p>The Options section allows the configuration of the TriliumNext client and server.</p><h2>Entering options</h2><p>The Options can be accessed via:</p><ul><li>The&nbsp;<a href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>, by selecting the <em>Options</em> item.</li><li>The&nbsp;<span class=\"tn-icon bx bx-cog\"></span> button in the&nbsp;<a href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>&nbsp;which can optionally be hidden if not desirable.</li><li>Optionally, a keyboard shortcut can be defined, but it is not assigned by default.</li><li>By clicking on this link:&nbsp;<a class=\"reference-link\" href=\"#root/_hidden/_options\">Options</a>.</li></ul><p>Once in the options section, simply select one of the option categories using the&nbsp;<a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>.</p><h2>Exiting options</h2><p>When entering the options, they are opened in a new <a href=\"#root/_help_3seOhtN8uLIY\">tab</a>. To close them, simply close the tab.</p><h2>Options when using sync</h2><p>When using&nbsp;<a class=\"reference-link\" href=\"#root/_help_cbkrhQjrkKrh\">Synchronization</a>, some of the options will be kept in sync across all the devices while others can be changed independently.</p><p>Generally, the options that relate to appearance are intentionally kept not synced in order to allow per-client customization (layout orientation, theme, vertical/horizontal layout, code block themes).</p>",
@@ -75,7 +75,7 @@
"_help_CoFPLs3dRlXc": "<p>Some note types such as&nbsp;<a class=\"reference-link\" href=\"#root/_help_iPIMuisry3hd\">Text</a>,&nbsp;<a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a>&nbsp;notes and even some of the&nbsp;<a class=\"reference-link\" href=\"#root/_help_GTwFsgaA0lCt\">Collections</a>&nbsp;can be set to read-only. When a note is in read-only mode, it is presented to the user in a non-editable view, with the option to switch to editing mode if needed.</p><h2>Automatic read-only mode</h2><p>For optimization purposes, Trilium will automatically set very large notes to read-only. Displaying such lengthy notes in editing mode can slow down performance, especially when editing is unnecessary.</p><p>This behavior can be disabled on a per-note basis, by following the instructions of the next section.</p><p>In addition, it's possible to change the number of characters at which the automatic read-only mode will trigger in&nbsp;<a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a>&nbsp;by going to the options for&nbsp;<a class=\"reference-link\" href=\"#root/_hidden/_options/_optionsTextNotes\">Text Notes</a>&nbsp;and&nbsp;<a class=\"reference-link\" href=\"#root/_hidden/_options/_optionsCodeNotes\">Code Notes</a>.</p><h2>Changing a note's read-only behavior</h2><p>A note's read-only behavior can be changed via&nbsp;<a class=\"reference-link\" href=\"#root/_help_8YBEPzcpUgxw\">Note menu</a>&nbsp;→ <em>Editable.</em> The following options are possible:</p><ul><li><strong>Auto</strong><br>This is the default behavior in which the note will be editable by default, unless it becomes large enough to trigger read-only mode.</li><li><strong>Read-only</strong><br>The note will be always marked as read-only, regardless of its size. Nevertheless, it's still possible to temporarily edit the note if needed. This is generally useful for notes that are not prone to change.</li><li><strong>Always editable</strong><br>This option will bypass the automatic read-only activation for this particular note. It's useful for large notes that are frequently edited.</li></ul><p>If the <em>Editable</em> section is missing from the&nbsp;<a class=\"reference-link\" href=\"#root/_help_8YBEPzcpUgxw\">Note menu</a>, then the note type does not support read-only mode.</p><h3>Manually setting the options</h3><p>Apart from using the&nbsp;<a class=\"reference-link\" href=\"#root/_help_8YBEPzcpUgxw\">Note menu</a>&nbsp;as previously mentioned, it's also possible to use <a href=\"#root/_help_zEY4DaJG4YT5\">labels</a> to change the behavior:</p><ul><li>To set as read-only, apply the <code>readOnly</code> label to the note.</li><li>To disable automatic read-only (always editable), apply the <code>autoReadOnlyDisabled</code> label.</li></ul><h2>Temporarily editing a read-only note</h2><p>When accessing a read-only note, it's possible to temporarily edit it pressing the <em>Read-only</em> badge.</p><p>When pressed, the note will become editable but will become read-only again after navigating to a different note.</p><p>The pages of the built-in user guide are an exception: they are part of Trilium itself and cannot be edited, not even temporarily. Their <em>Read-only</em> badge cannot be pressed, the note menu does not offer to edit them, and their attributes are shown in the right sidebar without a way to change them.</p>",
"_help_0ESUbbAxVnoK": "<figure class=\"image\"><img style=\"aspect-ratio:990/590;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/Notes/Note%20List_image.png\" width=\"990\" height=\"590\"></figure><p>When a note has one or more child notes, they will be listed at the end of the note for easy navigation.</p><h2>Configuration</h2><ul><li>To hide the note list for a particular note, simply apply the <code>hideChildrenOverview</code> <a href=\"#root/_help_zEY4DaJG4YT5\">label</a>.</li><li>For some view types, such as Grid view, only a subset of notes will be displayed and pagination can be used to navigate through all of them for performance reasons. To adjust the number of notes per page, set <code>pageSize</code> to the desired number.</li></ul><h2>View types</h2><p>The view types dictate how the child notes are represented. By default, the notes will be displayed in a grid, however there are also some other view types available.</p><p>Generally the view type can only be changed from the <a class=\"reference-link\" href=\"#root/_help_CssoWBu8I7jF\">Collection Properties</a>, but it can also be changed manually on any type of note using the <code>#viewType</code> <a href=\"#root/_help_HI6GBBIduIgv\">label</a>.</p><p>Saved searches use <em>Search preview</em> by default: it draws each result as a snippet card with the text and attributes that matched. It is limited to search notes and is described in&nbsp;<a class=\"reference-link\" href=\"#root/_help_eIg8jdvaoNNd\">Search</a>.</p>",
"_help_S0Fos78ZfcY7": "<p>The inbox is the default destination for quickly captured notes. When a note is created without picking a location first, it lands in the inbox. This makes it easy to quickly capture notes and sort them later.</p><h2>Where the inbox is used</h2><ul><li>The <em>New note</em> button in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>.</li><li>The global <em>Create note into inbox</em> shortcut (default <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>P</kbd>).</li><li>The <em>New note</em> action in the <a href=\"#root/_help_7iwde4lsKc6O\">tray icon menu</a>.</li><li>The&nbsp;<a class=\"reference-link\" href=\"#root/_help_MtPxeAWVAzMg\">Web Clipper</a>&nbsp;extension.</li><li>The <em>Create note</em> option offered when a search finds no match, in&nbsp;<a class=\"reference-link\" href=\"#root/_help_F1r9QtzQLZqm\">Jump to &amp; command palette</a>, in an empty tab and in the <code>@</code> completion of a text note.</li></ul><h2>Setting a note inbox</h2><p>To create a note inbox, apply the <code>#inbox</code> <a href=\"#root/_help_HI6GBBIduIgv\">label</a> to it.</p><p>Only one note should carry this label. If there are multiple notes, only one will be used by the application.</p><aside class=\"admonition note\"><p>If there is no inbox note, Trilium will fall back to today's <a href=\"#root/_help_l0tKav7yLHGF\">day note</a>, creating it and its calendar ancestors as needed. If the journal has been removed altogether, the note is created at the top level instead of a new journal being built for it.</p></aside><h2>Workspace inboxes</h2><p>Each <a href=\"#root/_help_9sRHySam5fXb\">workspace</a> can have its own inbox, set via the <code>#workspaceInbox</code> label.</p><p>When a new note is created while hoisted in a workspace, the location is determined in the following order:</p><ul><li>A note carrying the <code>#workspaceInbox</code> label in that workspace.</li><li>A note carrying the <code>#inbox</code> within that workspace.</li><li>Today's <a href=\"#root/_help_l0tKav7yLHGF\">day note</a>, if the workspace has a <code>#workspaceCalendarRoot</code>.</li><li>The workspace root note itself.</li></ul>",
- "_help_5Ct4MAJTS4tQ": "<p>Deleted notes are listed in the <em>Deleted Notes</em> dialog (<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a> → <em>Show deleted notes</em>) and can be restored by pressing the <em>undelete</em> link.</p><p>If a note has child notes, they will be restored along with it. Should the original location no longer exist (e.g. the parent has been deleted), the note will be restored into the default location for new notes (<a class=\"reference-link\" href=\"#root/_help_S0Fos78ZfcY7\">Note Inbox</a>).</p><aside class=\"admonition note\"><p>When a note is hoisted in the tree, the dialog will only display notes deleted from the subtree of that hoisted note.</p></aside><p>To permanently erase deleted notes and clear the list, press the three-dots menu and select <em>Erase deleted notes now</em>.</p><p>Deleted notes are permanently erased after a certain amount of time (7 days by default). To change this interval, press the three-dots menu and select <em>Deleted Notes Settings</em>.</p>",
+ "_help_5Ct4MAJTS4tQ": "<p>Deleted notes are listed in the <em>Deleted Notes</em> dialog (<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a> → <em>Deleted notes</em>) and can be restored by pressing the <em>undelete</em> link.</p><p>If a note has child notes, they will be restored along with it. Should the original location no longer exist (e.g. the parent has been deleted), the note will be restored into the default location for new notes (<a class=\"reference-link\" href=\"#root/_help_S0Fos78ZfcY7\">Note Inbox</a>).</p><aside class=\"admonition note\"><p>When a note is hoisted in the tree, the dialog will only display notes deleted from the subtree of that hoisted note.</p></aside><p>To permanently erase deleted notes and clear the list, press the three-dots menu and select <em>Erase deleted notes now</em>.</p><p>Deleted notes are permanently erased after a certain amount of time (7 days by default). To change this interval, press the three-dots menu and select <em>Deleted Notes Settings</em>.</p>",
"_help_m3VlURMSeOrd": "<p>When an empty&nbsp;<a class=\"reference-link\" href=\"#root/_help_iPIMuisry3hd\">Text</a>&nbsp;note is created, a note type switcher will appear below the&nbsp;inline&nbsp;<a class=\"reference-link\" href=\"#root/_help_l7pigIGu01K2\">Title</a>. Apart from changing the note type, it's also possible to apply a <a href=\"#root/_help_KC1HB96bqqHX\">template</a>:</p><ul><li><span class=\"tn-icon bx bxl-markdown\"></span>&nbsp;<em>Markdown</em> and&nbsp;<span class=\"tn-icon bx bx-pen\"></span> <em>Canvas</em> switch the note to that type in one click.</li><li><span class=\"tn-icon bx bx-code\"></span>&nbsp;<em>Code</em> lists the scripting notes (<em>Custom CSS</em>, <em>Widget</em> and <em>Backend script</em>), then the enabled code languages.</li><li><span class=\"tn-icon bx bx-book\"></span>&nbsp;<em>Collection</em> and <span class=\"tn-icon bx bx-copy-alt\"></span><em>Template</em> list the collections and the templates.</li><li><span class=\"tn-icon bx bx-dots-vertical-rounded\"></span>&nbsp;<em>All types</em> displays the same menu as <em>Insert note after</em> in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_YtSN43OrfzaA\">Note tree contextual menu</a>, with every note type and template.</li></ul><p>Typing while the&nbsp;<span class=\"tn-icon bx bx-code\"></span> <em>Code</em>,&nbsp;<span class=\"tn-icon bx bx-copy-alt\"></span> <em>Template</em> or&nbsp;<span class=\"tn-icon bx bx-dots-vertical-rounded\"></span> <em>All types</em> menu is open narrows it down to the matching entries.</p><p>The switcher will disappear as soon as a text is entered.</p><img src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/Notes/New%20note%20type%20switcher_image.png\" width=\"735\" height=\"143\">",
"_help_B5dihXRDksTk": "<p>Note badges appear near the fixed note title and indicate important information about the note such as whether it is read-only. Some of the badges are also interactive.</p><figure class=\"image\"><img style=\"aspect-ratio:910/49;\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/Notes/Note%20badges_image.png\" width=\"910\" height=\"49\"></figure><p>The following badges are available:</p><ul><li><span class=\"tn-icon bx bx-lock-alt\"></span>&nbsp;<strong>Read-only badge</strong>, which will be shown if the note is not editable due to either automatic read-only or manual read-only. Clicking on the badge will temporarily edit the note. On the pages of the built-in user guide, which cannot be edited, the badge does nothing when clicked.</li><li><span class=\"tn-icon bx bx-share-alt\"></span>&nbsp;<strong>Share badge</strong>, which will indicate that the current note is shared. The badge will also indicate if the share is on the local network (for the desktop application without&nbsp;<a class=\"reference-link\" href=\"#root/_help_cbkrhQjrkKrh\">Synchronization</a>&nbsp;set up) or publicly accessible (for the server).</li><li><span class=\"tn-icon bx bx-globe\"></span>&nbsp;<strong>Web clip badge</strong>, which will indicate if the note was clipped using the&nbsp;<a class=\"reference-link\" href=\"#root/_help_MtPxeAWVAzMg\">Web Clipper</a>. The badge acts as a link, so it can be clicked on to navigate to the page or right clicked for more options. When the clipper also saved the page's description, its author, or the dates it was published and last updated, clicking the badge shows these details instead, with a link to the page at the top.</li><li><span class=\"tn-icon bx bx-play\"></span>&nbsp;<strong>Execute badge</strong>, for <a href=\"#root/_help_CdNpE2pqjmI6\">scripts</a> or <a href=\"#root/_help_YKWqdJhzi2VY\">saved SQL queries</a> which have an execute button or a description.</li><li><span class=\"tn-icon bx bx-copy-alt\"></span> <strong>Template badge</strong>, for&nbsp;<a class=\"reference-link\" href=\"#root/_help_KC1HB96bqqHX\">Templates</a> (including workspace templates, for which the badge reads <em>Workspace template</em>). Notes created from a template inherit its attributes, so the badge is a reminder that changing them affects every such note. Clicking the badge switches the template between being offered everywhere and only while hoisted into its workspace, the latter only for a template inside a workspace (see&nbsp;<a class=\"reference-link\" href=\"#root/_help_9sRHySam5fXb\">Workspaces</a>). It also opens <em>Template properties...</em>, where the default title and location of new notes are set.</li><li>For&nbsp;<a class=\"reference-link\" href=\"#root/_help_YzMcWlCVeW09\">Active content</a>&nbsp;(e.g. scripts, styles), a dedicated badge will be shown indicating the type of note and with an option to easily enable or disable it.</li></ul>",
"_help_Bsm4fyzPJkSc": "<p><img class=\"image-style-align-right\" src=\"{{helpAssets}}/User%20Guide/Basic%20Concepts%20and%20Features/Notes/Save%20status%20indicator_image.png\" width=\"168\" height=\"47\">To the right of the note title, a temporary indicator appears after making a change to the document which shows whether the document has been saved.</p><p>It indicates the following states:</p><ul><li><span class=\"tn-icon bx bx-pencil\"></span>&nbsp;<em>Unsaved</em>, if the changes will be saved soon.</li><li><span class=\"tn-icon bx bx-loader\"></span>&nbsp;<em>Saving</em>, if the changes are being saved.</li><li><span class=\"tn-icon bx bx-check\"></span>&nbsp;<em>Saved</em>, if all the changes were successfully saved to the server.</li><li><span class=\"tn-icon bx bx-error\"></span>&nbsp;<em>Error</em>, if the changes could not be saved, for example due to a communication server with the server.</li></ul><p>After all changes have been saved, the indicator will hide automatically after a few seconds.</p>",
@@ -188,8 +188,8 @@
"_help_wy8So3yZZlH9": "<p>Go to <a href=\"https://github.com/TriliumNext/Trilium/issues\">Issues · TriliumNext/Trilium</a> and press “New issue”.</p><p>If you are reporting a bug, select “Bug Report” and fill in the details.</p>",
"_help_x59R8J8KV5Bp": "<p><img src=\"{{helpAssets}}/User%20Guide/Troubleshooting/Anonymized%20Database_image.jpg\"></p><p>In certain scenarios, understanding the structure of a database is crucial for troubleshooting issues. However, sharing your actual <a href=\"#root/_help_wX4HbRucYSDD\">database</a> file with personal notes is not advisable. To address this, Trilium offers a feature to anonymize the database. This feature can be accessed via Menu -&gt; Options -&gt; Advanced tab.</p><p>This feature creates a copy of your database with all sensitive data removed. Specifically, it strips out note titles, contents, revisions, history, and some non-system attributes while retaining the overall structure and metadata, such as modification dates. After anonymization, the database undergoes a <a href=\"https://sqlite.org/lang_vacuum.html\">vacuuming process</a> to ensure no sensitive data remnants remain in the file. The anonymized database is saved in the <code>anonymized</code> directory within the <a href=\"#root/_help_tAassRL4RSQL\">data directory</a>, making it safe to share with bug reports.</p><p>This will create a copy of your document and remove all sensitive data (currently note titles, contents, revisions, history and some of the options, and non-system attributes) while leaving all structure and metadata (e.g. date of last change). After this is done, the database is <a href=\"https://sqlite.org/lang_vacuum.html\">VACUUMed</a> to make sure there's no stale sensitive data in the document file. The resulting file is stored in <code>anonymized</code> directory (placed in the <a href=\"#root/_help_tAassRL4RSQL\">data directory</a>). You can safely attach it to a bug report.</p><h2>Command Line Anonymization</h2><p>If your <a href=\"#root/_help_wX4HbRucYSDD\">database</a> is corrupted to the point where Trilium cannot start, the anonymization process can still be executed via the command line:</p><pre><code class=\"language-text-x-trilium-auto\">node src/anonymize.js</code></pre><p>Run this command from the directory containing Trilium's source files, typically found in the <code>resources/app</code> directory for desktop builds.</p>",
"_help_qzNzp9LYQyPT": "<p>It's important to provide all available error logs together with bug reports.</p><p>There are two types of error logs, both of which are useful when reporting bugs.</p><ul><li><a class=\"reference-link\" href=\"#root/_help_bnyigUA2UK7s\">Backend (server) logs</a></li><li><a class=\"reference-link\" href=\"#root/_help_9yEHzMyFirZR\">Frontend logs</a></li></ul><h2>Providing sensitive data</h2><p>If you don't feel comfortable attaching the logs or anything sensitive to the public GitHub issues, feel free to contact the devs in our Matrix <a href=\"https://github.com/TriliumNext/Trilium#-discuss-with-us\">support channel</a>.</p><p>Use this email to also provide anything which could assist in analysing the bug - e.g. files/images/ZIPs being imported or <a href=\"#root/_help_x59R8J8KV5Bp\">anonymized database</a>.</p><h3>Exporting note subtree for reproduction</h3><p>Often times, bugs manifest themselves in specific notes and having them would greatly ease reproduction and fixing.</p><p>In such case, please export the relevant note subtree by right-clicking it on the left tree, choosing Export - HTML as ZIP:</p><p><img src=\"{{helpAssets}}/User%20Guide/Troubleshooting/Error%20logs_error-logs-export-subtree.png\"></p>",
- "_help_bnyigUA2UK7s": "<h2>Accessing via the backend log</h2><p>In the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>, go to <em>Advanced</em> → <em>Show backend log</em>. This will display the current backend log (i.e. today's), with the historical information available only on disk (see below).</p><p>The log is colored to make it easier to read: request status codes by class, slow SQL queries, and errors in red. The statement of a slow SQL query is highlighted the same way as in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_YKWqdJhzi2VY\">SQL Console</a>, using the color scheme of code notes (see <em>Color schemes</em> in&nbsp;<a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a>).</p><p>A search that the app runs in the background, for example to filter a collection, or that a script runs is followed by a <code>Search:</code> line with its query and the number of notes it returned. The query is highlighted the same way as in a&nbsp;<a class=\"reference-link\" href=\"#root/_help_m523cpzocqaD\">Saved Search</a>. Quick search and saved searches don't add this line.</p><p>Interaction since v0.104.0:</p><ul><li>The file can be downloaded as a text file using the&nbsp;<span class=\"tn-icon bx bx-download\"></span> button in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_8YBEPzcpUgxw\">Note menu</a>&nbsp;area.</li><li>The file can also be searched just like a normal&nbsp;<a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a>&nbsp;note.</li></ul><h2>Location on the disk</h2><p>Backend logs are stored on the file system. To find them, open the&nbsp;<a class=\"reference-link\" href=\"#root/_help_tAassRL4RSQL\">Data directory</a>, go to the <code>log</code> subdirectory and find the latest log file, e.g. <code>trilium-2022-12-14.log</code>.&nbsp;</p><h2>In the terminal</h2><p>The server also prints every log entry to its standard output, which is what <code>docker logs</code> or <code>journalctl</code> show. When that output is a terminal, each entry starts with its time and is colored like the backend log in the app: request status codes by class, slow SQL queries, and errors in red. The statement of a slow SQL query and the query of a search are shown without syntax highlighting there. The startup banner with the Trilium logo and version information is colored too. Output to a file, a pipe or a container log stays plain text without the time, since those tools add their own.</p><p>To turn the colors off in a terminal, set the <code>NO_COLOR</code> environment variable; to force them on elsewhere, set <code>FORCE_COLOR=1</code>.</p><h2>Reporting backend bugs</h2><p>You can attach the whole file to the bug report (preferable) or open it and copy-paste only the last lines / lines you believe are relevant.</p><h2>Customizing the retention of logs</h2><p>The backend logs are fully managed by the Trilium server. By default the last 90 days worth of logs are kept; the logs older than that are deleted in order to reduce the space consumption.</p><p>It's possible to change the retention period by modifying the&nbsp;<a class=\"reference-link\" href=\"#root/_help_Gzjqa934BdH4\">Configuration (config.ini or environment variables)</a>&nbsp;via the <code>.ini</code> file:</p><pre><code class=\"language-text-x-trilium-auto\">[Logging]\nretentionDays=7</code></pre><p>Or via the environment variable <code>TRILIUM_LOGGING_RETENTION_DAYS</code>.</p><p>Special cases:</p><ul><li>Positive values indicate the number of days worth of logs to keep</li><li>A value of 0 results with the default value (90 days) to be used</li><li>Negative values (e.g. <code>-1</code>) result with all logs to be kept, irrespective how ancient and numerous (and</li></ul><aside class=\"admonition note\"><p>If you set the retention days to a low number, you might notice that not all the log files are being deleted. This is because a minimum number of logs (7 at the time of writing) is maintained at all times.</p></aside>",
- "_help_9yEHzMyFirZR": "<p>To provide frontend logs, we need to open the Developer Console. Often the easiest way is to press <kbd>Ctrl</kbd>-<kbd>Shift</kbd>-<kbd>I</kbd> which should work in most browsers (and desktop app). Make sure that the error producing action happened right before you copy&amp;paste the errors, the console is cleared on app restart.</p><p>If that doesn't work, then:</p><ul><li>in Trilium desktop app, go to top-left menu button -&gt; Advanced -&gt; Open dev tools</li><li>In Firefox/Chrome right-click anywhere in the page and click Inspect:</li></ul><p><img src=\"{{helpAssets}}/User%20Guide/Troubleshooting/Error%20logs/Frontend%20logs_error-logs-firefox-context-men.png\"></p><p>Once you have Dev Tools open, click on \"Console\" tab:</p><p><img src=\"{{helpAssets}}/User%20Guide/Troubleshooting/Error%20logs/Frontend%20logs_image.jpg\"></p><p>Copy-paste (or screenshot) the logs. It's better to provide not just errors, but the whole log, which might provide context while analyzing the bug.</p>",
+ "_help_bnyigUA2UK7s": "<h2>Accessing via the backend log</h2><p>In the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>, go to <em>Advanced</em> → <em>Backend log</em>. This will display the current backend log (i.e. today's), with the historical information available only on disk (see below).</p><p>The log is colored to make it easier to read: request status codes by class, slow SQL queries, and errors in red. The statement of a slow SQL query is highlighted the same way as in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_YKWqdJhzi2VY\">SQL Console</a>, using the color scheme of code notes (see <em>Color schemes</em> in&nbsp;<a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a>).</p><p>A search that the app runs in the background, for example to filter a collection, or that a script runs is followed by a <code>Search:</code> line with its query and the number of notes it returned. The query is highlighted the same way as in a&nbsp;<a class=\"reference-link\" href=\"#root/_help_m523cpzocqaD\">Saved Search</a>. Quick search and saved searches don't add this line.</p><p>Interaction since v0.104.0:</p><ul><li>The file can be downloaded as a text file using the&nbsp;<span class=\"tn-icon bx bx-download\"></span> button in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_8YBEPzcpUgxw\">Note menu</a>&nbsp;area.</li><li>The file can also be searched just like a normal&nbsp;<a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a>&nbsp;note.</li></ul><h2>Location on the disk</h2><p>Backend logs are stored on the file system. To find them, open the&nbsp;<a class=\"reference-link\" href=\"#root/_help_tAassRL4RSQL\">Data directory</a>, go to the <code>log</code> subdirectory and find the latest log file, e.g. <code>trilium-2022-12-14.log</code>.&nbsp;</p><h2>In the terminal</h2><p>The server also prints every log entry to its standard output, which is what <code>docker logs</code> or <code>journalctl</code> show. When that output is a terminal, each entry starts with its time and is colored like the backend log in the app: request status codes by class, slow SQL queries, and errors in red. The statement of a slow SQL query and the query of a search are shown without syntax highlighting there. The startup banner with the Trilium logo and version information is colored too. Output to a file, a pipe or a container log stays plain text without the time, since those tools add their own.</p><p>To turn the colors off in a terminal, set the <code>NO_COLOR</code> environment variable; to force them on elsewhere, set <code>FORCE_COLOR=1</code>.</p><h2>Reporting backend bugs</h2><p>You can attach the whole file to the bug report (preferable) or open it and copy-paste only the last lines / lines you believe are relevant.</p><h2>Customizing the retention of logs</h2><p>The backend logs are fully managed by the Trilium server. By default the last 90 days worth of logs are kept; the logs older than that are deleted in order to reduce the space consumption.</p><p>It's possible to change the retention period by modifying the&nbsp;<a class=\"reference-link\" href=\"#root/_help_Gzjqa934BdH4\">Configuration (config.ini or environment variables)</a>&nbsp;via the <code>.ini</code> file:</p><pre><code class=\"language-text-x-trilium-auto\">[Logging]\nretentionDays=7</code></pre><p>Or via the environment variable <code>TRILIUM_LOGGING_RETENTION_DAYS</code>.</p><p>Special cases:</p><ul><li>Positive values indicate the number of days worth of logs to keep</li><li>A value of 0 results with the default value (90 days) to be used</li><li>Negative values (e.g. <code>-1</code>) result with all logs to be kept, irrespective how ancient and numerous (and</li></ul><aside class=\"admonition note\"><p>If you set the retention days to a low number, you might notice that not all the log files are being deleted. This is because a minimum number of logs (7 at the time of writing) is maintained at all times.</p></aside>",
+ "_help_9yEHzMyFirZR": "<p>To provide frontend logs, we need to open the Developer Console. Often the easiest way is to press <kbd>Ctrl</kbd>-<kbd>Shift</kbd>-<kbd>I</kbd> which should work in most browsers (and desktop app). Make sure that the error producing action happened right before you copy&amp;paste the errors, the console is cleared on app restart.</p><p>If that doesn't work, then:</p><ul><li>in Trilium desktop app, go to top-left menu button -&gt; Advanced -&gt; Developer tools</li><li>In Firefox/Chrome right-click anywhere in the page and click Inspect:</li></ul><p><img src=\"{{helpAssets}}/User%20Guide/Troubleshooting/Error%20logs/Frontend%20logs_error-logs-firefox-context-men.png\"></p><p>Once you have Dev Tools open, click on \"Console\" tab:</p><p><img src=\"{{helpAssets}}/User%20Guide/Troubleshooting/Error%20logs/Frontend%20logs_image.jpg\"></p><p>Copy-paste (or screenshot) the logs. It's better to provide not just errors, but the whole log, which might provide context while analyzing the bug.</p>",
"_help_vdlYGAcpXAgc": "<p>Synchronization can sometimes take a long amount of time in order to compute the items that require update. When running behind a reverse proxy, the request can time out.</p><p>The solution is to increase the timeout at proxy level.</p><h2>Nginx</h2><p>Add the following to the configuration file:</p><pre><code class=\"language-text-x-nginx-conf\">proxy_connect_timeout 300;\nproxy_send_timeout 300;\nproxy_read_timeout 300;\nsend_timeout 300;</code></pre><p>And restart the server.</p><p>See&nbsp;<a href=\"#root/_help_ud6MShXL4WpO\">Nginx Proxy Setup</a>&nbsp;for more information about the Nginx setup.</p><p>If it still doesn't work, try increasing the timeout.</p>",
"_help_s8alTXmpFR61": "<p>Some changes to the application will not take effect immediately and as such it might require to manually reload or refresh the application.</p><p>To do so, simply press <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>R</kbd>.</p>",
"_help_7NfNr5pZpVKV": "<h2>Step 1. Find a place to place the themes</h2><p>Organization is an important aspect of managing a knowledge base. When developing a new theme or importing an existing one it's a good idea to keep them into one place.</p><p>As such, the first step is to create a new note to gather all the themes.</p><p><img src=\"{{helpAssets}}/User%20Guide/Theme%20development/Creating%20a%20custom%20theme_5_Creating%20a%20custom%20theme_im.jpg\"></p><h2>Step 2. Create the theme</h2><figure class=\"table\"><table><tbody><tr><td><img src=\"{{helpAssets}}/User%20Guide/Theme%20development/Creating%20a%20custom%20theme_3_Creating%20a%20custom%20theme_im.jpg\"></td><td>Themes are code notes with a special attribute. Start by creating a new code note.</td></tr><tr><td><img src=\"{{helpAssets}}/User%20Guide/Theme%20development/Creating%20a%20custom%20theme_1_Creating%20a%20custom%20theme_im.jpg\"></td><td>Then change the note type to a CSS code.</td></tr><tr><td><img src=\"{{helpAssets}}/User%20Guide/Theme%20development/Creating%20a%20custom%20theme_Creating%20a%20custom%20theme_im.jpg\"></td><td>In the attributes of the note (the&nbsp;<span class=\"tn-icon bx bx-list-check\"></span> button in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_AlJ73vBCjWDw\">Status bar</a>), define the <code>#appTheme</code> attribute to point to any desired name. This is the name that will show up in the appearance section in settings.</td></tr></tbody></table></figure><h2>Step 3. Define the theme's CSS</h2><p>As a very simple example we will change the background color of the launcher pane to a shade of blue.</p><p>To alter the different variables of the theme:</p><pre><code class=\"language-text-css\">:root {\n\t--launcher-pane-background-color: #0d6efd;\n}</code></pre><h2>Step 4. Activating the theme</h2><p>Refresh the application (Ctrl+Shift+R is a good way to do so) and go to settings. You should see the newly created theme:</p><p><img src=\"{{helpAssets}}/User%20Guide/Theme%20development/Creating%20a%20custom%20theme_2_Creating%20a%20custom%20theme_im.jpg\"></p><p>Afterwards the application will refresh itself with the new theme:</p><p><img src=\"{{helpAssets}}/User%20Guide/Theme%20development/Creating%20a%20custom%20theme_4_Creating%20a%20custom%20theme_im.jpg\"></p><p>Do note that the theme will be based off of the legacy theme. To override that and base the theme on the Modern theme, see&nbsp;<a class=\"reference-link\" href=\"#root/_help_WFGzWeUK6arS\">Customize the Next theme</a>.</p><h2>Step 5. Making changes</h2><p>Simply go back to the note and change according to needs. To apply the changes to the current window, press <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>R</kbd> to refresh.</p><p>It's a good idea to keep two windows, one for editing and the other one for previewing the changes.</p>",
@@ -207,7 +207,7 @@
"_help_VQjhl61rlWh9": "<p>Markdown Snippets are closely related to&nbsp;<a class=\"reference-link\" href=\"#root/_help_KC1HB96bqqHX\">Templates</a>, but instead of defining the content of an entire note, a snippet is a reusable piece of Markdown text that can easily be inserted into a&nbsp;<a class=\"reference-link\" href=\"#root/_help_6RM1Q7ppFVoj\">Markdown</a>&nbsp;note.</p><h2>Creating a Markdown snippet</h2><p>In the&nbsp;<a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>: </p><ol><li>Right-click the note where you want to place the snippet.</li><li>Select <em>Insert child note</em>.</li><li>Select <em>More</em> → <em>Markdown snippet</em>.</li></ol><p>Then simply type the desired content into the note.</p><p>The note's title becomes the title of the snippet. Optionally, you can add a description in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_OFXdgB2nNk1F\">Promoted Attributes</a>&nbsp;section.</p><h2>Inserting a snippet</h2><p>To insert a snippet, type <code>/snippet</code> and select its title from the dropdown.</p><p><a class=\"reference-link\" href=\"#root/_help_IEgsWp5hHH35\">Code Snippets</a>&nbsp;with their language mode set to \"Plain text\" are also listed here.</p><h2>Limitations</h2><ul><li>Unlike&nbsp;<a class=\"reference-link\" href=\"#root/_help_KC1HB96bqqHX\">Templates</a>, snippets cannot be limited to a particular <a href=\"#root/_help_9sRHySam5fXb\">workspace</a>.</li></ul>",
"_help_IEgsWp5hHH35": "<p>Code Snippets are closely related to&nbsp;<a class=\"reference-link\" href=\"#root/_help_KC1HB96bqqHX\">Templates</a>, but instead of defining the content of an entire note, a snippet is a reusable piece of code that can easily be inserted into a&nbsp;<a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a>&nbsp;note.</p><h2>Creating a Code snippet</h2><p>In the&nbsp;<a class=\"reference-link\" href=\"#root/_help_oPVyFC7WL2Lp\">Note Tree</a>: </p><ol><li>Right-click the note where you want to place the snippet.</li><li>Select <em>Insert child note</em>.</li><li>Select <em>More</em> → <em>Code snippet</em>.</li></ol><p>Then simply type the desired code into the note and set the correct language mode.</p><p>The note's title becomes the title of the snippet. Optionally, you can add a description in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_OFXdgB2nNk1F\">Promoted Attributes</a>&nbsp;section.</p><h2>Inserting a snippet</h2><p>To insert a snippet, type <kbd>/</kbd> followed by the first letters of its title, then select it from the list. Typing <code>/snippet</code> lists every snippet available in the note. This also works in an included code or Markdown note that is being edited in place, see <a class=\"reference-link\" href=\"#root/_help_nBAXQFj20hS1\">Include Note</a>.</p><aside class=\"admonition important\"><p>Only code snippets whose language mode matches the current code note are listed. For example, a CSS code note shows only CSS snippets, not JavaScript ones. The exception is snippets set to \"Plain text\", which are available in&nbsp;<a class=\"reference-link\" href=\"#root/_help_6RM1Q7ppFVoj\">Markdown</a>&nbsp;notes and any code note regardless of its language mode.</p></aside><h2>Limitations</h2><ul><li>Unlike&nbsp;<a class=\"reference-link\" href=\"#root/_help_KC1HB96bqqHX\">Templates</a>, snippets cannot be limited to a particular <a href=\"#root/_help_9sRHySam5fXb\">workspace</a>.</li></ul>",
"_help_BCkXAVs63Ttv": "<p>Note map is a visualization of connections between notes. This provides an insight into a structure (\"web\") of notes.</p><p>There are two types of note map:</p><ul><li>Link Map, which shows relations between notes.</li><li>Note Map, which shows the hierarchical tree structure.</li></ul><h2>Accessing the note map</h2><p>The note map comes into multiple flavors:</p><ul><li>The note map is available in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_KRlZFoIH0j6p\">Connections tab</a>&nbsp;in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_RnaPdbciOfeq\">Right Sidebar</a>, in the <em>Note map</em> section.<ul><li>It can also be accessed by going to&nbsp;<a class=\"reference-link\" href=\"#root/_help_8YBEPzcpUgxw\">Note menu</a>&nbsp;→ <em>Note map</em>, which will focus the sidebar at the right section.</li></ul></li><li>To display a full-screen note map, there is a <a href=\"#root/_help_bdUJEHsAPYQR\">dedicated note type</a> with the same name.</li><li>To view the global note map (of all the notes in the knowledge base), there is a dedicated <em>Note map</em> button in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>.</li></ul><h2>Terminology and structure</h2><ul><li>Each note is represented as a <em>node</em> in the graph, with the title displayed underneath.<ul><li>When the map is zoomed out, the title can still be viewed by hovering over the node.</li><li>The <a href=\"#root/_help_p9kXRFAkwN4o\">icon and color</a> of the note are respected.</li></ul></li><li>The root node is the reference point for which the relations and hierarchical structure are displayed.<ul><li>When accessing the note map through the&nbsp;<a class=\"reference-link\" href=\"#root/_help_RnaPdbciOfeq\">Right Sidebar</a>, the root node is the current note.</li><li>When using a dedicated&nbsp;<a class=\"reference-link\" href=\"#root/_help_bdUJEHsAPYQR\">Note Map</a>&nbsp;note, the root note can be either the parent note, the currently <a href=\"#root/_help_OR8WJ7Iz9K4U\">hoisted</a> note or a specific note. See the note type documentation for more information.</li></ul></li></ul><h2>Interaction</h2><ul><li>Nodes can be dragged around, but they will return to their original position once released.<ul><li>To have the notes remain in the same position as they were dragged, press the <em>Fix nodes</em> button. The position of the notes is not saved, so it will return to normal once you navigate to another note or restart the application.</li></ul></li><li>When hovering over a node, the adjacent relations and nodes are highlighted.</li><li>The distance between nodes can be adjusted via the slider in the bottom-left. Similarly, this value is not saved.</li><li>To zoom, use the mouse wheel, pinch on a touch screen, or press the <span class=\"tn-icon bx bx-plus-circle\"></span> and <span class=\"tn-icon bx bx-minus-circle\"></span> buttons in the bottom-right corner.<ul><li>To bring the whole map back into view, press the <span class=\"tn-icon bx bx-scan\"></span> <em>Fit to view</em> button next to them.</li><li>The zoom buttons are not shown on mobile, where pinching zooms instead. The <em>Fit to view</em> button is always shown.</li></ul></li><li><a class=\"reference-link\" href=\"#root/_help_MKmLg5x6xkor\">Archived Notes</a>&nbsp;are generally ignored by the note map in order to reduce clutter. There is one exception: if the root note is also archived, then all archived notes are displayed too.</li></ul><h2>Link Map</h2><img src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Note%20Map%20(Link%20map%2C%20Tree%20map)_image.png\" width=\"1425\" height=\"1093\"><p>The link map is a visualization of links and&nbsp;<a class=\"reference-link\" href=\"#root/_help_Cq5X6iKQop6R\">Relations</a>&nbsp;incoming to and outgoing from a particular note.</p><p>The map indicates the following types of relations:</p><ul><li><a class=\"reference-link\" href=\"#root/_help_hrZ1D00cLbal\">Internal (reference) links</a>&nbsp;between notes.</li><li><a class=\"reference-link\" href=\"#root/_help_Cq5X6iKQop6R\">Relations</a></li></ul><p>The link map will also show unlinked notes that are part of the hierarchy as a cloud of unconnected dots. On the&nbsp;<a class=\"reference-link\" href=\"#root/_help_RnaPdbciOfeq\">Right Sidebar</a>&nbsp;deliberately omits this in order to save some space, but they will be revealed once the map is maximized.</p><h2>Tree Map</h2><p>Shows hierarchical map of notes:</p><figure class=\"image\"><img style=\"aspect-ratio:1420/1490;\" src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/1_Note%20Map%20(Link%20map%2C%20Tree%20map)_image.png\" width=\"1420\" height=\"1490\"></figure><h2>See also</h2><ul><li>Apart from the note map feature which can be accessed from any note, it is also possible to create a dedicated note which will display the relations in full screen. See&nbsp;<a class=\"reference-link\" href=\"#root/_help_bdUJEHsAPYQR\">Note Map</a>&nbsp;for more information.</li><li><a class=\"reference-link\" href=\"#root/_help_iRwzGnHPzonm\">Relation Map</a>&nbsp;is a similar concept, with some differences:<ul><li>note map is automatically generated while relation map must be created manually</li><li>relation map is a type of note while a link map is just virtual visualization</li></ul></li></ul>",
- "_help_R9pX4DGra2Vt": "<p>Trilium allows you to share selected notes as <strong>publicly accessible</strong> read-only documents. This feature is particularly useful for publishing content directly from your Trilium notes, making it accessible to others online.</p><figure class=\"image\"><img style=\"aspect-ratio:1144/660;\" src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Sharing_image.png\" width=\"1144\" height=\"660\"></figure><h2>Features, interaction and limitations</h2><ul><li>Searching by note title.</li><li>Light and dark mode, following the visitor's system setting by default, also while the page is open. The visitor can pick <em>Light</em>, <em>Dark</em> or <em>System</em> with the buttons at the top of the navigation pane; the choice is remembered by the browser.</li><li>A layout centered on wide screens, with the navigation tree and the table of contents at either side of the content, and a mobile-friendly layout on narrow ones. There, the navigation tree slides in from the menu button in the header, and lists the headings of the current page below its entry (at the top of the pane, for a page the tree does not show).</li><li>Collapsible tree with the same note icons as the application. It keeps the sections the visitor expanded and its scroll position while they move between the pages of the site, and shows the current note.</li><li>Customizable logo.</li><li>Quick navigation buttons (previous and next note).</li><li>Notes that hide their children from the tree with <code>#subtreeHidden</code> (such as a <a class=\"reference-link\" href=\"#root/_help_CtBQqbwXDx1w\">Kanban Board</a>) show a badge counting them in place of listing them. The page of one of those children shows only that child below its parent, and the previous and next buttons skip them.</li><li>The subpages of a text or code note shown below its content as cards, as in the application. Each card shows the icon of the subpage and the start of its text (or its <code>#shareDescription</code>), or, for a subpage without text, links to its own first subpages. The cards can be hidden with <code>#hideChildrenOverview</code>.</li><li>Displaying the date of the last update of the note, written out in the application's language.</li><li>Marking the page with the application's language and its text direction, and the content of the note with its own <a href=\"#root/_help_veGu4faJErEM\">content language</a>, for screen readers and right-to-left text.</li></ul><h3>By note type</h3><figure class=\"table\"><table class=\"ck-table-resized\"><colgroup><col style=\"width:19.92%;\"><col style=\"width:41.66%;\"><col style=\"width:38.42%;\"></colgroup><thead><tr><th>&nbsp;</th><th>Supported features</th><th>Limitations</th></tr></thead><tbody><tr><th><a class=\"reference-link\" href=\"#root/_help_iPIMuisry3hd\">Text</a></th><td><ul><li>Table of contents, keeping the inline formatting of the headings, such as code or bold text.</li><li>A link next to each heading, shown while the pointer is over the heading. Clicking it shows the address of the section in the address bar of the browser and copies it, to share a link to the section.</li><li>Syntax highlight of code blocks, in the language selected for each block and in the colors of the VS Code light or dark theme, following the page's mode. For “Auto-detected” blocks, the language is guessed among the ones enabled in <a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> → <em>Code Notes</em>; a language not enabled there is not highlighted.</li><li>A button in the top right corner of each code block, shown while the pointer is over the block, that copies its code. Pages opened over plain HTTP do not have it, since browsers allow copying to the clipboard only on secure (HTTPS) pages.</li><li>Rendering for math equations.</li><li><a href=\"#root/_help_nBAXQFj20hS1\">Including notes</a> (only if the included notes are also shared).</li><li>Drawing canvases, shown as pictures at their own size.</li><li>Mermaid diagrams in code blocks, drawn in the page's light or dark mode and redrawn when the visitor switches it.</li></ul></td><td>&nbsp;</td></tr><tr><th><a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a></th><td><ul><li>Syntax highlight, in the language of the note and in the colors of the VS Code light or dark theme, following the page's mode. A language not enabled in&nbsp;<a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a>&nbsp;→ <em>Code Notes</em> is not highlighted. The lines are numbered unless <em>Line numbers</em> is turned off in the same section.</li></ul></td><td>&nbsp;</td></tr><tr><th><a class=\"reference-link\" href=\"#root/_help_m523cpzocqaD\">Saved Search</a></th><td>Not supported.</td><td>&nbsp;</td></tr><tr><th><a class=\"reference-link\" href=\"#root/_help_iRwzGnHPzonm\">Relation Map</a></th><td>Not supported.</td><td>&nbsp;</td></tr><tr><th><a class=\"reference-link\" href=\"#root/_help_bdUJEHsAPYQR\">Note Map</a></th><td>Not supported.</td><td>&nbsp;</td></tr><tr><th><a class=\"reference-link\" href=\"#root/_help_HcABDtFCkbFN\">Render Note</a></th><td>Not supported.</td><td>&nbsp;</td></tr><tr><th><a class=\"reference-link\" href=\"#root/_help_GTwFsgaA0lCt\">Collections</a></th><td><ul><li>The child notes are shown as cards, or as a list when the view type of the collection is <em>List</em>. Each shows its icon and the start of its text (or its <code>#shareDescription</code>), or, for a child note without text, links to its own first child notes.</li></ul></td><td><ul><li>The calendar, table, board, geo map, dashboard and presentation view types are shown as in the app, but read-only.</li></ul></td></tr><tr><th><a class=\"reference-link\" href=\"#root/_help_s1aBHPd79XYj\">Mermaid Diagrams</a></th><td><ul><li>The diagram is drawn in the page's light or dark mode and redrawn when the visitor switches it. In browsers with JavaScript disabled, the image saved when the note was last edited is shown instead, and the source of the diagram can be expanded below it.</li><li>The diagram fills the page and can be zoomed with the <span class=\"tn-icon bx bx-minus-circle\"></span> and <span class=\"tn-icon bx bx-plus-circle\"></span> buttons in its bottom corner or with the mouse wheel, between 50% and 1000% of its fitted size, and on touch screens by pinching. Clicking the percentage between the buttons, or double-clicking the diagram, shows it whole again. The diagram can be panned by dragging it.</li></ul></td><td>&nbsp;</td></tr><tr><th><a class=\"reference-link\" href=\"#root/_help_grjYqerjn243\">Canvas</a></th><td><ul><li>The diagram is displayed as a vector image.</li></ul></td><td><ul><li>No further interaction supported.</li></ul></td></tr><tr><th><a class=\"reference-link\" href=\"#root/_help_1vHRoWCEjj0L\">Web View</a></th><td>Not supported.</td><td>&nbsp;</td></tr><tr><th><a class=\"reference-link\" href=\"#root/_help_gBbsAeiuUxI5\">Mind Map</a></th><td>The diagram is displayed as a vector image.</td><td><ul><li>No further interaction supported.</li></ul></td></tr><tr><th><a class=\"reference-link\" href=\"#root/_help_81SGnPGMk7Xc\">Geo Map</a></th><td>Not supported.</td><td>&nbsp;</td></tr><tr><th><a class=\"reference-link\" href=\"#root/_help_W8vYD3Q1zjCR\">File</a></th><td>Basic interaction (downloading the file).</td><td><ul><li>No further interaction supported.</li></ul></td></tr></tbody></table></figure><p>While the sharing feature is powerful, it has some limitations:</p><ul><li><strong>Static Note Tree</strong></li><li><strong>Protected Notes</strong>: Cannot be shared.</li><li><strong>Include Notes</strong>: Not supported.</li></ul><p>Some of these limitations may be addressed in future updates.</p><h2>Prerequisites</h2><p>To use the sharing feature, you must have a&nbsp;<a class=\"reference-link\" href=\"#root/_help_WOcw2SLH6tbX\">Server Installation</a>&nbsp;of Trilium. This is necessary because the notes will be hosted from the server.</p><h2>Sharing a note</h2><ol><li><p><strong>Enable Sharing</strong>: To share a note, toggle the <code>Shared</code> switch within the note's interface. Once sharing is enabled, an URL will appear, which you can click to access the shared note.</p><p><img src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Sharing_share-single-note.png\" alt=\"Share Note\"></p></li><li><p><strong>Access the Shared Note</strong>: The link provided will open the note in your browser. If your server is not configured with a public IP, the URL will refer to <code>localhost (127.0.0.1)</code>.</p></li></ol><h2>Sharing a note subtree</h2><p>When you share a note, you actually share the entire subtree of notes beneath it. If the note has child notes, they will also be included in the shared content. For example, sharing the \"Formatting\" subtree will display a page with basic navigation for exploring all the notes within that subtree.</p><h2>Viewing and managing shared notes</h2><p>You can view a list of all shared notes by clicking on <em>Advanced</em> → \"Show shared notes subtree\" in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>. This allows you to manage and navigate through all the notes you have made public.</p><h2>Security considerations</h2><ul><li>Shared notes are published on the open internet and can be accessed by anyone with the URL unless the notes are password-protected.</li><li>The URL's randomness does not provide security, so it is crucial not to share sensitive information through this feature.</li><li>Trilium takes precautions to protect your publicly shared instance from leaking information for non-shared notes, including opening a separate read-only connection to the&nbsp;<a class=\"reference-link\" href=\"#root/_help_wX4HbRucYSDD\">Database</a>. Depending on your threat model, it might make more sense to use&nbsp;<a class=\"reference-link\" href=\"#root/_help_ycBFjKrrwE9p\">Exporting static HTML for web publishing</a>&nbsp;and use battle-tested web servers such as Nginx or Apache to serve static content.</li></ul><h3>Password protection</h3><p>To protect shared notes with a username and password, you can use the <code>#shareCredentials</code> attribute. Add this label to the note with the format <code>#shareCredentials=\"username:password\"</code>. To protect an entire subtree, make sure the label is <a href=\"#root/_help_bwZpz2ajCEwO\">inheritable</a>.</p><h2>Advanced sharing options</h2><h3>Customizing the appearance of shared notes</h3><p>The default design should be a good starting point, but you can customize it using your own CSS:</p><ul><li><strong>Custom CSS</strong>: Link a CSS&nbsp;<a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a>&nbsp;note to the shared page by adding a <code>~shareCss</code> relation to the note. If you want this style to apply to the entire subtree, make the label inheritable. You can hide the CSS code note from the tree navigation by adding the <code>#shareHiddenFromTree</code> label.</li><li><strong>Omitting Default CSS</strong>: For extensive styling changes, use the <code>#shareOmitDefaultCss</code> label to avoid conflicts with Trilium's <a href=\"#root/_help_Wy267RK4M69c\">default stylesheet</a>.</li></ul><h3>Adding JavaScript</h3><p>You can inject custom JavaScript into the shared note using the <code>~shareJs</code> relation. This allows you to access note attributes or traverse the note tree using the <code>fetchNote()</code> API, which retrieves note data based on its ID.</p><h3>Adding custom HTML</h3><p>You can inject custom HTML snippets into specific locations of the shared page using the <code>~shareHtml</code> relation. The HTML note should contain the raw HTML content you want to inject, and you can control where it appears by adding the <code>#shareHtmlLocation</code> label to the HTML snippet note itself.</p><p>The <code>#shareHtmlLocation</code> label accepts values in the format <code>location:position</code>:</p><ul><li><strong>Locations</strong>: <code>head</code>, <code>body</code>, <code>content</code></li><li><strong>Positions</strong>: <code>start</code>, <code>end</code></li></ul><p>For example:</p><ul><li><code>#shareHtmlLocation=head:start</code> - Injects HTML at the beginning of the <code>&lt;head&gt;</code> section</li><li><code>#shareHtmlLocation=head:end</code> - Injects HTML at the end of the <code>&lt;head&gt;</code> section (default)</li><li><code>#shareHtmlLocation=body:start</code> - Injects HTML at the beginning of the <code>&lt;body&gt;</code> section</li><li><code>#shareHtmlLocation=content:start</code> - Injects HTML at the beginning of the content area</li><li><code>#shareHtmlLocation=content:end</code> - Injects HTML at the end of the content area</li></ul><p>If no location is specified, the HTML will be injected at <code>content:end</code> by default.</p><p>Example:</p><pre><code class=\"language-text-javascript\">const currentNote = await fetchNote();\nconst parentNote = await fetchNote(currentNote.parentNoteIds[0]);\n\nfor (const attr of parentNote.attributes) {\n console.log(attr.type, attr.name, attr.value);\n}</code></pre><h3>Custom share templates</h3><p>To completely redesign the share, it is possible to create or use an existing <a href=\"#root/_help_Ad7Ku5gOHrDU\">custom share template</a>.</p><h3>Creating human-readable URL aliases</h3><p>Shared notes typically have URLs like <code>http://domain.tld/share/knvU8aJy4dJ7</code>, where the last part is the note's ID. You can make these URLs more user-friendly by adding the <code>#shareAlias</code> label to individual notes (e.g., <code>#shareAlias=highlighting</code>). This will change the URL to <code>http://domain.tld/share/highlighting</code>. The URL with the note's ID keeps working and redirects to the alias.</p><p><strong>Important</strong>:</p><ol><li>Ensure that aliases are unique.</li><li>Using slashes (<code>/</code>) within aliases to create subpaths is not supported.</li></ol><aside class=\"admonition tip\"><ul><li>To easily identify pages that don't have a share alias, run a&nbsp;<a class=\"reference-link\" href=\"#root/_help_eIg8jdvaoNNd\">Search</a>&nbsp;with <code>#!shareAlias</code>.</li><li>To be able to enter the share alias faster, consider using&nbsp;<a class=\"reference-link\" href=\"#root/_help_OFXdgB2nNk1F\">Promoted Attributes</a>&nbsp;(for example <code>#label:shareAlias(inheritable)=\"promoted,alias=Slug,single,text\"</code>).</li></ul></aside><h3>Setting a custom favicon</h3><p>To customize the favicon for your shared pages, create a relation <code>~shareFavicon</code> pointing to a file note containing the favicon (e.g., in <code>.ico</code> format).</p><h3>Sharing a note as the root</h3><p>You can designate a specific note or folder as the root of your shared content by adding the <code>#shareRoot</code> label. This note will be linked when visiting <code>[http://domain.tld/share](http://domain/share)</code>, making it easier to use Trilium as a fully-fledged website.</p><aside class=\"admonition tip\"><p>Consider combining this with the <code>#shareIndex</code> label, which will display a list of all shared notes.</p></aside><h3>Displaying an index of shared notes</h3><p>When accessing a share, the sub-notes will be displayed in a tree on the left. But since multiple note trees can be shared, it might be useful to display a list of all the different share trees.</p><p>To do so, create a shared text note and apply the <code>shareIndex</code> label. When viewed, the list of shared roots will be displayed at the bottom of the note.</p><h3>Linking to an external website</h3><p>Sometimes it's useful to include a link to an external website alongside your shared notes — for example in the shared navigation or in an index. To do so, add the <code>#shareExternalLink</code> label to a note, with the target URL as its value (e.g. <code>#shareExternalLink=\"https://example.com\"</code>).</p><p>Any link pointing to this note will then redirect to the external website and open in a new browser tab, instead of opening the note's own shared page. Opening the note's shared URL by its ID also redirects to the external website. This applies to:</p><ul><li>the listing produced by the <code>#shareIndex</code> label;</li><li>the navigation tree of the shared site;</li><li>the \"Subpages\" list shown under a parent note;</li><li>inline links to this note from within other shared notes.</li></ul><p>The URL must be absolute and include the scheme (e.g. <code>https://</code>).</p><aside class=\"admonition note\"><p>The note still exists in the share tree and its own page remains reachable by its direct URL — the label only changes how links to it behave.</p></aside><h2>Attribute reference</h2><figure class=\"table\"><table class=\"ck-table-resized\"><colgroup><col style=\"width:18.38%;\"><col style=\"width:81.62%;\"></colgroup><thead><tr><th>Attribute</th><th>Description</th></tr></thead><tbody><tr><td><code>#shareHiddenFromTree</code></td><td>this note is hidden from the left navigation tree, from its parent's list of subpages, from shared note maps and from the share's search, but still accessible with its URL</td></tr><tr><td><code>#shareExternalLink</code></td><td>when a link points to this note (from the share index, a subpage list, or an inline link in another shared note), it redirects to the given external URL in a new tab instead of the note's shared page. Value is the absolute URL, e.g. <code>https://example.com</code>.</td></tr><tr><td><code>#shareAlias</code></td><td>define an alias using which the note will be available under <code>https://your_trilium_host/share/[your_alias]</code></td></tr><tr><td><code>#shareOmitDefaultCss</code></td><td>default share page CSS will be omitted. Use when you make extensive styling changes.</td></tr><tr><td><code>#shareRoot</code></td><td>marks note which is served on /share root.</td></tr><tr><td><code>#shareDescription</code></td><td>define text to be added to the HTML meta tag for description. It also describes the note in the list of subpages of its parent, in place of the start of its text.</td></tr><tr><td><code>#shareRaw</code></td><td>Note will be served in its raw format, without HTML wrapper. See also&nbsp;<a class=\"reference-link\" href=\"#root/_help_Qjt68inQ2bRj\">Serving directly the content of a note</a>&nbsp;for an alternative method without setting an attribute.</td></tr><tr><td><code>#shareDisallowRobotIndexing</code></td><td><p>Indicates to web crawlers that the page should not be indexed of this note by:</p><ul><li>Setting the <code>X-Robots-Tag: noindex</code> HTTP header.</li><li>Setting the <code>noindex, follow</code> meta tag.</li></ul></td></tr><tr><td><code>#shareCredentials</code></td><td>require credentials to access this shared note. Value is expected to be in format <code>username:password</code>. Don't forget to make this inheritable to apply to child-notes/images.</td></tr><tr><td><code>#shareIndex</code></td><td>Note with this label will list all roots of shared notes.</td></tr><tr><td><code>#shareHtmlLocation</code></td><td>defines where custom HTML injected via <code>~shareHtml</code> relation should be placed. Applied to the HTML snippet note itself. Format: <code>location:position</code> where location is <code>head</code>, <code>body</code>, or <code>content</code> and position is <code>start</code> or <code>end</code>. Defaults to <code>content:end</code>.</td></tr></tbody></table></figure><h3>Customizing logo</h3><p>It's possible to adjust the logo which is displayed above the navigation tree (in the header, on a narrow screen).</p><figure class=\"table\"><table><thead><tr><th>Attribute</th><th>Description</th></tr></thead><tbody><tr><td><code>~shareLogo</code></td><td>Relation set to an image to use as logo. The image must be part of the share tree (it can be hidden if needed). Without it, the logo is the icon of the shared root note.</td></tr><tr><td><code>#shareLogoWidth</code></td><td>The width of the logo, as a number without unit. With <code>#shareLogoHeight</code>, it sets the proportions of the logo, which is shown 32 pixels wide. Default is <code>53</code>.</td></tr><tr><td><code>#shareLogoHeight</code></td><td>The height of the logo, as a number without unit. With <code>#shareLogoWidth</code>, it sets the proportions of the logo. Default is <code>40</code>.</td></tr><tr><td><code>#shareRootLink</code></td><td>URL to navigate to when the logo is pressed.</td></tr></tbody></table></figure><h3>Customizing OpenGraph</h3><p>A meta-property is left out of the page when its attribute is not set. Without an image, link previews use a small card.</p><figure class=\"table\"><table><thead><tr><th>Attribute</th><th>Description</th></tr></thead><tbody><tr><td><code>#shareOpenGraphColor</code></td><td>This adjusts the <code>theme-color</code> meta-property.</td></tr><tr><td><code>#shareOpenGraphURL</code></td><td>This adjusts the <code>og:url</code> and <code>twitter:url</code> meta-properties. It is also the address a relative <code>og:image</code> is completed with, so it should be the public address of the shared site, such as <code>https://example.com/share/</code>.</td></tr><tr><td><code>#shareOpenGraphDomain</code></td><td>Adjusts the <code>twitter:domain</code> meta-property.</td></tr><tr><td><code>#shareOpenGraphImage</code>&nbsp; <br><code>~shareOpenGraphImage</code></td><td>Can be either a label with the address of an image, or a relation to an image&nbsp;<a class=\"reference-link\" href=\"#root/_help_W8vYD3Q1zjCR\">File</a>. This controls the <code>og:image</code> meta-property. Sites that show a preview of the link load the image from their own servers, so a relative address, which the relation always gives, is completed with <code>#shareOpenGraphURL</code>; without it, the image does not show in such previews.</td></tr></tbody></table></figure><h2>Credits</h2><p>Since v0.95.0, a new theme was introduced (and enabled by default) which greatly improves the visual aspect of the Share feature, as well as its functionality (such as mobile support, dark/light mode, collapsible tree, etc.). This theme is an adaptation of the <a href=\"https://github.com/zerebos/trilium.rocks\">Trilium Rocks!</a> by <a href=\"https://github.com/zerebos\">zerebos</a>.</p>",
+ "_help_R9pX4DGra2Vt": "<p>Trilium allows you to share selected notes as <strong>publicly accessible</strong> read-only documents. This feature is particularly useful for publishing content directly from your Trilium notes, making it accessible to others online.</p><figure class=\"image\"><img style=\"aspect-ratio:1144/660;\" src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Sharing_image.png\" width=\"1144\" height=\"660\"></figure><h2>Features, interaction and limitations</h2><ul><li>Searching by note title.</li><li>Light and dark mode, following the visitor's system setting by default, also while the page is open. The visitor can pick <em>Light</em>, <em>Dark</em> or <em>System</em> with the buttons at the top of the navigation pane; the choice is remembered by the browser.</li><li>A layout centered on wide screens, with the navigation tree and the table of contents at either side of the content, and a mobile-friendly layout on narrow ones. There, the navigation tree slides in from the menu button in the header, and lists the headings of the current page below its entry (at the top of the pane, for a page the tree does not show).</li><li>Collapsible tree with the same note icons as the application. It keeps the sections the visitor expanded and its scroll position while they move between the pages of the site, and shows the current note.</li><li>Customizable logo.</li><li>Quick navigation buttons (previous and next note).</li><li>Notes that hide their children from the tree with <code>#subtreeHidden</code> (such as a <a class=\"reference-link\" href=\"#root/_help_CtBQqbwXDx1w\">Kanban Board</a>) show a badge counting them in place of listing them. The page of one of those children shows only that child below its parent, and the previous and next buttons skip them.</li><li>The subpages of a text or code note shown below its content as cards, as in the application. Each card shows the icon of the subpage and the start of its text (or its <code>#shareDescription</code>), or, for a subpage without text, links to its own first subpages. The cards can be hidden with <code>#hideChildrenOverview</code>.</li><li>Displaying the date of the last update of the note, written out in the application's language.</li><li>Marking the page with the application's language and its text direction, and the content of the note with its own <a href=\"#root/_help_veGu4faJErEM\">content language</a>, for screen readers and right-to-left text.</li></ul><h3>By note type</h3><figure class=\"table\"><table class=\"ck-table-resized\"><colgroup><col style=\"width:19.92%;\"><col style=\"width:41.66%;\"><col style=\"width:38.42%;\"></colgroup><thead><tr><th>&nbsp;</th><th>Supported features</th><th>Limitations</th></tr></thead><tbody><tr><th><a class=\"reference-link\" href=\"#root/_help_iPIMuisry3hd\">Text</a></th><td><ul><li>Table of contents, keeping the inline formatting of the headings, such as code or bold text.</li><li>A link next to each heading, shown while the pointer is over the heading. Clicking it shows the address of the section in the address bar of the browser and copies it, to share a link to the section.</li><li>Syntax highlight of code blocks, in the language selected for each block and in the colors of the VS Code light or dark theme, following the page's mode. For “Auto-detected” blocks, the language is guessed among the ones enabled in <a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> → <em>Code Notes</em>; a language not enabled there is not highlighted.</li><li>A button in the top right corner of each code block, shown while the pointer is over the block, that copies its code. Pages opened over plain HTTP do not have it, since browsers allow copying to the clipboard only on secure (HTTPS) pages.</li><li>Rendering for math equations.</li><li><a href=\"#root/_help_nBAXQFj20hS1\">Including notes</a> (only if the included notes are also shared).</li><li>Drawing canvases, shown as pictures at their own size.</li><li>Mermaid diagrams in code blocks, drawn in the page's light or dark mode and redrawn when the visitor switches it.</li></ul></td><td>&nbsp;</td></tr><tr><th><a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a></th><td><ul><li>Syntax highlight, in the language of the note and in the colors of the VS Code light or dark theme, following the page's mode. A language not enabled in&nbsp;<a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a>&nbsp;→ <em>Code Notes</em> is not highlighted. The lines are numbered unless <em>Line numbers</em> is turned off in the same section.</li></ul></td><td>&nbsp;</td></tr><tr><th><a class=\"reference-link\" href=\"#root/_help_m523cpzocqaD\">Saved Search</a></th><td>Not supported.</td><td>&nbsp;</td></tr><tr><th><a class=\"reference-link\" href=\"#root/_help_iRwzGnHPzonm\">Relation Map</a></th><td>Not supported.</td><td>&nbsp;</td></tr><tr><th><a class=\"reference-link\" href=\"#root/_help_bdUJEHsAPYQR\">Note Map</a></th><td>Not supported.</td><td>&nbsp;</td></tr><tr><th><a class=\"reference-link\" href=\"#root/_help_HcABDtFCkbFN\">Render Note</a></th><td>Not supported.</td><td>&nbsp;</td></tr><tr><th><a class=\"reference-link\" href=\"#root/_help_GTwFsgaA0lCt\">Collections</a></th><td><ul><li>The child notes are shown as cards, or as a list when the view type of the collection is <em>List</em>. Each shows its icon and the start of its text (or its <code>#shareDescription</code>), or, for a child note without text, links to its own first child notes.</li></ul></td><td><ul><li>The calendar, table, board, geo map, dashboard and presentation view types are shown as in the app, but read-only.</li></ul></td></tr><tr><th><a class=\"reference-link\" href=\"#root/_help_s1aBHPd79XYj\">Mermaid Diagrams</a></th><td><ul><li>The diagram is drawn in the page's light or dark mode and redrawn when the visitor switches it. In browsers with JavaScript disabled, the image saved when the note was last edited is shown instead, and the source of the diagram can be expanded below it.</li><li>The diagram fills the page and can be zoomed with the <span class=\"tn-icon bx bx-minus-circle\"></span> and <span class=\"tn-icon bx bx-plus-circle\"></span> buttons in its bottom corner or with the mouse wheel, between 50% and 1000% of its fitted size, and on touch screens by pinching. Clicking the percentage between the buttons, or double-clicking the diagram, shows it whole again. The diagram can be panned by dragging it.</li></ul></td><td>&nbsp;</td></tr><tr><th><a class=\"reference-link\" href=\"#root/_help_grjYqerjn243\">Canvas</a></th><td><ul><li>The diagram is displayed as a vector image.</li></ul></td><td><ul><li>No further interaction supported.</li></ul></td></tr><tr><th><a class=\"reference-link\" href=\"#root/_help_1vHRoWCEjj0L\">Web View</a></th><td>Not supported.</td><td>&nbsp;</td></tr><tr><th><a class=\"reference-link\" href=\"#root/_help_gBbsAeiuUxI5\">Mind Map</a></th><td>The diagram is displayed as a vector image.</td><td><ul><li>No further interaction supported.</li></ul></td></tr><tr><th><a class=\"reference-link\" href=\"#root/_help_81SGnPGMk7Xc\">Geo Map</a></th><td>Not supported.</td><td>&nbsp;</td></tr><tr><th><a class=\"reference-link\" href=\"#root/_help_W8vYD3Q1zjCR\">File</a></th><td>Basic interaction (downloading the file).</td><td><ul><li>No further interaction supported.</li></ul></td></tr></tbody></table></figure><p>While the sharing feature is powerful, it has some limitations:</p><ul><li><strong>Static Note Tree</strong></li><li><strong>Protected Notes</strong>: Cannot be shared.</li><li><strong>Include Notes</strong>: Not supported.</li></ul><p>Some of these limitations may be addressed in future updates.</p><h2>Prerequisites</h2><p>To use the sharing feature, you must have a&nbsp;<a class=\"reference-link\" href=\"#root/_help_WOcw2SLH6tbX\">Server Installation</a>&nbsp;of Trilium. This is necessary because the notes will be hosted from the server.</p><h2>Sharing a note</h2><ol><li><p><strong>Enable Sharing</strong>: To share a note, toggle the <code>Shared</code> switch within the note's interface. Once sharing is enabled, an URL will appear, which you can click to access the shared note.</p><p><img src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Sharing_share-single-note.png\" alt=\"Share Note\"></p></li><li><p><strong>Access the Shared Note</strong>: The link provided will open the note in your browser. If your server is not configured with a public IP, the URL will refer to <code>localhost (127.0.0.1)</code>.</p></li></ol><h2>Sharing a note subtree</h2><p>When you share a note, you actually share the entire subtree of notes beneath it. If the note has child notes, they will also be included in the shared content. For example, sharing the \"Formatting\" subtree will display a page with basic navigation for exploring all the notes within that subtree.</p><h2>Viewing and managing shared notes</h2><p>You can view a list of all shared notes by clicking on <em>Advanced</em> → <em>Shared notes</em> in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>. This allows you to manage and navigate through all the notes you have made public.</p><h2>Security considerations</h2><ul><li>Shared notes are published on the open internet and can be accessed by anyone with the URL unless the notes are password-protected.</li><li>The URL's randomness does not provide security, so it is crucial not to share sensitive information through this feature.</li><li>Trilium takes precautions to protect your publicly shared instance from leaking information for non-shared notes, including opening a separate read-only connection to the&nbsp;<a class=\"reference-link\" href=\"#root/_help_wX4HbRucYSDD\">Database</a>. Depending on your threat model, it might make more sense to use&nbsp;<a class=\"reference-link\" href=\"#root/_help_ycBFjKrrwE9p\">Exporting static HTML for web publishing</a>&nbsp;and use battle-tested web servers such as Nginx or Apache to serve static content.</li></ul><h3>Password protection</h3><p>To protect shared notes with a username and password, you can use the <code>#shareCredentials</code> attribute. Add this label to the note with the format <code>#shareCredentials=\"username:password\"</code>. To protect an entire subtree, make sure the label is <a href=\"#root/_help_bwZpz2ajCEwO\">inheritable</a>.</p><h2>Advanced sharing options</h2><h3>Customizing the appearance of shared notes</h3><p>The default design should be a good starting point, but you can customize it using your own CSS:</p><ul><li><strong>Custom CSS</strong>: Link a CSS&nbsp;<a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a>&nbsp;note to the shared page by adding a <code>~shareCss</code> relation to the note. If you want this style to apply to the entire subtree, make the label inheritable. You can hide the CSS code note from the tree navigation by adding the <code>#shareHiddenFromTree</code> label.</li><li><strong>Omitting Default CSS</strong>: For extensive styling changes, use the <code>#shareOmitDefaultCss</code> label to avoid conflicts with Trilium's <a href=\"#root/_help_Wy267RK4M69c\">default stylesheet</a>.</li></ul><h3>Adding JavaScript</h3><p>You can inject custom JavaScript into the shared note using the <code>~shareJs</code> relation. This allows you to access note attributes or traverse the note tree using the <code>fetchNote()</code> API, which retrieves note data based on its ID.</p><h3>Adding custom HTML</h3><p>You can inject custom HTML snippets into specific locations of the shared page using the <code>~shareHtml</code> relation. The HTML note should contain the raw HTML content you want to inject, and you can control where it appears by adding the <code>#shareHtmlLocation</code> label to the HTML snippet note itself.</p><p>The <code>#shareHtmlLocation</code> label accepts values in the format <code>location:position</code>:</p><ul><li><strong>Locations</strong>: <code>head</code>, <code>body</code>, <code>content</code></li><li><strong>Positions</strong>: <code>start</code>, <code>end</code></li></ul><p>For example:</p><ul><li><code>#shareHtmlLocation=head:start</code> - Injects HTML at the beginning of the <code>&lt;head&gt;</code> section</li><li><code>#shareHtmlLocation=head:end</code> - Injects HTML at the end of the <code>&lt;head&gt;</code> section (default)</li><li><code>#shareHtmlLocation=body:start</code> - Injects HTML at the beginning of the <code>&lt;body&gt;</code> section</li><li><code>#shareHtmlLocation=content:start</code> - Injects HTML at the beginning of the content area</li><li><code>#shareHtmlLocation=content:end</code> - Injects HTML at the end of the content area</li></ul><p>If no location is specified, the HTML will be injected at <code>content:end</code> by default.</p><p>Example:</p><pre><code class=\"language-text-javascript\">const currentNote = await fetchNote();\nconst parentNote = await fetchNote(currentNote.parentNoteIds[0]);\n\nfor (const attr of parentNote.attributes) {\n console.log(attr.type, attr.name, attr.value);\n}</code></pre><h3>Custom share templates</h3><p>To completely redesign the share, it is possible to create or use an existing <a href=\"#root/_help_Ad7Ku5gOHrDU\">custom share template</a>.</p><h3>Creating human-readable URL aliases</h3><p>Shared notes typically have URLs like <code>http://domain.tld/share/knvU8aJy4dJ7</code>, where the last part is the note's ID. You can make these URLs more user-friendly by adding the <code>#shareAlias</code> label to individual notes (e.g., <code>#shareAlias=highlighting</code>). This will change the URL to <code>http://domain.tld/share/highlighting</code>. The URL with the note's ID keeps working and redirects to the alias.</p><p><strong>Important</strong>:</p><ol><li>Ensure that aliases are unique.</li><li>Using slashes (<code>/</code>) within aliases to create subpaths is not supported.</li></ol><aside class=\"admonition tip\"><ul><li>To easily identify pages that don't have a share alias, run a&nbsp;<a class=\"reference-link\" href=\"#root/_help_eIg8jdvaoNNd\">Search</a>&nbsp;with <code>#!shareAlias</code>.</li><li>To be able to enter the share alias faster, consider using&nbsp;<a class=\"reference-link\" href=\"#root/_help_OFXdgB2nNk1F\">Promoted Attributes</a>&nbsp;(for example <code>#label:shareAlias(inheritable)=\"promoted,alias=Slug,single,text\"</code>).</li></ul></aside><h3>Setting a custom favicon</h3><p>To customize the favicon for your shared pages, create a relation <code>~shareFavicon</code> pointing to a file note containing the favicon (e.g., in <code>.ico</code> format).</p><h3>Sharing a note as the root</h3><p>You can designate a specific note or folder as the root of your shared content by adding the <code>#shareRoot</code> label. This note will be linked when visiting <code>[http://domain.tld/share](http://domain/share)</code>, making it easier to use Trilium as a fully-fledged website.</p><aside class=\"admonition tip\"><p>Consider combining this with the <code>#shareIndex</code> label, which will display a list of all shared notes.</p></aside><h3>Displaying an index of shared notes</h3><p>When accessing a share, the sub-notes will be displayed in a tree on the left. But since multiple note trees can be shared, it might be useful to display a list of all the different share trees.</p><p>To do so, create a shared text note and apply the <code>shareIndex</code> label. When viewed, the list of shared roots will be displayed at the bottom of the note.</p><h3>Linking to an external website</h3><p>Sometimes it's useful to include a link to an external website alongside your shared notes — for example in the shared navigation or in an index. To do so, add the <code>#shareExternalLink</code> label to a note, with the target URL as its value (e.g. <code>#shareExternalLink=\"https://example.com\"</code>).</p><p>Any link pointing to this note will then redirect to the external website and open in a new browser tab, instead of opening the note's own shared page. Opening the note's shared URL by its ID also redirects to the external website. This applies to:</p><ul><li>the listing produced by the <code>#shareIndex</code> label;</li><li>the navigation tree of the shared site;</li><li>the \"Subpages\" list shown under a parent note;</li><li>inline links to this note from within other shared notes.</li></ul><p>The URL must be absolute and include the scheme (e.g. <code>https://</code>).</p><aside class=\"admonition note\"><p>The note still exists in the share tree and its own page remains reachable by its direct URL — the label only changes how links to it behave.</p></aside><h2>Attribute reference</h2><figure class=\"table\"><table class=\"ck-table-resized\"><colgroup><col style=\"width:18.38%;\"><col style=\"width:81.62%;\"></colgroup><thead><tr><th>Attribute</th><th>Description</th></tr></thead><tbody><tr><td><code>#shareHiddenFromTree</code></td><td>this note is hidden from the left navigation tree, from its parent's list of subpages, from shared note maps and from the share's search, but still accessible with its URL</td></tr><tr><td><code>#shareExternalLink</code></td><td>when a link points to this note (from the share index, a subpage list, or an inline link in another shared note), it redirects to the given external URL in a new tab instead of the note's shared page. Value is the absolute URL, e.g. <code>https://example.com</code>.</td></tr><tr><td><code>#shareAlias</code></td><td>define an alias using which the note will be available under <code>https://your_trilium_host/share/[your_alias]</code></td></tr><tr><td><code>#shareOmitDefaultCss</code></td><td>default share page CSS will be omitted. Use when you make extensive styling changes.</td></tr><tr><td><code>#shareRoot</code></td><td>marks note which is served on /share root.</td></tr><tr><td><code>#shareDescription</code></td><td>define text to be added to the HTML meta tag for description. It also describes the note in the list of subpages of its parent, in place of the start of its text.</td></tr><tr><td><code>#shareRaw</code></td><td>Note will be served in its raw format, without HTML wrapper. See also&nbsp;<a class=\"reference-link\" href=\"#root/_help_Qjt68inQ2bRj\">Serving directly the content of a note</a>&nbsp;for an alternative method without setting an attribute.</td></tr><tr><td><code>#shareDisallowRobotIndexing</code></td><td><p>Indicates to web crawlers that the page should not be indexed of this note by:</p><ul><li>Setting the <code>X-Robots-Tag: noindex</code> HTTP header.</li><li>Setting the <code>noindex, follow</code> meta tag.</li></ul></td></tr><tr><td><code>#shareCredentials</code></td><td>require credentials to access this shared note. Value is expected to be in format <code>username:password</code>. Don't forget to make this inheritable to apply to child-notes/images.</td></tr><tr><td><code>#shareIndex</code></td><td>Note with this label will list all roots of shared notes.</td></tr><tr><td><code>#shareHtmlLocation</code></td><td>defines where custom HTML injected via <code>~shareHtml</code> relation should be placed. Applied to the HTML snippet note itself. Format: <code>location:position</code> where location is <code>head</code>, <code>body</code>, or <code>content</code> and position is <code>start</code> or <code>end</code>. Defaults to <code>content:end</code>.</td></tr></tbody></table></figure><h3>Customizing logo</h3><p>It's possible to adjust the logo which is displayed above the navigation tree (in the header, on a narrow screen).</p><figure class=\"table\"><table><thead><tr><th>Attribute</th><th>Description</th></tr></thead><tbody><tr><td><code>~shareLogo</code></td><td>Relation set to an image to use as logo. The image must be part of the share tree (it can be hidden if needed). Without it, the logo is the icon of the shared root note.</td></tr><tr><td><code>#shareLogoWidth</code></td><td>The width of the logo, as a number without unit. With <code>#shareLogoHeight</code>, it sets the proportions of the logo, which is shown 32 pixels wide. Default is <code>53</code>.</td></tr><tr><td><code>#shareLogoHeight</code></td><td>The height of the logo, as a number without unit. With <code>#shareLogoWidth</code>, it sets the proportions of the logo. Default is <code>40</code>.</td></tr><tr><td><code>#shareRootLink</code></td><td>URL to navigate to when the logo is pressed.</td></tr></tbody></table></figure><h3>Customizing OpenGraph</h3><p>A meta-property is left out of the page when its attribute is not set. Without an image, link previews use a small card.</p><figure class=\"table\"><table><thead><tr><th>Attribute</th><th>Description</th></tr></thead><tbody><tr><td><code>#shareOpenGraphColor</code></td><td>This adjusts the <code>theme-color</code> meta-property.</td></tr><tr><td><code>#shareOpenGraphURL</code></td><td>This adjusts the <code>og:url</code> and <code>twitter:url</code> meta-properties. It is also the address a relative <code>og:image</code> is completed with, so it should be the public address of the shared site, such as <code>https://example.com/share/</code>.</td></tr><tr><td><code>#shareOpenGraphDomain</code></td><td>Adjusts the <code>twitter:domain</code> meta-property.</td></tr><tr><td><code>#shareOpenGraphImage</code>&nbsp; <br><code>~shareOpenGraphImage</code></td><td>Can be either a label with the address of an image, or a relation to an image&nbsp;<a class=\"reference-link\" href=\"#root/_help_W8vYD3Q1zjCR\">File</a>. This controls the <code>og:image</code> meta-property. Sites that show a preview of the link load the image from their own servers, so a relative address, which the relation always gives, is completed with <code>#shareOpenGraphURL</code>; without it, the image does not show in such previews.</td></tr></tbody></table></figure><h2>Credits</h2><p>Since v0.95.0, a new theme was introduced (and enabled by default) which greatly improves the visual aspect of the Share feature, as well as its functionality (such as mobile support, dark/light mode, collapsible tree, etc.). This theme is an adaptation of the <a href=\"https://github.com/zerebos/trilium.rocks\">Trilium Rocks!</a> by <a href=\"https://github.com/zerebos\">zerebos</a>.</p>",
"_help_Qjt68inQ2bRj": "<p>When accessing a shared note, Trilium will render it as a web page. Sometimes it's desirable to serve the content directly so that it can be used in a script or downloaded by the user.</p><figure class=\"table\"><table><thead><tr><th>A note displayed as a web page (HTML)</th><th>A note displayed as a raw format</th></tr></thead><tbody><tr><td><figure class=\"image\"><img style=\"aspect-ratio:738/275;\" src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Sharing/Serving%20directly%20the%20content%20of%20a%20note_image.png\" width=\"738\" height=\"275\"></figure></td><td><img src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Sharing/Serving%20directly%20the%20content%20of%20a%20note_image.jpg\"></td></tr></tbody></table></figure><h2>By adding an attribute to the note</h2><p>Simply add the <code>#shareRaw</code> attribute and the note will always be rendered <em>raw</em> when accessed from the share URL.</p><h2>By altering the URL</h2><p>Append <code>?raw</code> to the URL to display a note in its raw format regardless of whether the <code>#shareRaw</code> attribute is added on the note.</p><p><img src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Sharing/Serving%20directly%20the%20content%20of%20a%20note_image.jpg\"></p>",
"_help_ycBFjKrrwE9p": "<p>As described in&nbsp;<a class=\"reference-link\" href=\"#root/_help_R9pX4DGra2Vt\">Sharing</a>, Trilium can act as a public server in which the shared notes are displayed in read-only mode. While this can work in most cases, it's generally not meant for high-traffic websites and since it's running on a Node.js server it can be potentially exploited.</p><p>Another alternative is to generate static HTML files (just like other static site generators such as <a href=\"https://www.mkdocs.org/\">MkDocs</a>). Since the normal HTML ZIP export does not contain any styling or additional functionality, Trilium provides a way to export the same layout and style as the&nbsp;<a class=\"reference-link\" href=\"#root/_help_R9pX4DGra2Vt\">Sharing</a>&nbsp;function into static HTML files.</p><p>Apart from the enhanced security, these HTML files are also easy to deploy on “serverless” deployments such as GitHub Pages or CloudFlare Pages and cache very easily.</p><aside class=\"admonition tip\"><p>Trilium's documentation, available at <a href=\"https://docs.triliumnotes.org/\">docs.triliumnotes.org</a> is built using this function of exporting to static HTML files which are then deployed automatically to CloudFlare Pages.</p><p>The process is <a href=\"https://github.com/TriliumNext/Trilium/blob/main/apps/edit-docs/src/build-docs.ts\">automated</a> by importing the Markdown documentation and exporting it via a script to the static web format.</p></aside><h2>Differences from normal sharing</h2><p>Apart from normal&nbsp;<a class=\"reference-link\" href=\"#root/_help_R9pX4DGra2Vt\">Sharing</a>, exporting to static HTML files comes with a few subtle differences:</p><ul><li>The URL structure is different. Where in normal sharing it's something along the way of <code>example.com/share/noteid</code>, the notes follow an hierarchical structure, such as <code>docs.triliumnotes.org/user-guide/concepts/navigation/tree-concepts</code>.</li><li>The <code>favicon.ico</code> is not handled automatically, it needs to be manually added on the server after the export is generated.</li><li>The “Last updated” for notes is not available.</li><li>The search functionality works slightly different since the normal one requires an active API to work. In the static export, search still works but uses a different mechanism so results might be different.</li></ul><h2>Differences from normal .zip export</h2><ul><li>The name of the files/URLs will prefer <code>shareAlias</code> to allow for clean URLs.</li><li>The export requires a functional web server as the pages will not render properly if accessed locally via a web browser due to the use of module scripts.</li><li>The directory structure is also slightly different:<ul><li>A normal HTML export results in an index file and a single directory.</li><li>Instead, for static exporting the top-root level becomes the index file and the child directories are on the root instead.</li><li>This makes it possible to easily publish to a website, without forcing everything but the root note to be in a sub-directory.</li></ul></li></ul><h2>Testing locally</h2><p>As mentioned previously, the exported static pages require a website to function. In order to test locally, a web server needs to be used.</p><p>One example is to use the Node.js-based <a href=\"https://www.npmjs.com/package/http-server\"><code>http-server</code></a> which can be installed via:</p><pre><code class=\"language-text-x-trilium-auto\">npm i -g http-server</code></pre><p>Once installed simply:</p><ol><li>Extract the exported .zip file.</li><li>Inside the extracted directory, run <code>http-server</code>.</li><li>Access the indicated address (e.g. <a href=\"http://localhost:8080\">http://localhost:8080</a>).</li></ol><h2>Automation</h2><p><a class=\"reference-link\" href=\"#root/_help_pgxEVkzLl1OP\">ETAPI (REST API)</a>&nbsp;could potentially be used to automate an export on a scheduled task.</p>",
"_help_sLIJ6f1dkJYW": "<p>It might be desirable to only expose the share functionality of Trilium to the Internet, and keep the application accessible only within a local network or via VPN.</p><p>To do so, a reverse proxy is required.</p><h2>Caddy</h2><pre><code class=\"language-text-x-trilium-auto\">http://domain.com {\n reverse_proxy /share http://localhost:8080/share\n}</code></pre><p>This is for newer versions where the share functionality is isolated, for older versions it's required to also include <code>/assets</code>.<a href=\"#fn2b8mg20aol8\"><sup>[1]</sup></a></p><ol><li><p><a href=\"#fnref2b8mg20aol8\"><strong><sup>^</sup></strong></a></p><p><a href=\"https://github.com/orgs/TriliumNext/discussions/7341#discussioncomment-14679897\">https://github.com/orgs/TriliumNext/discussions/7341#discussioncomment-14679897</a></p></li></ol>",
@@ -224,7 +224,7 @@
"_help_47ZrP6FNuoG8": "<p>When a new note is created, its name is by default \"new note\". In some cases, it can be desirable to have a different or even a dynamic default note title.</p><p>For this use case, Trilium (since v0.52) supports <code>#titleTemplate</code> <a href=\"#root/_help_zEY4DaJG4YT5\">label</a>. You can create such a label for a given note, assign it a value, and this value will be used as a default title when creating child notes. As with other labels, you can make it inheritable to apply recursively, and you can even place it on the root note to have it applied globally everywhere.</p><p>As an example use case, imagine you collect books you've read in a given year like this:</p><ul><li>2022 Books<ul><li>Neal Stephenson: Anathem, 2008</li><li>Franz Kafka: Die Verwandlung, 1915</li></ul></li></ul><p>Now, to the parent note \"2022 Books\" you can assign label <code>#titleTemplate=\"[Author name]: [Book title], [Publication year]\"</code>.</p><p>And all children of \"2022 Books\" will be created with initial title \"[Author name]: [Book title], [Publication year]\". There's no artificial intelligence here, the idea is to just prompt you to manually fill in the pieces of information into the note title by yourself.</p><h2>Titles set by a template</h2><p>A template can name the notes created from it, wherever they are created. To do so, add a <code>#template:titleTemplate</code> label to the template note, for example <code>#template:titleTemplate=\"Meeting ${now.format('YYYY-MM-DD')}\"</code> on a <em>Meeting</em> template.</p><ul><li>It applies both when the template is picked explicitly and when it comes from a parent's <code>~child:template</code>. See <a class=\"reference-link\" href=\"#root/_help_KC1HB96bqqHX\">Templates</a>.</li><li>It takes precedence over the parent's <code>#titleTemplate</code>. A title typed in by the user always wins.</li><li>It can be inherited from the template's ancestors in the tree (for example, a folder holding several templates), in which case a label owned by the template itself takes precedence. A note created from a template and later marked as a template does not keep that template's title.</li><li>Its value is evaluated the same way as <code>#titleTemplate</code>, with <code>parentNote</code> being the parent of the new note.</li></ul><h2>Dynamic value</h2><p>The value of <code>#titleTemplate</code> is evaluated at the point of note's creation as a JavaScript string, which means it can be enriched with the help of JS string interpolation with dynamic data.</p><p>Second variable injected is <code>parentNote</code> which gives access to the parent <a href=\"#root/_help_Q2z6av6JZVWm\"><code>FNote</code></a>.</p><p>See also&nbsp;<a class=\"reference-link\" href=\"#root/_help_KC1HB96bqqHX\">Templates</a>&nbsp;which provides similar capabilities, including default note's content.</p><h3>Examples</h3><ul><li>Imagine you collect server outage incidents and write some notes. It looks like this:<ul><li>Incidents<ul><li>2022-05-09: System crash</li><li>2022-05-15: Backup delay</li></ul></li><li>You can automatize the date assignment by assigning a label <code>#titleTemplate=\"${now.format('YYYY-MM-DD')}: \"</code> to the parent note \"Incidents\". Whenever a new child note is created, the title template is evaluated with the injected <a href=\"https://day.js.org/docs/en/display/format\">now</a> object.</li></ul></li><li>To use a parent's attribute in the title of new notes: <code>#titleTemplate=\"${parentNote.getLabelValue('authorName')}'s literary works\"</code></li><li>To mirror the parent's note title: <code>${parentNote.title}</code></li></ul>",
"_help_wX4HbRucYSDD": "<p>Your Trilium data is stored in a <a href=\"https://www.sqlite.org\">SQLite</a> database which contains all notes, tree structure, metadata, and most of the configuration. The database file is named <code>document.db</code> and is stored in the application's default&nbsp;<a href=\"#root/_help_tAassRL4RSQL\">Data directory</a>.</p><h2>Demo Notes</h2><p>When first starting Trilium, it will provide a set of notes to showcase various features of the application.</p><p>For more information see&nbsp;<a class=\"reference-link\" href=\"#root/_help_6tZeKvSHEUiB\">Demo Notes</a>.</p><h2>Manually Modifying the Database</h2><p>Trilium provides a lot of flexibility, and with it, opportunities for advanced users to tweak it. If you need to explore or modify the database directly, you can use a tool such as <a href=\"https://sqlitebrowser.org/\">SQLite Browser</a> to work directly on the database file.</p><p>See&nbsp;<a href=\"#root/_help_oyIAJ9PvvwHX\">Manually altering the database</a>&nbsp;for more information.</p><h2>How to Reset the Database</h2><p>If you want to start again and:</p><ul><li>Create and switch to a new blank knowledge base</li><li>Use a different knowledge base synced from a server or desktop application</li><li>Restore a backup</li></ul><p>You can navigate to&nbsp;<a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a> → <em>Database</em> and click the <em>Start over</em> button. You'll be prompted to restart the application, with the option to back up your current database before proceeding.</p><aside class=\"admonition important\"><p>For the web client, Trilium cannot restart automatically. You'll need to manually restart the server/container and then reload the web application.</p></aside><p>After restarting, the setup screen will appear. You can choose to back up your existing database, then proceed with the setup menu as if it's a new installation. The existing database will only be overwritten after selecting to create a new database, sync with a server, or restore from a backup.</p><h3>The Legacy Method</h3><p>If you are experimenting with Trilium and want to return it to its original state, you can do that by deleting the current database. When you restart the application, it will generate a new database containing the original demo notes.</p><p>To delete the database, simply go to the <a href=\"#root/_help_tAassRL4RSQL\">data directory</a> and delete the <code>document.db</code> file (and any other files starting with <code>document.db</code>).</p><p>If you do not need to preserve any configurations that might be stored in the <code>config.ini</code> file, you can just delete all of the <a href=\"#root/_help_tAassRL4RSQL\">data directory's</a> contents to fully restore the application to its original state. You can also review the <a href=\"#root/_help_Gzjqa934BdH4\">configuration</a> file to provide all <code>config.ini</code> values as environment variables instead.</p>",
"_help_oyIAJ9PvvwHX": "<p>There are some situations where modifying the SQLite database that Trilium uses is desirable.</p><p>If you are doing any advanced development or troubleshooting where you manually modify the database, you might want to consider creating backups of your <code>document.db</code> file.</p><h2>Modifying it internally using the SQL Console</h2><p>The SQL Console is Trilium's built-in database editor.</p><p>See&nbsp;<a class=\"reference-link\" href=\"#root/_help_YKWqdJhzi2VY\">SQL Console</a>.</p><h2>Externally modifying the database</h2><p>Sometimes the SQL Console cannot be used (for example if the application cannot start).</p><p>When making external modifications, consider closing the desktop application. If modifying the server database, then stop the service or Docker container.</p><h3>Using DB Browser for SQLite</h3><p>DB Browser for SQLite is a cross-platform editor that can be used to alter the database using a graphical user interface.</p><p>To do so:</p><ol><li>In the main menu, select File → Open database… and navigate to the database in the&nbsp;<a href=\"#root/_help_tAassRL4RSQL\">Data directory</a>.</li><li>Select the <em>Execute SQL</em> tab.</li><li>Type in the desired SQL statement.</li><li>Press the \"Play\" button in the toolbar underneath the \"Execute SQL\" tab (or F5 key).</li><li>Press \"Write Changes\" in the main toolbar.</li><li>Close the application or close the database.</li></ol><p><img src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Database/Manually%20altering%20the%20database_image.jpg\"></p><h3>Using the SQLite CLI</h3><p>First, start the SQLite 3 CLI by specifying the path to the database:</p><pre><code class=\"language-text-x-trilium-auto\">sqlite3 ~/.local/share/trilium-data/document.db</code></pre><ul><li>In the prompt simply type the statement and make sure it ends with a <code>;</code> character.</li><li>To exit, simply type <code>.quit</code> and enter.</li></ul>",
- "_help_YKWqdJhzi2VY": "<aside class=\"admonition important\"><p>Starting with v0.104.0, backend scripts are disabled by default to reduce the attack surface. See&nbsp;<a class=\"reference-link\" href=\"#root/_help_fiHicjpHjIRJ\">Security</a>&nbsp;for more information.</p></aside><p>The SQL Console is Trilium's built-in database editor.</p><p>It can be accessed by going to the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>&nbsp;→ Advanced → Open SQL console.</p><p><img src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Database/Manually%20altering%20the%20database/SQL%20Console_image.jpg\"></p><h3>Interaction</h3><ul><li>Hovering the mouse over one of the tables listed at the top of the document will show the columns and their data type.</li><li>Only one SQL statement can be run at once.</li><li>To run the statement, press the <em>Execute</em> icon.</li><li>For queries that return a result, the data will displayed in a table.</li><li>For statements (e.g. <code>INSERT</code>, <code>UPDATE</code>), the number of affected rows is displayed.</li></ul><figure class=\"image\"><img style=\"aspect-ratio:1124/571;\" src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Database/Manually%20altering%20the%20database/SQL%20Console_image.png\" width=\"1124\" height=\"571\"></figure><h3>Interacting with the table</h3><p>After executing a query, a table with the results will be displayed:</p><ul><li>Clicking on a column allows sorting ascending or descending.</li><li>Underneath each column there is an input field which allows filtering by text.</li><li>Press <kbd>Ctrl</kbd>+<kbd>C</kbd> to copy the current cell to clipboard.</li><li>Multiple cells can be selected by dragging or by holding <kbd>Shift</kbd> + arrow keys</li><li>Results are paginated for performance reasons. The controls at the bottom of the table can be used to navigate through pages.</li></ul><h3>Saved SQL console</h3><p>SQL queries or commands can be saved into a dedicated note.</p><p>To do so, simply write the query and press the&nbsp;<span class=\"tn-icon bx bx-save\"></span> button. Once saved, the note will appear in&nbsp;<a class=\"reference-link\" href=\"#root/_help_l0tKav7yLHGF\">Day Notes</a>&nbsp;by default. It is possible to change the default location of saved queries by assigning a <code>#sqlConsoleHome</code> <a href=\"#root/_help_HI6GBBIduIgv\">label</a>.</p><p>The note can be locked for editing by pressing the <em>Lock</em> button in the note actions section near the title bar. When editing is locked, the SQL statement is hidden from view.</p>",
+ "_help_YKWqdJhzi2VY": "<aside class=\"admonition important\"><p>Starting with v0.104.0, backend scripts are disabled by default to reduce the attack surface. See&nbsp;<a class=\"reference-link\" href=\"#root/_help_fiHicjpHjIRJ\">Security</a>&nbsp;for more information.</p></aside><p>The SQL Console is Trilium's built-in database editor.</p><p>It can be accessed by going to the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>&nbsp;→ Advanced → SQL console.</p><p><img src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Database/Manually%20altering%20the%20database/SQL%20Console_image.jpg\"></p><h3>Interaction</h3><ul><li>Hovering the mouse over one of the tables listed at the top of the document will show the columns and their data type.</li><li>Only one SQL statement can be run at once.</li><li>To run the statement, press the <em>Execute</em> icon.</li><li>For queries that return a result, the data will displayed in a table.</li><li>For statements (e.g. <code>INSERT</code>, <code>UPDATE</code>), the number of affected rows is displayed.</li></ul><figure class=\"image\"><img style=\"aspect-ratio:1124/571;\" src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Database/Manually%20altering%20the%20database/SQL%20Console_image.png\" width=\"1124\" height=\"571\"></figure><h3>Interacting with the table</h3><p>After executing a query, a table with the results will be displayed:</p><ul><li>Clicking on a column allows sorting ascending or descending.</li><li>Underneath each column there is an input field which allows filtering by text.</li><li>Press <kbd>Ctrl</kbd>+<kbd>C</kbd> to copy the current cell to clipboard.</li><li>Multiple cells can be selected by dragging or by holding <kbd>Shift</kbd> + arrow keys</li><li>Results are paginated for performance reasons. The controls at the bottom of the table can be used to navigate through pages.</li></ul><h3>Saved SQL console</h3><p>SQL queries or commands can be saved into a dedicated note.</p><p>To do so, simply write the query and press the&nbsp;<span class=\"tn-icon bx bx-save\"></span> button. Once saved, the note will appear in&nbsp;<a class=\"reference-link\" href=\"#root/_help_l0tKav7yLHGF\">Day Notes</a>&nbsp;by default. It is possible to change the default location of saved queries by assigning a <code>#sqlConsoleHome</code> <a href=\"#root/_help_HI6GBBIduIgv\">label</a>.</p><p>The note can be locked for editing by pressing the <em>Lock</em> button in the note actions section near the title bar. When editing is locked, the SQL statement is hidden from view.</p>",
"_help_6tZeKvSHEUiB": "<p>When you run Trilium for the first time, it will generate a new database containing demo notes. These notes showcase its many features, such as:</p><ul><li><a class=\"reference-link\" href=\"#root/_help_iRwzGnHPzonm\">Relation Map</a></li><li><a class=\"reference-link\" href=\"#root/_help_l0tKav7yLHGF\">Day Notes</a></li><li><a class=\"reference-link\" href=\"#root/_help_R7abl2fc6Mxi\">Weight Tracker</a></li><li><a class=\"reference-link\" href=\"#root/_help_xYjQUYhpbUEW\">Task Manager</a></li><li><a class=\"reference-link\" href=\"#root/_help_Wy267RK4M69c\">Themes</a></li></ul><h3>Restoring Demo Notes</h3><p>There are some cases in which you may want to restore the original demo notes. For example, if you experimented with some of the more advanced features and want to see the original reference, or if you simply want to explore the latest version of the demo notes, which might showcase new features.</p><p>You can easily restore the demo notes by using Trilium's built-in import feature by importing them:</p><ul><li>Download <a href=\"https://github.com/TriliumNext/Trilium/raw/refs/heads/main/apps/server/src/assets/db/demo.zip\">the .zip archive</a> with the latest version of the demo notes</li><li>Right click on any note in your tree under which you would like the demo notes to be imported</li><li>Click \"Import into note…\"</li><li>Select the .zip archive to import it</li></ul>",
"_help_Gzjqa934BdH4": "<p>Trilium supports configuration via a file named <code>config.ini</code> and environment variables. This document provides a comprehensive reference for all configuration options.</p><h2>Location of the configuration file</h2><p>The configuration file is not located in the same directory as the application. Instead, the <code>config.ini</code> is located in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_tAassRL4RSQL\">Data directory</a>. As such, the configuration file is only available after starting the application and creating a database.</p><h2>Configuration Precedence</h2><p>Configuration values are loaded in the following order of precedence (highest to lowest):</p><ol><li><strong>Environment variables</strong> (checked first)</li><li><strong>config.ini file values</strong></li><li><strong>Default values</strong></li></ol><h2>Environment Variable Patterns</h2><p>Trilium supports multiple environment variable patterns for flexibility. The primary pattern is: <code>TRILIUM_[SECTION]_[KEY]</code></p><p>Where:</p><ul><li><code>SECTION</code> is the INI section name in UPPERCASE</li><li><code>KEY</code> is the camelCase configuration key converted to UPPERCASE (e.g., <code>instanceName</code> → <code>INSTANCENAME</code>)</li></ul><p>Additionally, shorter aliases are available for common configurations (see Alternative Variables section below).</p><h2>Environment Variable Reference</h2><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">General</p><div class=\"trilium-tab-panel\"><figure class=\"table\"><table><thead><tr><th>Environment Variable</th><th>Type</th><th>Default</th><th>Description</th></tr></thead><tbody><tr><td><code>TRILIUM_GENERAL_INSTANCENAME</code></td><td>string</td><td>\"\"</td><td>Instance name for API identification</td></tr><tr><td><code>TRILIUM_GENERAL_NOAUTHENTICATION</code></td><td>boolean</td><td>false</td><td>Disable authentication (server only)</td></tr><tr><td><code>TRILIUM_GENERAL_NOBACKUP</code></td><td>boolean</td><td>false</td><td>Disable automatic backups</td></tr><tr><td><code>TRILIUM_GENERAL_NODESKTOPICON</code></td><td>boolean</td><td>false</td><td>Disable desktop icon creation</td></tr><tr><td><code>TRILIUM_GENERAL_READONLY</code></td><td>boolean</td><td>false</td><td>Enable read-only mode</td></tr></tbody></table></figure></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">Network</p><div class=\"trilium-tab-panel\"><figure class=\"table\"><table><thead><tr><th>Environment Variable</th><th>Type</th><th>Default</th><th>Description</th></tr></thead><tbody><tr><td><code>TRILIUM_NETWORK_HOST</code></td><td>string</td><td>\"0.0.0.0\"</td><td>Server host binding</td></tr><tr><td><code>TRILIUM_NETWORK_PORT</code></td><td>string</td><td>\"8080\"</td><td>Server port</td></tr><tr><td><code>TRILIUM_NETWORK_HTTPS</code></td><td>boolean</td><td>false</td><td>Enable HTTPS</td></tr><tr><td><code>TRILIUM_NETWORK_CERTPATH</code></td><td>string</td><td>\"\"</td><td>SSL certificate path</td></tr><tr><td><code>TRILIUM_NETWORK_KEYPATH</code></td><td>string</td><td>\"\"</td><td>SSL key path</td></tr><tr><td><code>TRILIUM_NETWORK_TRUSTEDREVERSEPROXY</code></td><td>string</td><td>false</td><td>Addresses of the reverse proxy to trust, see <a href=\"#root/_help_LLzSMXACKhUs\">Trusted proxy</a></td></tr><tr><td><code>TRILIUM_NETWORK_CORSALLOWORIGIN</code></td><td>string</td><td>\"\"</td><td>CORS allowed origins</td></tr><tr><td><code>TRILIUM_NETWORK_CORSALLOWMETHODS</code></td><td>string</td><td>\"\"</td><td>CORS allowed methods</td></tr><tr><td><code>TRILIUM_NETWORK_CORSALLOWHEADERS</code></td><td>string</td><td>\"\"</td><td>CORS allowed headers</td></tr><tr><td><code>TRILIUM_NETWORK_CORSRESOURCEPOLICY</code></td><td>string</td><td>same-origin</td><td>CORS Resource Policy allows same-origin/same-site/cross-origin as values, will error if not</td></tr></tbody></table></figure></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">Session</p><div class=\"trilium-tab-panel\"><figure class=\"table\"><table><thead><tr><th>Environment Variable</th><th>Type</th><th>Default</th><th>Description</th></tr></thead><tbody><tr><td><code>TRILIUM_SESSION_COOKIEMAXAGE</code></td><td>integer</td><td>1814400</td><td>Session cookie max age in seconds (21 days)</td></tr></tbody></table></figure></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">Sync</p><div class=\"trilium-tab-panel\"><figure class=\"table\"><table><thead><tr><th>Environment Variable</th><th>Type</th><th>Default</th><th>Description</th></tr></thead><tbody><tr><td><code>TRILIUM_SYNC_SYNCSERVERHOST</code></td><td>string</td><td>\"\"</td><td>Sync server host URL</td></tr><tr><td><code>TRILIUM_SYNC_SYNCSERVERTIMEOUT</code></td><td>string</td><td>\"120000\"</td><td>Sync server timeout in milliseconds</td></tr><tr><td><code>TRILIUM_SYNC_SYNCPROXY</code></td><td>string</td><td>\"\"</td><td>Sync proxy URL</td></tr></tbody></table></figure></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">MultiFactorAuthentication</p><div class=\"trilium-tab-panel\"><p>See&nbsp;<a class=\"reference-link\" href=\"#root/_help_x1lQNKQBqLcA\">Signing in with OpenID Connect</a>.</p></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">Logging</p><div class=\"trilium-tab-panel\"><figure class=\"table\"><table><thead><tr><th>Environment Variable</th><th>Type</th><th>Default</th><th>Description</th></tr></thead><tbody><tr><td><code>TRILIUM_LOGGING_RETENTIONDAYS</code></td><td>integer</td><td>90</td><td>Number of days to retain log files</td></tr></tbody></table></figure></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">Development</p><div class=\"trilium-tab-panel\"><figure class=\"table\"><table><thead><tr><th>Environment Variable</th><th>Type</th><th>Default</th><th>Description</th></tr></thead><tbody><tr><td><code>TRILIUM_MANUAL_DB_MIGRATION</code></td><td>boolean</td><td>false</td><td>If <code>true</code>, the application will not start if automatic database migrations are pending and would modify the database schema.</td></tr></tbody></table></figure></div></section></div><details class=\"trilium-collapsible\"><summary>Alternative environment variables</summary><p>The following alternative environment variable names are also supported and work identically to their longer counterparts.</p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">Network CORS</p><div class=\"trilium-tab-panel\"><ul><li><code>TRILIUM_NETWORK_CORS_ALLOW_ORIGIN</code> (alternative to <code>TRILIUM_NETWORK_CORSALLOWORIGIN</code>)</li><li><code>TRILIUM_NETWORK_CORS_ALLOW_METHODS</code> (alternative to <code>TRILIUM_NETWORK_CORSALLOWMETHODS</code>)</li><li><code>TRILIUM_NETWORK_CORS_ALLOW_HEADERS</code> (alternative to <code>TRILIUM_NETWORK_CORSALLOWHEADERS</code>)</li><li><code>TRILIUM_NETWORK_CORS_RESOURCE_POLICY</code> (alternative to <code>TRILIUM_NETWORK_CORSRESOURCEPOLICY</code>)</li></ul></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">Sync</p><div class=\"trilium-tab-panel\"><ul><li><code>TRILIUM_SYNC_SERVER_HOST</code> (alternative to <code>TRILIUM_SYNC_SYNCSERVERHOST</code>)</li><li><code>TRILIUM_SYNC_SERVER_TIMEOUT</code> (alternative to <code>TRILIUM_SYNC_SYNCSERVERTIMEOUT</code>)</li><li><code>TRILIUM_SYNC_SERVER_PROXY</code> (alternative to <code>TRILIUM_SYNC_SYNCPROXY</code>)</li></ul></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">OAuth/MFA</p><div class=\"trilium-tab-panel\"><ul><li><code>TRILIUM_OAUTH_BASE_URL</code> (alternative to <code>TRILIUM_MULTIFACTORAUTHENTICATION_OAUTHBASEURL</code>)</li><li><code>TRILIUM_OAUTH_CLIENT_ID</code> (alternative to <code>TRILIUM_MULTIFACTORAUTHENTICATION_OAUTHCLIENTID</code>)</li><li><code>TRILIUM_OAUTH_CLIENT_SECRET</code> (alternative to <code>TRILIUM_MULTIFACTORAUTHENTICATION_OAUTHCLIENTSECRET</code>)</li><li><code>TRILIUM_OAUTH_ISSUER_BASE_URL</code> (alternative to <code>TRILIUM_MULTIFACTORAUTHENTICATION_OAUTHISSUERBASEURL</code>)</li><li><code>TRILIUM_OAUTH_ISSUER_NAME</code> (alternative to <code>TRILIUM_MULTIFACTORAUTHENTICATION_OAUTHISSUERNAME</code>)</li><li><code>TRILIUM_OAUTH_ISSUER_ICON</code> (alternative to <code>TRILIUM_MULTIFACTORAUTHENTICATION_OAUTHISSUERICON</code>)</li><li><code>TRILIUM_OAUTH_HTTP_TIMEOUT</code> (alternative to <code>TRILIUM_MULTIFACTORAUTHENTICATION_OAUTHHTTPTIMEOUT</code>)</li><li><code>TRILIUM_OAUTH_SCOPE</code> (alternative to <code>TRILIUM_MULTIFACTORAUTHENTICATION_OAUTHSCOPE</code>)</li></ul></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">Logging</p><div class=\"trilium-tab-panel\"><ul><li><code>TRILIUM_LOGGING_RETENTION_DAYS</code> (alternative to <code>TRILIUM_LOGGING_RETENTIONDAYS</code>)</li></ul></div></section></div></details><h2>Boolean Values</h2><p>Boolean environment variables accept the following values:</p><ul><li><strong>True</strong>: <code>\"true\"</code>, <code>\"1\"</code>, <code>1</code></li><li><strong>False</strong>: <code>\"false\"</code>, <code>\"0\"</code>, <code>0</code></li><li>Any other value defaults to <code>false</code></li></ul><h2>Using Environment Variables</h2><p>Both naming patterns are fully supported and can be used interchangeably:</p><ul><li>The longer format follows the section/key pattern for consistency with the INI file structure</li><li>The shorter alternatives provide convenience for common configurations</li><li>You can use whichever format you prefer - both are equally valid</li></ul><h2>Examples</h2><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\"><span class=\"tn-icon bx bxl-docker\"></span>&nbsp;Docker Compose</p><div class=\"trilium-tab-panel\"><pre><code class=\"language-text-x-yaml\">services:\n trilium:\n image: triliumnext/trilium\n environment:\n # Using full format\n TRILIUM_GENERAL_INSTANCENAME: \"My Trilium Instance\"\n TRILIUM_NETWORK_PORT: \"8080\"\n TRILIUM_NETWORK_CORSALLOWORIGIN: \"https://myapp.com\"\n TRILIUM_SYNC_SYNCSERVERHOST: \"https://sync.example.com\"\n TRILIUM_MULTIFACTORAUTHENTICATION_OAUTHBASEURL: \"https://auth.example.com\"\n \n # Or using shorter alternatives (equally valid)\n # TRILIUM_NETWORK_CORS_ALLOW_ORIGIN: \"https://myapp.com\"\n # TRILIUM_SYNC_SERVER_HOST: \"https://sync.example.com\"\n # TRILIUM_OAUTH_BASE_URL: \"https://auth.example.com\"</code></pre></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\"><span class=\"tn-icon bx bxl-tux\"></span>&nbsp;Linux Shell</p><div class=\"trilium-tab-panel\"><pre><code class=\"language-text-x-trilium-auto\"># Using either format\nexport TRILIUM_GENERAL_NOAUTHENTICATION=false\nexport TRILIUM_NETWORK_HTTPS=true\nexport TRILIUM_NETWORK_CERTPATH=/path/to/cert.pem\nexport TRILIUM_NETWORK_KEYPATH=/path/to/key.pem\nexport TRILIUM_LOGGING_RETENTIONDAYS=30\n\n# Start Trilium\nnpm start</code></pre></div></section></div><h2>config.ini Reference</h2><p>For the complete list of configuration options and their INI file format, please review the <a href=\"https://github.com/TriliumNext/Trilium/blob/main/apps/server/src/assets/config-sample.ini\">config-sample.ini</a> file in the Trilium repository.</p>",
"_help_c5xB8m4g2IY6": "<p>A Trilium instance represents a server. If&nbsp;<a class=\"reference-link\" href=\"#root/_help_cbkrhQjrkKrh\">Synchronization</a>&nbsp;is set up, since multiple servers are involved (the one from the desktop client and the one the synchronisation is set up with), sometimes it can be useful to distinguish the instance you are running on.</p><h2>Setting the instance name</h2><p>To set up a name for the instance, modify the <code>config.ini</code>:</p><pre><code class=\"language-text-x-trilium-auto\">[General]\ninstanceName=Hello</code></pre><h2>Distinguishing the instance on back-end</h2><p>Use <code>api.getInstanceName()</code> to obtain the instance name of the current server, as specified in the config file or in environment variables.</p><h2>Limiting script runs based on instance</h2><p>For a script that is run periodically or on a certain event, it's possible to limit it to certain instances without having to change the code. Just add <code>runOnInstance</code> and set as the value the instance name where the script should run. To run on multiple named instances, simply add the label multiple times.</p>",
@@ -235,7 +235,7 @@
"_help_MI26XDLSAlCD": "<h2>Editor core</h2><p>The CKEditor is the WYSIWYG (standing for What You See Is What You Get) editor behind&nbsp;<a href=\"#root/_help_iPIMuisry3hd\">Text</a>&nbsp;notes.</p><p>Their website is <a href=\"https://ckeditor.com/\">ckeditor.com</a>.</p><p>CKEditor by itself is a commercial product, but the core is open-source. As described in <a href=\"https://ckeditor.com/docs/ckeditor5/latest/features/index.html\">its documentation</a>, the editor supports quite a large number of features. Do note that not all the features are enabled in Trilium.</p><h2>Premium features</h2><p>CKEditor ships some plugins as premium (slash commands, templates, AI integration). Initially Trilium (since v0.96.0) shipped some of them like slash commands as part of a license grant from CKEditor to the Trilium Notes developers.</p><p>In v0.105.0 we've decided to replace those premium plugins with our own open-source implementations. This also means that we can better tailor those plugins to the Trilium app.</p><h2>Plugins</h2><p>The CKEditor ecosystem is quite extensible, in the sense that custom plugins can be written to extend the functionality of the editor beyond its original scope.</p><p>Trilium makes use of such features:</p><ul><li>The math feature is added by a version of <a href=\"https://github.com/isaul32/ckeditor5-math\">isaul32/ckeditor5-math: Math feature for CKEditor 5.</a> modified by us to fit our needs.</li><li><a href=\"https://github.com/mlewand/ckeditor5-keyboard-marker\">mlewand/ckeditor5-keyboard-marker: Plugin adds support for the keyboard input element (<code>&lt;kbd&gt;</code>) to CKEditor 5.</a></li><li>A modified version of <a href=\"https://github.com/ThomasAitken/ckeditor5-footnotes\">ThomasAitken/ckeditor5-footnotes: Footnotes plugin for CKEditor5</a> to allow footnotes.</li></ul><p>Apart from that, Trilium also has its own set of specific plugins such as:</p><ul><li><a class=\"reference-link\" href=\"#root/_help_2x0ZAX9ePtzV\">Cut to subnote</a></li><li><a class=\"reference-link\" href=\"#root/_help_nBAXQFj20hS1\">Include Note</a>, which also shows drawing canvases and <a href=\"#root/_help_CohkqWQC1iBv\">Mermaid diagrams</a> in place.</li><li>Mentions, for linking pages.</li><li><a class=\"reference-link\" href=\"#root/_help_Oau6X9rCuegd\">Markdown</a></li><li><a href=\"#root/_help_QEAPj01N5f7w\">Reference links</a></li><li><a href=\"#root/_help_NwBbFdNZ9h7O\">Admonitions</a>, we ended up creating our own plugin but <a href=\"https://github.com/aarkue/ckeditor5-admonition\">aarkue/ckeditor5-admonition</a> was a good inspiration (including the toolbar icon).</li></ul>",
"_help_m1lbrzyKDaRB": "<p>Whereas some applications use file names to uniquely identify notes, Trilium uses the concept of Note ID.</p><p>Generally, the Note ID is a 12-character long alphanumeric sequence (including both lower and upper case letter) that is randomly generated for each new note.</p><h2>How does the import/export affect the note IDs</h2><p>When notes are exported, their note ID is kept in the metadata of the export. However when they are imported back in, a new note ID is generated for all the notes. This also includes other entities that are part of the import/export process such as&nbsp;<a class=\"reference-link\" href=\"#root/_help_0vhv7lsOLy82\">Attachments</a>.</p><h2>Note collisions</h2><p>Since the Note ID is a fixed-width randomly generated number, due to the <a href=\"https://en.wikipedia.org/wiki/Pigeonhole_principle\">pigeonhole principle</a>, there is a possibility that a newly created note will have the same ID as an existing note.</p><p>Since the note ID is alphanumeric and the length is 12 we have&nbsp;<span class=\"math-tex\">\\(62^{12}\\)</span>&nbsp;unique IDs. However since we are generating them randomly, we can use a collision calculator such as the one for <a href=\"https://alex7kom.github.io/nano-nanoid-cc/?alphabet=0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz&amp;size=12&amp;speed=1000&amp;speedUnit=hour\">Nano ID</a> to determine that we'd need to create 1000 notes per hour every hour for 9 centuries in order to have at least 1% probability of a note collision.</p><p>As such, Trilium does not take any explicit action against potential note collisions, similar to other software that makes uses of unique hashes such as <a href=\"https://stackoverflow.com/questions/10434326/hash-collision-in-git\">Git</a>. If one would theoretically occur, what would most likely happen is that the existing note will be replaced by the new one.</p>",
"_help_z8O2VG4ZZJD7": "<p>This is the internal API used by the Trilium Notes client application.</p><p><strong>Important:</strong> This API is primarily intended for internal use by the Trilium client. For external integrations, please use the <a href=\"https://github.com/TriliumNext/Trilium/blob/main/docs/User%20Guide/User%20Guide/Advanced%20Usage/ETAPI%20(REST%20API).md#etapi-rest-api\">ETAPI (External Trilium API)</a> instead.</p><h2>Signing in</h2><p>Most endpoints require session-based authentication. You can authenticate using:</p><ul><li><strong>Password login</strong>: POST to <code>/api/login</code> with password</li><li><strong>Token authentication</strong>: Generate a token via <code>/api/login/token</code></li><li><strong>Sync authentication</strong>: Use document secret for sync operations</li></ul><h2>Rate Limiting</h2><p>Authentication endpoints are rate-limited to prevent brute force attacks.</p><h2>CSRF Protection</h2><p>State-changing operations require CSRF tokens when using session authentication.</p><h2><span class=\"tn-icon bx bx-lock-alt\"></span> Authentication</h2><h3><code>sessionAuth</code></h3><p>API key in the <code>trilium.sid</code> cookie.</p><p>Session cookie obtained from login</p><h3><code>tokenAuth</code></h3><p>API key in the <code>Authorization</code> header.</p><p>API token in format \"Bearer {token}\"</p><h2><span class=\"tn-icon bx bx-log-in\"></span> Sessions</h2><p>Login, logout, and session management</p><h3>Login with password</h3><p><code>POST /api/login</code> · <code>login</code></p><p>Responds with 401 when the password is wrong or, with two-factor authentication enabled, the TOTP token is missing or wrong.</p><p><strong>Authorization</strong>: none</p><p><strong>Request body</strong> (required)</p><ul><li><code>application/x-www-form-urlencoded</code>: <code>object</code></li></ul><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>password</code> <br><em>required</em></td><td><code>string (password)</code></td></tr><tr><td><code>totpToken</code></td><td><code>string</code> <br>TOTP token if 2FA is enabled</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Login successful</p><div class=\"trilium-tab-panel\"><p><strong>Response headers</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>Set-Cookie</code></td><td><code>string</code> <br>Example: <code>trilium.sid=s%3A...</code></td></tr></tbody></table></figure><p>No content.</p></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">401: Invalid credentials</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Generate API token</h3><p><code>POST /api/login/token</code> · <code>generateToken</code></p><p><strong>Authorization</strong>: none</p><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>password</code> <br><em>required</em></td><td><code>string (password)</code></td></tr><tr><td><code>tokenName</code></td><td><code>string</code> <br>Optional name for the token</td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"password\": \"string\",\n \"tokenName\": \"string\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">201: Token created</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>authToken</code></td><td><code>string</code> <br>API authentication token</td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"authToken\": \"string\"\n}</code></pre></div></div></div></section></div><h3>Sync login using document secret</h3><p><code>POST /api/login/sync</code> · <code>loginSync</code></p><p><strong>Authorization</strong>: none</p><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>timestamp</code> <br><em>required</em></td><td><code>string (date-time)</code></td></tr><tr><td><code>hash</code> <br><em>required</em></td><td><code>string</code> <br>HMAC hash of document secret and timestamp</td></tr><tr><td><code>syncVersion</code> <br><em>required</em></td><td><code>integer</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"timestamp\": \"2019-08-24T14:15:22Z\",\n \"hash\": \"string\",\n \"syncVersion\": 0\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Login successful</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>instanceId</code></td><td><code>string</code></td></tr><tr><td><code>maxEntityChangeId</code></td><td><code>string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"instanceId\": \"string\",\n \"maxEntityChangeId\": \"string\"\n}</code></pre></div></div></div></section></div><h3>Enter protected session</h3><p><code>POST /api/login/protected</code> · <code>enterProtectedSession</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>password</code> <br><em>required</em></td><td><code>string (password)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"password\": \"string\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Protected session entered</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">401: Invalid password</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Exit protected session</h3><p><code>POST /api/logout/protected</code> · <code>exitProtectedSession</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Protected session exited</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Keep protected session alive</h3><p><code>POST /api/login/protected/touch</code> · <code>touchProtectedSession</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Session refreshed</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Get OAuth status</h3><p><code>GET /api/oauth/status</code> · <code>getOAuthStatus</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: OAuth status</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>enabled</code></td><td><code>boolean</code></td></tr><tr><td><code>configured</code></td><td><code>boolean</code></td></tr><tr><td><code>providers</code></td><td><code>array of string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"enabled\": true,\n \"configured\": true,\n \"providers\": [\n \"string\"\n ]\n}</code></pre></div></div></div></section></div><h3>Validate OAuth configuration</h3><p><code>GET /api/oauth/validate</code> · <code>validateOAuth</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: OAuth validation result</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>valid</code></td><td><code>boolean</code></td></tr><tr><td><code>errors</code></td><td><code>array of string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"valid\": true,\n \"errors\": [\n \"string\"\n ]\n}</code></pre></div></div></div></section></div><h2><span class=\"tn-icon bx bx-note\"></span> Notes</h2><p>Core note operations</p><h3>Get note metadata</h3><p><code>GET /api/notes/{noteId}</code> · <code>getNote</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Note metadata</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Note\"><code>Note</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code> <br>Note title</td></tr><tr><td><code>type</code> <br><em>required</em></td><td><a href=\"#schema-NoteType\"><code>NoteType</code></a> <br>One of <code>text</code>, <code>code</code>, <code>render</code>, <code>file</code>, <code>image</code>, <code>search</code>, <code>relationMap</code>, <code>book</code>, <code>noteMap</code>, <code>mermaid</code>, <code>canvas</code>, <code>webView</code>, <code>launcher</code>, <code>doc</code>, <code>contentWidget</code>, <code>mindMap</code>, <code>geoMap</code>.</td></tr><tr><td><code>mime</code> <br><em>required</em></td><td><code>string</code> <br>MIME type</td></tr><tr><td><code>isProtected</code> <br><em>required</em></td><td><code>boolean</code> <br>Whether note is protected</td></tr><tr><td><code>blobId</code></td><td><code>string</code> <br>ID of content blob</td></tr><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"noteId\": \"ur11rSfHkzeV\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"text/html\",\n \"isProtected\": true,\n \"blobId\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">404: Note not found</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Delete note</h3><p><code>DELETE /api/notes/{noteId}</code> · <code>deleteNote</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Query parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>taskId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>eraseNotes</code></td><td><code>boolean</code></td></tr><tr><td><code>last</code> <br><em>required</em></td><td><code>boolean</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Note deleted</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">404: Note not found</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Get note content</h3><p><code>GET /api/notes/{noteId}/blob</code> · <code>getNoteContent</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Note content</p><div class=\"trilium-tab-panel\"><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\"><code>text/html</code>: <code>string</code></p><div class=\"trilium-tab-panel\"><p>&nbsp;</p></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\"><code>text/plain</code>: <code>string</code></p><div class=\"trilium-tab-panel\"><p>&nbsp;</p></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\"><code>application/json</code>: <code>object</code></p><div class=\"trilium-tab-panel\"><pre><code class=\"language-application-json\">{}</code></pre></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\"><code>application/octet-stream</code>: <code>string (binary)</code></p><div class=\"trilium-tab-panel\"><p>&nbsp;</p></div></section></div></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">404: Note not found</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Update note content</h3><p><code>PUT /api/notes/{noteId}/data</code> · <code>updateNoteContent</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>content</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>attachments</code></td><td>array of <a href=\"#schema-Attachment\"><code>Attachment</code></a></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"content\": \"string\",\n \"attachments\": [\n {\n \"attachmentId\": \"string\",\n \"ownerId\": \"string\",\n \"role\": \"image\",\n \"mime\": \"string\",\n \"title\": \"string\",\n \"blobId\": \"string\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n }\n ]\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Content updated</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">404: Note not found</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Get note timestamps</h3><p><code>GET /api/notes/{noteId}/metadata</code> · <code>getNoteMetadata</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Note timestamps</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Timestamps\"><code>Timestamps</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">404: Note not found</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Change note title</h3><p><code>PUT /api/notes/{noteId}/title</code> · <code>updateNoteTitle</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"title\": \"string\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Title updated</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">404: Note not found</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Change note type and MIME</h3><p><code>PUT /api/notes/{noteId}/type</code> · <code>updateNoteType</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>type</code> <br><em>required</em></td><td><a href=\"#schema-NoteType\"><code>NoteType</code></a> <br>One of <code>text</code>, <code>code</code>, <code>render</code>, <code>file</code>, <code>image</code>, <code>search</code>, <code>relationMap</code>, <code>book</code>, <code>noteMap</code>, <code>mermaid</code>, <code>canvas</code>, <code>webView</code>, <code>launcher</code>, <code>doc</code>, <code>contentWidget</code>, <code>mindMap</code>, <code>geoMap</code>.</td></tr><tr><td><code>mime</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"type\": \"text\",\n \"mime\": \"string\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Type updated</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">404: Note not found</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Protect or unprotect note</h3><p><code>PUT /api/notes/{noteId}/protect/{isProtected}</code> · <code>protectNote</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>isProtected</code> <br><em>required</em></td><td><code>boolean</code></td></tr></tbody></table></figure><p><strong>Query parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>subtree</code></td><td><code>boolean</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Protection status updated</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">404: Note not found</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Undelete note</h3><p><code>PUT /api/notes/{noteId}/undelete</code> · <code>undeleteNote</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Note undeleted</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">404: Note not found</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Create new note</h3><p><code>POST /api/notes/{parentNoteId}/children</code> · <code>createNote</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>parentNoteId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Query parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>target</code></td><td><code>string</code> <br>One of <code>after</code>, <code>into</code>.</td></tr><tr><td><code>targetBranchId</code></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <a href=\"#schema-CreateNoteRequest\"><code>CreateNoteRequest</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>content</code></td><td><code>string</code></td></tr><tr><td><code>type</code> <br><em>required</em></td><td><a href=\"#schema-NoteType\"><code>NoteType</code></a> <br>One of <code>text</code>, <code>code</code>, <code>render</code>, <code>file</code>, <code>image</code>, <code>search</code>, <code>relationMap</code>, <code>book</code>, <code>noteMap</code>, <code>mermaid</code>, <code>canvas</code>, <code>webView</code>, <code>launcher</code>, <code>doc</code>, <code>contentWidget</code>, <code>mindMap</code>, <code>geoMap</code>.</td></tr><tr><td><code>mime</code></td><td><code>string</code></td></tr><tr><td><code>isProtected</code></td><td><code>boolean</code></td></tr><tr><td><code>isExpanded</code></td><td><code>boolean</code></td></tr><tr><td><code>notePosition</code></td><td><code>integer</code></td></tr><tr><td><code>prefix</code></td><td><code>string</code></td></tr><tr><td><code>parentNoteId</code></td><td><code>string</code></td></tr><tr><td><code>templateNoteId</code></td><td><code>string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"title\": \"string\",\n \"content\": \"string\",\n \"type\": \"text\",\n \"mime\": \"string\",\n \"isProtected\": true,\n \"isExpanded\": true,\n \"notePosition\": 0,\n \"prefix\": \"string\",\n \"parentNoteId\": \"string\",\n \"templateNoteId\": \"string\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">201: Note created</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>note</code></td><td><a href=\"#schema-Note\"><code>Note</code></a></td></tr><tr><td><code>branch</code></td><td><a href=\"#schema-Branch\"><code>Branch</code></a></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"note\": {\n \"noteId\": \"ur11rSfHkzeV\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"text/html\",\n \"isProtected\": true,\n \"blobId\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n },\n \"branch\": {\n \"branchId\": \"string\",\n \"noteId\": \"string\",\n \"parentNoteId\": \"string\",\n \"notePosition\": 0,\n \"prefix\": \"string\",\n \"isExpanded\": true\n }\n}</code></pre></div></div></div></section></div><h3>Duplicate note subtree</h3><p><code>POST /api/notes/{noteId}/duplicate/{parentNoteId}</code> · <code>duplicateNote</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>parentNoteId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">201: Note duplicated</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Note\"><code>Note</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code> <br>Note title</td></tr><tr><td><code>type</code> <br><em>required</em></td><td><a href=\"#schema-NoteType\"><code>NoteType</code></a> <br>One of <code>text</code>, <code>code</code>, <code>render</code>, <code>file</code>, <code>image</code>, <code>search</code>, <code>relationMap</code>, <code>book</code>, <code>noteMap</code>, <code>mermaid</code>, <code>canvas</code>, <code>webView</code>, <code>launcher</code>, <code>doc</code>, <code>contentWidget</code>, <code>mindMap</code>, <code>geoMap</code>.</td></tr><tr><td><code>mime</code> <br><em>required</em></td><td><code>string</code> <br>MIME type</td></tr><tr><td><code>isProtected</code> <br><em>required</em></td><td><code>boolean</code> <br>Whether note is protected</td></tr><tr><td><code>blobId</code></td><td><code>string</code> <br>ID of content blob</td></tr><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"noteId\": \"ur11rSfHkzeV\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"text/html\",\n \"isProtected\": true,\n \"blobId\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section></div><h3>Force save revision</h3><p><code>POST /api/notes/{noteId}/revision</code> · <code>saveRevision</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">201: Revision saved</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Revision\"><code>Revision</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>revisionId</code></td><td><code>string</code></td></tr><tr><td><code>noteId</code></td><td><code>string</code></td></tr><tr><td><code>title</code></td><td><code>string</code></td></tr><tr><td><code>type</code></td><td><a href=\"#schema-NoteType\"><code>NoteType</code></a> <br>One of <code>text</code>, <code>code</code>, <code>render</code>, <code>file</code>, <code>image</code>, <code>search</code>, <code>relationMap</code>, <code>book</code>, <code>noteMap</code>, <code>mermaid</code>, <code>canvas</code>, <code>webView</code>, <code>launcher</code>, <code>doc</code>, <code>contentWidget</code>, <code>mindMap</code>, <code>geoMap</code>.</td></tr><tr><td><code>mime</code></td><td><code>string</code></td></tr><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateCreated</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"revisionId\": \"string\",\n \"noteId\": \"string\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section></div><h3>Sort child notes</h3><p><code>PUT /api/notes/{noteId}/sort-children</code> · <code>sortChildren</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>sortBy</code></td><td><code>string</code> <br>One of <code>title</code>, <code>dateCreated</code>, <code>dateModified</code>.</td></tr><tr><td><code>sortDirection</code></td><td><code>string</code> <br>One of <code>asc</code>, <code>desc</code>.</td></tr><tr><td><code>foldersFirst</code></td><td><code>boolean</code></td></tr><tr><td><code>sortNatural</code></td><td><code>boolean</code></td></tr><tr><td><code>sortLocale</code></td><td><code>string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"sortBy\": \"title\",\n \"sortDirection\": \"asc\",\n \"foldersFirst\": true,\n \"sortNatural\": true,\n \"sortLocale\": \"string\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Children sorted</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Convert note to attachment</h3><p><code>POST /api/notes/{noteId}/convert-to-attachment</code> · <code>convertToAttachment</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Note converted to attachment</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Attachment\"><code>Attachment</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>attachmentId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>ownerId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>role</code> <br><em>required</em></td><td><code>string</code> <br>One of <code>image</code>, <code>file</code>.</td></tr><tr><td><code>mime</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>blobId</code></td><td><code>string</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"attachmentId\": \"string\",\n \"ownerId\": \"string\",\n \"role\": \"image\",\n \"mime\": \"string\",\n \"title\": \"string\",\n \"blobId\": \"string\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section></div><h3>Upload file to note</h3><p><code>PUT /api/notes/{noteId}/file</code> · <code>uploadFileToNote</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Request body</strong> (required)</p><ul><li><code>multipart/form-data</code>: <code>object</code></li></ul><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>upload</code></td><td><code>string (binary)</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: File uploaded</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Open file note</h3><p><code>GET /api/notes/{noteId}/open</code> · <code>openFileNote</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: File content</p><div class=\"trilium-tab-panel\"><ul><li><code>application/octet-stream</code>: <code>string (binary)</code></li></ul></div></section></div><h3>Download file note</h3><p><code>GET /api/notes/download/{noteId}</code> · <code>downloadFileNote</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: File content</p><div class=\"trilium-tab-panel\"><p><strong>Response headers</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>Content-Disposition</code></td><td><code>string</code> <br>Example: <code>attachment; filename=\"document.pdf\"</code></td></tr></tbody></table></figure><ul><li><code>application/octet-stream</code>: <code>string (binary)</code></li></ul></div></section></div><h3>Download file note (alternative path)</h3><p><code>GET /api/notes/{noteId}/download</code> · <code>downloadFileNoteAlt</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: File content</p><div class=\"trilium-tab-panel\"><p><strong>Response headers</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>Content-Disposition</code></td><td><code>string</code> <br>Example: <code>attachment; filename=\"document.pdf\"</code></td></tr></tbody></table></figure><ul><li><code>application/octet-stream</code>: <code>string (binary)</code></li></ul></div></section></div><h3>Save note to temp directory</h3><p><code>POST /api/notes/{noteId}/save-to-tmp-dir</code> · <code>saveToTmpDir</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: File saved to temp directory</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>filePath</code></td><td><code>string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"filePath\": \"string\"\n}</code></pre></div></div></div></section></div><h3>Update note from modified temp file</h3><p><code>POST /api/notes/{noteId}/upload-modified-file</code> · <code>uploadModifiedFile</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>filePath</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"filePath\": \"string\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Note updated from file</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Get image from note</h3><p><code>GET /api/images/{noteId}/{filename}</code> · <code>getNoteImage</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>filename</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Image content</p><div class=\"trilium-tab-panel\"><ul><li><code>image/*</code>: <code>string (binary)</code></li></ul></div></section></div><h3>Update image note</h3><p><code>PUT /api/images/{noteId}</code> · <code>updateImageNote</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Request body</strong> (required)</p><ul><li><code>multipart/form-data</code>: <code>object</code></li></ul><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>upload</code></td><td><code>string (binary)</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Image updated</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Execute bulk action</h3><p><code>POST /api/bulk-action/execute</code> · <code>executeBulkAction</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>action</code></td><td><code>string</code></td></tr><tr><td><code>noteIds</code></td><td><code>array of string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"action\": \"string\",\n \"noteIds\": [\n \"string\"\n ]\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Bulk action results</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Get affected notes count</h3><p><code>POST /api/bulk-action/affected-notes</code> · <code>getAffectedNotesCount</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>action</code></td><td><code>string</code></td></tr><tr><td><code>noteIds</code></td><td><code>array of string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"action\": \"string\",\n \"noteIds\": [\n \"string\"\n ]\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Affected notes count</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>count</code></td><td><code>integer</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"count\": 0\n}</code></pre></div></div></div></section></div><h3>Preview note deletion</h3><p><code>POST /api/delete-notes-preview</code> · <code>previewNoteDeletion</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>branchIdsToDelete</code></td><td><code>array of string</code></td></tr><tr><td><code>deleteAllClones</code></td><td><code>boolean</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"branchIdsToDelete\": [\n \"string\"\n ],\n \"deleteAllClones\": true\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Deletion preview</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>notesToDelete</code></td><td><code>array of string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"notesToDelete\": [\n \"string\"\n ]\n}</code></pre></div></div></div></section></div><h3>Erase deleted notes</h3><p><code>POST /api/notes/erase-deleted-notes-now</code> · <code>eraseDeletedNotes</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Deleted notes erased</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h2><span class=\"tn-icon bx bx-sitemap\"></span> Tree</h2><p>Note tree structure and branches</p><h3>Get tree structure</h3><p><code>GET /api/tree</code> · <code>getTree</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Query parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>subTreeNoteId</code></td><td><code>string</code> <br>Limit tree to this note and descendants</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Tree structure</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>notes</code></td><td>array of <a href=\"#schema-Note\"><code>Note</code></a></td></tr><tr><td><code>branches</code></td><td>array of <a href=\"#schema-Branch\"><code>Branch</code></a></td></tr><tr><td><code>attributes</code></td><td>array of <a href=\"#schema-Attribute\"><code>Attribute</code></a></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"notes\": [\n {\n \"noteId\": \"ur11rSfHkzeV\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"text/html\",\n \"isProtected\": true,\n \"blobId\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n }\n ],\n \"branches\": [\n {\n \"branchId\": \"string\",\n \"noteId\": \"string\",\n \"parentNoteId\": \"string\",\n \"notePosition\": 0,\n \"prefix\": \"string\",\n \"isExpanded\": true\n }\n ],\n \"attributes\": [\n {\n \"attributeId\": \"string\",\n \"noteId\": \"string\",\n \"type\": \"label\",\n \"name\": \"string\",\n \"value\": \"string\",\n \"position\": 0,\n \"isInheritable\": true\n }\n ]\n}</code></pre></div></div></div></section></div><h3>Load specific notes</h3><p><code>POST /api/tree/load</code> · <code>loadNotes</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteIds</code> <br><em>required</em></td><td><code>array of string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"noteIds\": [\n \"string\"\n ]\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Loaded notes</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>notes</code></td><td>array of <a href=\"#schema-Note\"><code>Note</code></a></td></tr><tr><td><code>branches</code></td><td>array of <a href=\"#schema-Branch\"><code>Branch</code></a></td></tr><tr><td><code>attributes</code></td><td>array of <a href=\"#schema-Attribute\"><code>Attribute</code></a></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"notes\": [\n {\n \"noteId\": \"ur11rSfHkzeV\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"text/html\",\n \"isProtected\": true,\n \"blobId\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n }\n ],\n \"branches\": [\n {\n \"branchId\": \"string\",\n \"noteId\": \"string\",\n \"parentNoteId\": \"string\",\n \"notePosition\": 0,\n \"prefix\": \"string\",\n \"isExpanded\": true\n }\n ],\n \"attributes\": [\n {\n \"attributeId\": \"string\",\n \"noteId\": \"string\",\n \"type\": \"label\",\n \"name\": \"string\",\n \"value\": \"string\",\n \"position\": 0,\n \"isInheritable\": true\n }\n ]\n}</code></pre></div></div></div></section></div><h3>Delete branch</h3><p><code>DELETE /api/branches/{branchId}</code> · <code>deleteBranch</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>branchId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Query parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>taskId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>eraseNotes</code></td><td><code>boolean</code></td></tr><tr><td><code>last</code> <br><em>required</em></td><td><code>boolean</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Branch deleted</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteDeleted</code></td><td><code>boolean</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"noteDeleted\": true\n}</code></pre></div></div></div></section></div><h3>Move branch to new parent</h3><p><code>PUT /api/branches/{branchId}/move-to/{parentBranchId}</code> · <code>moveBranchToParent</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>branchId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>parentBranchId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Branch moved</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Move branch before another</h3><p><code>PUT /api/branches/{branchId}/move-before/{beforeBranchId}</code> · <code>moveBranchBefore</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>branchId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>beforeBranchId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Branch moved</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Move branch after another</h3><p><code>PUT /api/branches/{branchId}/move-after/{afterBranchId}</code> · <code>moveBranchAfter</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>branchId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>afterBranchId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Branch moved</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Set branch expanded state</h3><p><code>PUT /api/branches/{branchId}/expanded/{expanded}</code> · <code>setBranchExpanded</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>branchId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>expanded</code> <br><em>required</em></td><td><code>boolean</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Expanded state updated</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Set subtree expanded state</h3><p><code>PUT /api/branches/{branchId}/expanded-subtree/{expanded}</code> · <code>setSubtreeExpanded</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>branchId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>expanded</code> <br><em>required</em></td><td><code>boolean</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Subtree expanded state updated</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Set branch prefix</h3><p><code>PUT /api/branches/{branchId}/set-prefix</code> · <code>setBranchPrefix</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>branchId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>prefix</code></td><td><code>string | null</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"prefix\": \"string\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Prefix updated</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Clone note to branch</h3><p><code>PUT /api/notes/{noteId}/clone-to-branch/{parentBranchId}</code> · <code>cloneToBranch</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>parentBranchId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Note cloned</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Branch\"><code>Branch</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>branchId</code> <br><em>required</em></td><td><code>string</code> <br>Branch ID (parentNoteId_noteId)</td></tr><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>parentNoteId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>notePosition</code> <br><em>required</em></td><td><code>integer</code></td></tr><tr><td><code>prefix</code></td><td><code>string | null</code></td></tr><tr><td><code>isExpanded</code></td><td><code>boolean</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"branchId\": \"string\",\n \"noteId\": \"string\",\n \"parentNoteId\": \"string\",\n \"notePosition\": 0,\n \"prefix\": \"string\",\n \"isExpanded\": true\n}</code></pre></div></div></div></section></div><h3>Clone note to parent note</h3><p><code>PUT /api/notes/{noteId}/clone-to-note/{parentNoteId}</code> · <code>cloneToNote</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>parentNoteId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Note cloned</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Branch\"><code>Branch</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>branchId</code> <br><em>required</em></td><td><code>string</code> <br>Branch ID (parentNoteId_noteId)</td></tr><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>parentNoteId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>notePosition</code> <br><em>required</em></td><td><code>integer</code></td></tr><tr><td><code>prefix</code></td><td><code>string | null</code></td></tr><tr><td><code>isExpanded</code></td><td><code>boolean</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"branchId\": \"string\",\n \"noteId\": \"string\",\n \"parentNoteId\": \"string\",\n \"notePosition\": 0,\n \"prefix\": \"string\",\n \"isExpanded\": true\n}</code></pre></div></div></div></section></div><h3>Clone note after branch</h3><p><code>PUT /api/notes/{noteId}/clone-after/{afterBranchId}</code> · <code>cloneAfterBranch</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>afterBranchId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Note cloned</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Branch\"><code>Branch</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>branchId</code> <br><em>required</em></td><td><code>string</code> <br>Branch ID (parentNoteId_noteId)</td></tr><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>parentNoteId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>notePosition</code> <br><em>required</em></td><td><code>integer</code></td></tr><tr><td><code>prefix</code></td><td><code>string | null</code></td></tr><tr><td><code>isExpanded</code></td><td><code>boolean</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"branchId\": \"string\",\n \"noteId\": \"string\",\n \"parentNoteId\": \"string\",\n \"notePosition\": 0,\n \"prefix\": \"string\",\n \"isExpanded\": true\n}</code></pre></div></div></div></section></div><h3>Toggle note presence in parent</h3><p><code>PUT /api/notes/{noteId}/toggle-in-parent/{parentNoteId}/{present}</code> · <code>toggleInParent</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>parentNoteId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>present</code> <br><em>required</em></td><td><code>boolean</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Presence toggled</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h2><span class=\"tn-icon bx bx-purchase-tag\"></span> Attributes</h2><p>Note attributes and metadata</p><h3>Get effective note attributes</h3><p><code>GET /api/notes/{noteId}/attributes</code> · <code>getNoteAttributes</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Note attributes</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: array of <a href=\"#schema-Attribute\"><code>Attribute</code></a></li></ul><pre><code class=\"language-application-json\">[\n {\n \"attributeId\": \"string\",\n \"noteId\": \"string\",\n \"type\": \"label\",\n \"name\": \"string\",\n \"value\": \"string\",\n \"position\": 0,\n \"isInheritable\": true\n }\n]</code></pre></div></section></div><h3>Update all note attributes</h3><p><code>PUT /api/notes/{noteId}/attributes</code> · <code>updateNoteAttributes</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: array of <a href=\"#schema-Attribute\"><code>Attribute</code></a></li></ul><pre><code class=\"language-application-json\">[\n {\n \"attributeId\": \"string\",\n \"noteId\": \"string\",\n \"type\": \"label\",\n \"name\": \"string\",\n \"value\": \"string\",\n \"position\": 0,\n \"isInheritable\": true\n }\n]</code></pre><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Attributes updated</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Add note attribute</h3><p><code>POST /api/notes/{noteId}/attributes</code> · <code>addNoteAttribute</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <a href=\"#schema-Attribute\"><code>Attribute</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>attributeId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>type</code> <br><em>required</em></td><td><code>string</code> <br>One of <code>label</code>, <code>relation</code>.</td></tr><tr><td><code>name</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>value</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>position</code></td><td><code>integer</code></td></tr><tr><td><code>isInheritable</code></td><td><code>boolean</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"attributeId\": \"string\",\n \"noteId\": \"string\",\n \"type\": \"label\",\n \"name\": \"string\",\n \"value\": \"string\",\n \"position\": 0,\n \"isInheritable\": true\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">201: Attribute added</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Attribute\"><code>Attribute</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>attributeId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>type</code> <br><em>required</em></td><td><code>string</code> <br>One of <code>label</code>, <code>relation</code>.</td></tr><tr><td><code>name</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>value</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>position</code></td><td><code>integer</code></td></tr><tr><td><code>isInheritable</code></td><td><code>boolean</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"attributeId\": \"string\",\n \"noteId\": \"string\",\n \"type\": \"label\",\n \"name\": \"string\",\n \"value\": \"string\",\n \"position\": 0,\n \"isInheritable\": true\n}</code></pre></div></div></div></section></div><h3>Delete attribute</h3><p><code>DELETE /api/notes/{noteId}/attributes/{attributeId}</code> · <code>deleteAttribute</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>attributeId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Attribute deleted</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Update single attribute</h3><p><code>PUT /api/notes/{noteId}/attribute</code> · <code>updateAttribute</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <a href=\"#schema-Attribute\"><code>Attribute</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>attributeId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>type</code> <br><em>required</em></td><td><code>string</code> <br>One of <code>label</code>, <code>relation</code>.</td></tr><tr><td><code>name</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>value</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>position</code></td><td><code>integer</code></td></tr><tr><td><code>isInheritable</code></td><td><code>boolean</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"attributeId\": \"string\",\n \"noteId\": \"string\",\n \"type\": \"label\",\n \"name\": \"string\",\n \"value\": \"string\",\n \"position\": 0,\n \"isInheritable\": true\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Attribute updated</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Set attribute value</h3><p><code>PUT /api/notes/{noteId}/set-attribute</code> · <code>setAttribute</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>type</code> <br><em>required</em></td><td><code>string</code> <br>One of <code>label</code>, <code>relation</code>.</td></tr><tr><td><code>name</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>value</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"type\": \"label\",\n \"name\": \"string\",\n \"value\": \"string\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Attribute set</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Create relation</h3><p><code>PUT /api/notes/{noteId}/relations/{name}/to/{targetNoteId}</code> · <code>createRelation</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>name</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>targetNoteId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Relation created</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Delete relation</h3><p><code>DELETE /api/notes/{noteId}/relations/{name}/to/{targetNoteId}</code> · <code>deleteRelation</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>name</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>targetNoteId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Relation deleted</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Get attribute name suggestions</h3><p><code>GET /api/attribute-names</code> · <code>getAttributeNames</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Query parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>type</code> <br><em>required</em></td><td><code>string</code> <br>One of <code>label</code>, <code>relation</code>.</td></tr><tr><td><code>query</code></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Attribute names</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>array of string</code></li></ul><pre><code class=\"language-application-json\">[\n \"string\"\n]</code></pre></div></section></div><h3>Get values for attribute</h3><p><code>GET /api/attribute-values/{attributeName}</code> · <code>getAttributeValues</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>attributeName</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Attribute values</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>array of string</code></li></ul><pre><code class=\"language-application-json\">[\n \"string\"\n]</code></pre></div></section></div><h2><span class=\"tn-icon bx bx-paperclip\"></span> Attachments</h2><p>File attachments</p><h3>Stream file with partial content support</h3><p><code>GET /api/attachments/{attachmentId}/open-partial</code> · <code>openPartialFileAttachment</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>attachmentId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Header parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>Range</code></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">206: Partial content</p><div class=\"trilium-tab-panel\"><p><strong>Response headers</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>Content-Range</code></td><td><code>string</code> <br>Example: <code>bytes 0-1023/146515</code></td></tr></tbody></table></figure><ul><li><code>application/octet-stream</code>: <code>string (binary)</code></li></ul></div></section></div><h3>Get note attachments</h3><p><code>GET /api/notes/{noteId}/attachments</code> · <code>getNoteAttachments</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Note attachments</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: array of <a href=\"#schema-Attachment\"><code>Attachment</code></a></li></ul><pre><code class=\"language-application-json\">[\n {\n \"attachmentId\": \"string\",\n \"ownerId\": \"string\",\n \"role\": \"image\",\n \"mime\": \"string\",\n \"title\": \"string\",\n \"blobId\": \"string\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n }\n]</code></pre></div></section></div><h3>Save attachment</h3><p><code>POST /api/notes/{noteId}/attachments</code> · <code>saveAttachment</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Query parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>matchBy</code></td><td><code>string</code> <br>One of <code>attachmentId</code>, <code>title</code>.</td></tr></tbody></table></figure><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <a href=\"#schema-Attachment\"><code>Attachment</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>attachmentId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>ownerId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>role</code> <br><em>required</em></td><td><code>string</code> <br>One of <code>image</code>, <code>file</code>.</td></tr><tr><td><code>mime</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>blobId</code></td><td><code>string</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"attachmentId\": \"string\",\n \"ownerId\": \"string\",\n \"role\": \"image\",\n \"mime\": \"string\",\n \"title\": \"string\",\n \"blobId\": \"string\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">201: Attachment saved</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Attachment\"><code>Attachment</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>attachmentId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>ownerId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>role</code> <br><em>required</em></td><td><code>string</code> <br>One of <code>image</code>, <code>file</code>.</td></tr><tr><td><code>mime</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>blobId</code></td><td><code>string</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"attachmentId\": \"string\",\n \"ownerId\": \"string\",\n \"role\": \"image\",\n \"mime\": \"string\",\n \"title\": \"string\",\n \"blobId\": \"string\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section></div><h3>Upload attachment file</h3><p><code>POST /api/notes/{noteId}/attachments/upload</code> · <code>uploadAttachment</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Query parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>link</code></td><td><code>boolean</code> <br><code>true</code> answers with a link to the attachment instead of an image URL, and stores a picture as uploaded, without compressing it or shortening its name.</td></tr></tbody></table></figure><p><strong>Request body</strong> (required)</p><ul><li><code>multipart/form-data</code>: <code>object</code></li></ul><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>upload</code></td><td><code>string (binary)</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">201: Attachment uploaded</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Attachment\"><code>Attachment</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>attachmentId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>ownerId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>role</code> <br><em>required</em></td><td><code>string</code> <br>One of <code>image</code>, <code>file</code>.</td></tr><tr><td><code>mime</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>blobId</code></td><td><code>string</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"attachmentId\": \"string\",\n \"ownerId\": \"string\",\n \"role\": \"image\",\n \"mime\": \"string\",\n \"title\": \"string\",\n \"blobId\": \"string\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section></div><h3>Get attachment metadata</h3><p><code>GET /api/attachments/{attachmentId}</code> · <code>getAttachment</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>attachmentId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Attachment metadata</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Attachment\"><code>Attachment</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>attachmentId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>ownerId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>role</code> <br><em>required</em></td><td><code>string</code> <br>One of <code>image</code>, <code>file</code>.</td></tr><tr><td><code>mime</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>blobId</code></td><td><code>string</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"attachmentId\": \"string\",\n \"ownerId\": \"string\",\n \"role\": \"image\",\n \"mime\": \"string\",\n \"title\": \"string\",\n \"blobId\": \"string\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section></div><h3>Delete attachment</h3><p><code>DELETE /api/attachments/{attachmentId}</code> · <code>deleteAttachment</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>attachmentId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Attachment deleted</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Get attachment content</h3><p><code>GET /api/attachments/{attachmentId}/blob</code> · <code>getAttachmentBlob</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>attachmentId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Query parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>preview</code></td><td><code>boolean</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Attachment content</p><div class=\"trilium-tab-panel\"><ul><li><code>application/octet-stream</code>: <code>string (binary)</code></li></ul></div></section></div><h3>Rename attachment</h3><p><code>PUT /api/attachments/{attachmentId}/rename</code> · <code>renameAttachment</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>attachmentId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"title\": \"string\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Attachment renamed</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Convert attachment to note</h3><p><code>POST /api/attachments/{attachmentId}/convert-to-note</code> · <code>convertAttachmentToNote</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>attachmentId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Attachment converted to note</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Note\"><code>Note</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code> <br>Note title</td></tr><tr><td><code>type</code> <br><em>required</em></td><td><a href=\"#schema-NoteType\"><code>NoteType</code></a> <br>One of <code>text</code>, <code>code</code>, <code>render</code>, <code>file</code>, <code>image</code>, <code>search</code>, <code>relationMap</code>, <code>book</code>, <code>noteMap</code>, <code>mermaid</code>, <code>canvas</code>, <code>webView</code>, <code>launcher</code>, <code>doc</code>, <code>contentWidget</code>, <code>mindMap</code>, <code>geoMap</code>.</td></tr><tr><td><code>mime</code> <br><em>required</em></td><td><code>string</code> <br>MIME type</td></tr><tr><td><code>isProtected</code> <br><em>required</em></td><td><code>boolean</code> <br>Whether note is protected</td></tr><tr><td><code>blobId</code></td><td><code>string</code> <br>ID of content blob</td></tr><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"noteId\": \"ur11rSfHkzeV\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"text/html\",\n \"isProtected\": true,\n \"blobId\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section></div><h3>Update attachment file</h3><p><code>PUT /api/attachments/{attachmentId}/file</code> · <code>updateAttachmentFile</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>attachmentId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Request body</strong> (required)</p><ul><li><code>multipart/form-data</code>: <code>object</code></li></ul><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>upload</code></td><td><code>string (binary)</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Attachment file updated</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Open attachment</h3><p><code>GET /api/attachments/{attachmentId}/open</code> · <code>openAttachment</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>attachmentId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Attachment content</p><div class=\"trilium-tab-panel\"><ul><li><code>application/octet-stream</code>: <code>string (binary)</code></li></ul></div></section></div><h3>Download attachment</h3><p><code>GET /api/attachments/download/{attachmentId}</code> · <code>downloadAttachment</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>attachmentId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Attachment content</p><div class=\"trilium-tab-panel\"><p><strong>Response headers</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>Content-Disposition</code></td><td><code>string</code> <br>Example: <code>attachment; filename=\"document.pdf\"</code></td></tr></tbody></table></figure><ul><li><code>application/octet-stream</code>: <code>string (binary)</code></li></ul></div></section></div><h3>Download attachment (alternative path)</h3><p><code>GET /api/attachments/{attachmentId}/download</code> · <code>downloadAttachmentAlt</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>attachmentId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Attachment content</p><div class=\"trilium-tab-panel\"><p><strong>Response headers</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>Content-Disposition</code></td><td><code>string</code> <br>Example: <code>attachment; filename=\"document.pdf\"</code></td></tr></tbody></table></figure><ul><li><code>application/octet-stream</code>: <code>string (binary)</code></li></ul></div></section></div><h3>Get all attachment information</h3><p><code>GET /api/attachments/{attachmentId}/all</code> · <code>getAllAttachmentInfo</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>attachmentId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Attachment information</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>attachmentId</code></td><td><code>string</code></td></tr><tr><td><code>title</code></td><td><code>string</code></td></tr><tr><td><code>mime</code></td><td><code>string</code></td></tr><tr><td><code>isProtected</code></td><td><code>boolean</code></td></tr><tr><td><code>position</code></td><td><code>integer</code></td></tr><tr><td><code>contentLength</code></td><td><code>integer</code></td></tr><tr><td><code>ownerId</code></td><td><code>string</code></td></tr><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"attachmentId\": \"string\",\n \"title\": \"string\",\n \"mime\": \"string\",\n \"isProtected\": true,\n \"position\": 0,\n \"contentLength\": 0,\n \"ownerId\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section></div><h3>Save attachment to temporary directory</h3><p><code>POST /api/attachments/{attachmentId}/save-to-tmp-dir</code> · <code>saveAttachmentToTmpDir</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>attachmentId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Attachment saved</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>tmpPath</code></td><td><code>string</code> <br>Path to temporary file</td></tr><tr><td><code>success</code></td><td><code>boolean</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"tmpPath\": \"string\",\n \"success\": true\n}</code></pre></div></div></div></section></div><h3>Upload modified attachment file</h3><p><code>POST /api/attachments/{attachmentId}/upload-modified-file</code> · <code>uploadModifiedAttachmentFile</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>attachmentId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Request body</strong> (required)</p><ul><li><code>multipart/form-data</code>: <code>object</code></li></ul><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>upload</code></td><td><code>string (binary)</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Modified file uploaded</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>success</code></td><td><code>boolean</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"success\": true\n}</code></pre></div></div></div></section></div><h3>Get attached image</h3><p><code>GET /api/attachments/{attachmentId}/image/{filename}</code> · <code>getAttachmentImage</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>attachmentId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>filename</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Image content</p><div class=\"trilium-tab-panel\"><ul><li><code>image/*</code>: <code>string (binary)</code></li></ul></div></section></div><h3>Erase unused attachments</h3><p><code>POST /api/notes/erase-unused-attachments-now</code> · <code>eraseUnusedAttachments</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Unused attachments erased</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h2><span class=\"tn-icon bx bx-history\"></span> Revisions</h2><p>Note revision history</p><h3>Get note revisions</h3><p><code>GET /api/notes/{noteId}/revisions</code> · <code>getNoteRevisions</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Note revisions</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: array of <a href=\"#schema-Revision\"><code>Revision</code></a></li></ul><pre><code class=\"language-application-json\">[\n {\n \"revisionId\": \"string\",\n \"noteId\": \"string\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\"\n }\n]</code></pre></div></section></div><h3>Erase all note revisions</h3><p><code>DELETE /api/notes/{noteId}/revisions</code> · <code>eraseNoteRevisions</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Revisions erased</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Get revision details</h3><p><code>GET /api/revisions/{revisionId}</code> · <code>getRevision</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>revisionId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Revision details</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Revision\"><code>Revision</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>revisionId</code></td><td><code>string</code></td></tr><tr><td><code>noteId</code></td><td><code>string</code></td></tr><tr><td><code>title</code></td><td><code>string</code></td></tr><tr><td><code>type</code></td><td><a href=\"#schema-NoteType\"><code>NoteType</code></a> <br>One of <code>text</code>, <code>code</code>, <code>render</code>, <code>file</code>, <code>image</code>, <code>search</code>, <code>relationMap</code>, <code>book</code>, <code>noteMap</code>, <code>mermaid</code>, <code>canvas</code>, <code>webView</code>, <code>launcher</code>, <code>doc</code>, <code>contentWidget</code>, <code>mindMap</code>, <code>geoMap</code>.</td></tr><tr><td><code>mime</code></td><td><code>string</code></td></tr><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateCreated</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"revisionId\": \"string\",\n \"noteId\": \"string\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section></div><h3>Erase revision</h3><p><code>DELETE /api/revisions/{revisionId}</code> · <code>eraseRevision</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>revisionId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Revision erased</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Get revision content</h3><p><code>GET /api/revisions/{revisionId}/blob</code> · <code>getRevisionBlob</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>revisionId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Query parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>preview</code></td><td><code>boolean</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Revision content</p><div class=\"trilium-tab-panel\"><ul><li><code>text/html</code>: <code>string</code></li><li><code>text/plain</code>: <code>string</code></li><li><code>application/octet-stream</code>: <code>string (binary)</code></li></ul></div></section></div><h3>Restore revision</h3><p><code>POST /api/revisions/{revisionId}/restore</code> · <code>restoreRevision</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>revisionId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Revision restored</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Note\"><code>Note</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code> <br>Note title</td></tr><tr><td><code>type</code> <br><em>required</em></td><td><a href=\"#schema-NoteType\"><code>NoteType</code></a> <br>One of <code>text</code>, <code>code</code>, <code>render</code>, <code>file</code>, <code>image</code>, <code>search</code>, <code>relationMap</code>, <code>book</code>, <code>noteMap</code>, <code>mermaid</code>, <code>canvas</code>, <code>webView</code>, <code>launcher</code>, <code>doc</code>, <code>contentWidget</code>, <code>mindMap</code>, <code>geoMap</code>.</td></tr><tr><td><code>mime</code> <br><em>required</em></td><td><code>string</code> <br>MIME type</td></tr><tr><td><code>isProtected</code> <br><em>required</em></td><td><code>boolean</code> <br>Whether note is protected</td></tr><tr><td><code>blobId</code></td><td><code>string</code> <br>ID of content blob</td></tr><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"noteId\": \"ur11rSfHkzeV\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"text/html\",\n \"isProtected\": true,\n \"blobId\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section></div><h3>Download revision</h3><p><code>GET /api/revisions/{revisionId}/download</code> · <code>downloadRevision</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>revisionId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Revision content</p><div class=\"trilium-tab-panel\"><p><strong>Response headers</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>Content-Disposition</code></td><td><code>string</code></td></tr></tbody></table></figure><ul><li><code>application/octet-stream</code>: <code>string (binary)</code></li></ul></div></section></div><h3>Cleanup old revisions</h3><p><code>POST /api/revisions/erase-all-excess-revisions</code> · <code>eraseExcessRevisions</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Request body</strong></p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>snapshotsToKeep</code></td><td><code>integer</code> <br>Snapshots to keep per note, standing in for the revisionSnapshotNumberLimit option. -1 keeps every snapshot, 0 keeps none. Omitted, the option applies. A note carrying a valid #versioningLimit follows its own label instead.</td></tr><tr><td><code>keepNamedSnapshots</code></td><td><code>boolean</code> <br>Spare named snapshots (those with a description) from erasure and leave them out of the count, so the limit governs the automatic snapshots alone.</td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"snapshotsToKeep\": 0,\n \"keepNamedSnapshots\": true\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Excess revisions erased</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>erasedCount</code></td><td><code>integer</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"erasedCount\": 0\n}</code></pre></div></div></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">400: Invalid options</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Get notes edited on date</h3><p><code>GET /api/edited-notes/{date}</code> · <code>getEditedNotes</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>date</code> <br><em>required</em></td><td><code>string (date)</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Edited notes</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: array of <a href=\"#schema-Note\"><code>Note</code></a></li></ul><pre><code class=\"language-application-json\">[\n {\n \"noteId\": \"ur11rSfHkzeV\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"text/html\",\n \"isProtected\": true,\n \"blobId\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n }\n]</code></pre></div></section></div><h3>Get image from revision</h3><p><code>GET /api/revisions/{revisionId}/image/{filename}</code> · <code>getRevisionImage</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>revisionId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>filename</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Image content</p><div class=\"trilium-tab-panel\"><ul><li><code>image/*</code>: <code>string (binary)</code></li></ul></div></section></div><h2><span class=\"tn-icon bx bx-search\"></span> Search</h2><p>Search and discovery</p><h3>Full text search</h3><p><code>GET /api/search</code> · <code>search</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Query parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>searchString</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Search results</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: array of <a href=\"#schema-SearchResult\"><code>SearchResult</code></a></li></ul><pre><code class=\"language-application-json\">[\n {\n \"noteId\": \"string\",\n \"title\": \"string\",\n \"path\": \"string\",\n \"score\": 0,\n \"highlights\": [\n \"string\"\n ]\n }\n]</code></pre></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">400: Missing or empty search string</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Quick search with highlighting</h3><p><code>GET /api/quick-search</code> · <code>quickSearch</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Query parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>searchString</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Quick search results</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: array of <a href=\"#schema-SearchResult\"><code>SearchResult</code></a></li></ul><pre><code class=\"language-application-json\">[\n {\n \"noteId\": \"string\",\n \"title\": \"string\",\n \"path\": \"string\",\n \"score\": 0,\n \"highlights\": [\n \"string\"\n ]\n }\n]</code></pre></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">400: Missing or empty search string</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Execute search note</h3><p><code>GET /api/search-note/{noteId}</code> · <code>executeSearchNote</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Search results</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: array of <a href=\"#schema-SearchResult\"><code>SearchResult</code></a></li></ul><pre><code class=\"language-application-json\">[\n {\n \"noteId\": \"string\",\n \"title\": \"string\",\n \"path\": \"string\",\n \"score\": 0,\n \"highlights\": [\n \"string\"\n ]\n }\n]</code></pre></div></section></div><h3>Search and execute actions</h3><p><code>POST /api/search-and-execute-note/{noteId}</code> · <code>searchAndExecute</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Execution results</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Find related notes by attributes</h3><p><code>POST /api/search-related</code> · <code>searchRelated</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <a href=\"#schema-Attribute\"><code>Attribute</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>attributeId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>type</code> <br><em>required</em></td><td><code>string</code> <br>One of <code>label</code>, <code>relation</code>.</td></tr><tr><td><code>name</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>value</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>position</code></td><td><code>integer</code></td></tr><tr><td><code>isInheritable</code></td><td><code>boolean</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"attributeId\": \"string\",\n \"noteId\": \"string\",\n \"type\": \"label\",\n \"name\": \"string\",\n \"value\": \"string\",\n \"position\": 0,\n \"isInheritable\": true\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Related notes</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>count</code> <br><em>required</em></td><td><code>integer</code> <br>Distinct notes matching, counted before the twenty-result cap.</td></tr><tr><td><code>results</code> <br><em>required</em></td><td><code>array of object</code> <br>At most twenty, name-and-value matches ahead of name-only ones.</td></tr><tr><td><code>results[].notePathArray</code> <br><em>required</em></td><td><code>array of string</code> <br>Note IDs from the root down to the matched note.</td></tr><tr><td><code>results[].score</code> <br><em>required</em></td><td><code>number</code> <br>Search relevance, higher is better.</td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"count\": 0,\n \"results\": [\n {\n \"notePathArray\": [\n \"string\"\n ],\n \"score\": 0\n }\n ]\n}</code></pre></div></div></div></section></div><h3>Search template notes</h3><p><code>GET /api/search-templates</code> · <code>searchTemplates</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Template notes</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: array of <a href=\"#schema-Note\"><code>Note</code></a></li></ul><pre><code class=\"language-application-json\">[\n {\n \"noteId\": \"ur11rSfHkzeV\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"text/html\",\n \"isProtected\": true,\n \"blobId\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n }\n]</code></pre></div></section></div><h3>Get autocomplete suggestions</h3><p><code>GET /api/autocomplete</code> · <code>autocomplete</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Query parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>query</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>fastSearch</code></td><td><code>boolean</code></td></tr><tr><td><code>activeNoteId</code></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Autocomplete suggestions</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>array of object</code></li></ul><pre><code class=\"language-application-json\">[\n {\n \"noteId\": \"string\",\n \"title\": \"string\",\n \"path\": \"string\"\n }\n]</code></pre></div></section></div><h3>Find similar notes</h3><p><code>GET /api/similar-notes/{noteId}</code> · <code>findSimilarNotes</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Similar notes</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>array of object</code></li></ul><pre><code class=\"language-application-json\">[\n {\n \"noteId\": \"string\",\n \"title\": \"string\",\n \"similarity\": 0\n }\n]</code></pre></div></section></div><h2><span class=\"tn-icon bx bx-transfer\"></span> Import/Export</h2><p>Import and export operations</p><h3>Export branch</h3><p><code>GET /api/branches/{branchId}/export/{type}/{format}/{taskId}</code> · <code>exportBranch</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>branchId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>type</code> <br><em>required</em></td><td><code>string</code> <br>One of <code>subtree</code>, <code>single</code>.</td></tr><tr><td><code>format</code> <br><em>required</em></td><td><code>string</code> <br>One of <code>html</code>, <code>markdown</code>, <code>opml</code>.</td></tr><tr><td><code>taskId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Exported content</p><div class=\"trilium-tab-panel\"><ul><li><code>application/octet-stream</code>: <code>string (binary)</code></li></ul></div></section></div><h3>Import notes</h3><p><code>POST /api/notes/{parentNoteId}/notes-import</code> · <code>importNotes</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>parentNoteId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Request body</strong> (required)</p><ul><li><code>multipart/form-data</code>: <code>object</code></li></ul><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>upload</code></td><td><code>string (binary)</code></td></tr><tr><td><code>safeImport</code></td><td><code>boolean</code></td></tr><tr><td><code>shrinkImages</code></td><td><code>boolean</code></td></tr><tr><td><code>textImportedAsText</code></td><td><code>boolean</code></td></tr><tr><td><code>codeImportedAsCode</code></td><td><code>boolean</code></td></tr><tr><td><code>explodeArchives</code></td><td><code>boolean</code></td></tr><tr><td><code>replaceUnderscoresWithSpaces</code></td><td><code>boolean</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Import results</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code></td><td><code>string</code></td></tr><tr><td><code>note</code></td><td><a href=\"#schema-Note\"><code>Note</code></a></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"noteId\": \"string\",\n \"note\": {\n \"noteId\": \"ur11rSfHkzeV\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"text/html\",\n \"isProtected\": true,\n \"blobId\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n }\n}</code></pre></div></div></div></section></div><h3>Import attachments</h3><p><code>POST /api/notes/{parentNoteId}/attachments-import</code> · <code>importAttachments</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>parentNoteId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Request body</strong> (required)</p><ul><li><code>multipart/form-data</code>: <code>object</code></li></ul><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>upload</code></td><td><code>array of string (binary)</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Import results</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h2><span class=\"tn-icon bx bx-sync\"></span> Sync</h2><p>Synchronization between instances</p><h3>Test sync connection</h3><p><code>POST /api/sync/test</code> · <code>testSync</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Sync test results</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Trigger sync now</h3><p><code>POST /api/sync/now</code> · <code>syncNow</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Sync started</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Get sync status</h3><p><code>GET /api/sync/check</code> · <code>checkSync</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Sync status</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>synced</code></td><td><code>boolean</code></td></tr><tr><td><code>lastSyncedPush</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>lastSyncedPull</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"synced\": true,\n \"lastSyncedPush\": \"2019-08-24T14:15:22Z\",\n \"lastSyncedPull\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section></div><h3>Get sync changes</h3><p><code>GET /api/sync/changed</code> · <code>getSyncChanges</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Query parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>instanceId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>lastEntityChangeId</code> <br><em>required</em></td><td><code>integer</code></td></tr><tr><td><code>logMarkerId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Sync changes</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>entityChanges</code></td><td>array of <a href=\"#schema-EntityChange\"><code>EntityChange</code></a></td></tr><tr><td><code>lastEntityChangeId</code></td><td><code>integer</code></td></tr><tr><td><code>outstandingPullCount</code></td><td><code>integer</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"entityChanges\": [\n {\n \"entityChange\": {\n \"entityName\": \"string\",\n \"changeId\": \"string\"\n },\n \"entity\": {}\n }\n ],\n \"lastEntityChangeId\": 0,\n \"outstandingPullCount\": 0\n}</code></pre></div></div></div></section></div><h3>Push sync changes</h3><p><code>PUT /api/sync/update</code> · <code>pushSyncChanges</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Query parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>logMarkerId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Header parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>pageCount</code> <br><em>required</em></td><td><code>integer</code></td></tr><tr><td><code>pageIndex</code> <br><em>required</em></td><td><code>integer</code></td></tr><tr><td><code>requestId</code></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>instanceId</code></td><td><code>string</code></td></tr><tr><td><code>entities</code></td><td>array of <a href=\"#schema-EntityChange\"><code>EntityChange</code></a></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"instanceId\": \"string\",\n \"entities\": [\n {\n \"entityChange\": {\n \"entityName\": \"string\",\n \"changeId\": \"string\"\n },\n \"entity\": {}\n }\n ]\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Changes processed</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Mark sync as finished</h3><p><code>POST /api/sync/finished</code> · <code>finishSync</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Sync finished</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Get sync statistics</h3><p><code>GET /api/sync/stats</code> · <code>getSyncStats</code></p><p><strong>Authorization</strong>: none</p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Sync statistics</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>initialized</code></td><td><code>boolean</code></td></tr><tr><td><code>stats</code></td><td><code>object</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"initialized\": true,\n \"stats\": {}\n}</code></pre></div></div></div></section></div><h3>Fill entity changes</h3><p><code>POST /api/sync/fill-entity-changes</code> · <code>fillEntityChanges</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Entity changes filled</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Force full sync</h3><p><code>POST /api/sync/force-full-sync</code> · <code>forceFullSync</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Full sync forced</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Check entity changes consistency</h3><p><code>POST /api/sync/check-entity-changes</code> · <code>checkEntityChanges</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Consistency check results</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Queue sector for sync</h3><p><code>POST /api/sync/queue-sector/{entityName}/{sector}</code> · <code>queueSyncSector</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>entityName</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>sector</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Sector queued</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h2><span class=\"tn-icon bx bx-code-alt\"></span> Scripting</h2><p>Script execution and automation</p><h3>Execute script</h3><p><code>POST /api/script/exec</code> · <code>executeScript</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>script</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>params</code></td><td><code>array of string</code></td></tr><tr><td><code>startNoteId</code></td><td><code>string</code></td></tr><tr><td><code>currentNoteId</code></td><td><code>string</code></td></tr><tr><td><code>originEntityName</code></td><td><code>string</code></td></tr><tr><td><code>originEntityId</code></td><td><code>string</code></td></tr><tr><td><code>transactional</code></td><td><code>boolean</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"script\": \"string\",\n \"params\": [\n \"string\"\n ],\n \"startNoteId\": \"string\",\n \"currentNoteId\": \"string\",\n \"originEntityName\": \"string\",\n \"originEntityId\": \"string\",\n \"transactional\": true\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Script execution results</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><pre><code class=\"language-application-json\">{}</code></pre></div></section></div><h3>Run script note</h3><p><code>POST /api/script/run/{noteId}</code> · <code>runScriptNote</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Script execution results</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Get startup script bundles</h3><p><code>GET /api/script/startup</code> · <code>getStartupScripts</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Query parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>mobile</code></td><td><code>boolean</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Startup scripts</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: array of <a href=\"#schema-ScriptBundle\"><code>ScriptBundle</code></a></li></ul><pre><code class=\"language-application-json\">[\n {\n \"noteId\": \"string\",\n \"script\": \"string\",\n \"html\": \"string\",\n \"css\": \"string\"\n }\n]</code></pre></div></section></div><h3>Get widget script bundles</h3><p><code>GET /api/script/widgets</code> · <code>getWidgetScripts</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Widget scripts</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: array of <a href=\"#schema-ScriptBundle\"><code>ScriptBundle</code></a></li></ul><pre><code class=\"language-application-json\">[\n {\n \"noteId\": \"string\",\n \"script\": \"string\",\n \"html\": \"string\",\n \"css\": \"string\"\n }\n]</code></pre></div></section></div><h3>Get script bundle for note</h3><p><code>POST /api/script/bundle/{noteId}</code> · <code>getScriptBundle</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Script bundle</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-ScriptBundle\"><code>ScriptBundle</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code></td><td><code>string</code></td></tr><tr><td><code>script</code></td><td><code>string</code></td></tr><tr><td><code>html</code></td><td><code>string</code></td></tr><tr><td><code>css</code></td><td><code>string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"noteId\": \"string\",\n \"script\": \"string\",\n \"html\": \"string\",\n \"css\": \"string\"\n}</code></pre></div></div></div></section></div><h3>Get relation script bundles</h3><p><code>GET /api/script/relation/{noteId}/{relationName}</code> · <code>getRelationScripts</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>relationName</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Relation scripts</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: array of <a href=\"#schema-ScriptBundle\"><code>ScriptBundle</code></a></li></ul><pre><code class=\"language-application-json\">[\n {\n \"noteId\": \"string\",\n \"script\": \"string\",\n \"html\": \"string\",\n \"css\": \"string\"\n }\n]</code></pre></div></section></div><h2><span class=\"tn-icon bx bx-cog\"></span> Configuration</h2><p>System options and settings</p><h3>Get application information</h3><p><code>GET /api/app-info</code> · <code>getAppInfo</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Application information</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-AppInfo\"><code>AppInfo</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>appVersion</code></td><td><code>string</code></td></tr><tr><td><code>dbVersion</code></td><td><code>integer</code></td></tr><tr><td><code>nodeVersion</code></td><td><code>string</code></td></tr><tr><td><code>syncVersion</code></td><td><code>integer</code></td></tr><tr><td><code>buildDate</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>buildRevision</code></td><td><code>string</code></td></tr><tr><td><code>dataDirectory</code></td><td><code>string</code></td></tr><tr><td><code>clipperProtocolVersion</code></td><td><code>string</code></td></tr><tr><td><code>utcDateTime</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"appVersion\": \"0.91.6\",\n \"dbVersion\": 228,\n \"nodeVersion\": \"string\",\n \"syncVersion\": 34,\n \"buildDate\": \"2019-08-24T14:15:22Z\",\n \"buildRevision\": \"string\",\n \"dataDirectory\": \"string\",\n \"clipperProtocolVersion\": \"string\",\n \"utcDateTime\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section></div><h3>Get setup status</h3><p><code>GET /api/setup/status</code> · <code>getSetupStatus</code></p><p><strong>Authorization</strong>: none</p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Setup status</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>isInitialized</code></td><td><code>boolean</code></td></tr><tr><td><code>schemaExists</code></td><td><code>boolean</code></td></tr><tr><td><code>syncVersion</code></td><td><code>integer</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"isInitialized\": true,\n \"schemaExists\": true,\n \"syncVersion\": 0\n}</code></pre></div></div></div></section></div><h3>Initialize new document</h3><p><code>POST /api/setup/new-document</code> · <code>initNewDocument</code></p><p><strong>Authorization</strong>: none</p><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>password</code> <br><em>required</em></td><td><code>string (password)</code></td></tr><tr><td><code>theme</code></td><td><code>string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"password\": \"string\",\n \"theme\": \"string\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">201: Document initialized</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Setup sync from server</h3><p><code>POST /api/setup/sync-from-server</code> · <code>setupSyncFromServer</code></p><p><strong>Authorization</strong>: none</p><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>syncServerHost</code> <br><em>required</em></td><td><code>string (uri)</code></td></tr><tr><td><code>syncProxy</code></td><td><code>string</code></td></tr><tr><td><code>password</code> <br><em>required</em></td><td><code>string (password)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"syncServerHost\": \"string\",\n \"syncProxy\": \"string\",\n \"password\": \"string\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Sync setup successful</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Get sync seed for setup</h3><p><code>GET /api/setup/sync-seed</code> · <code>getSyncSeed</code></p><p><strong>Authorization</strong>: none</p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Sync seed information</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>syncVersion</code></td><td><code>integer</code></td></tr><tr><td><code>schemaVersion</code></td><td><code>integer</code></td></tr><tr><td><code>documentSecret</code></td><td><code>string</code></td></tr><tr><td><code>maxSyncId</code></td><td><code>integer</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"syncVersion\": 0,\n \"schemaVersion\": 0,\n \"documentSecret\": \"string\",\n \"maxSyncId\": 0\n}</code></pre></div></div></div></section></div><h3>Get system options</h3><p><code>GET /api/options</code> · <code>getOptions</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: System options</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><pre><code class=\"language-application-json\">{}</code></pre></div></section></div><h3>Update multiple options</h3><p><code>PUT /api/options</code> · <code>updateOptions</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><pre><code class=\"language-application-json\">{}</code></pre><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Options updated</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Update single option</h3><p><code>PUT /api/options/{name}/{value}</code> · <code>updateOption</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>name</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>value</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Option updated</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Get user-defined themes</h3><p><code>GET /api/options/user-themes</code> · <code>getUserThemes</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: User themes</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>array of object</code></li></ul><pre><code class=\"language-application-json\">[\n {\n \"name\": \"string\",\n \"label\": \"string\"\n }\n]</code></pre></div></section></div><h3>Get supported locales</h3><p><code>GET /api/options/locales</code> · <code>getLocales</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Supported locales</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>array of object</code></li></ul><pre><code class=\"language-application-json\">[\n {\n \"code\": \"string\",\n \"name\": \"string\"\n }\n]</code></pre></div></section></div><h2><span class=\"tn-icon bx bx-data\"></span> Database</h2><p>Database operations</p><h3>Get database schema</h3><p><code>GET /api/sql/schema</code> · <code>getDatabaseSchema</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Database schema</p><div class=\"trilium-tab-panel\"><ul><li><code>text/plain</code>: <code>string</code></li></ul></div></section></div><h3>Execute SQL from note</h3><p><code>POST /api/sql/execute/{noteId}</code> · <code>executeSql</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: SQL execution results</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>array of object</code></li></ul><pre><code class=\"language-application-json\">[\n {}\n]</code></pre></div></section></div><h3>Create database backup</h3><p><code>POST /api/database/backup-database</code> · <code>backupDatabase</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Backup created</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>List existing backups</h3><p><code>GET /api/database/backups</code> · <code>listBackups</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Backup list</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>backupFolderPath</code></td><td><code>string | null</code> <br>Directory where the backups are stored, or null if there is no user-accessible location.</td></tr><tr><td><code>backups</code></td><td><code>array of object</code></td></tr><tr><td><code>backups[].fileName</code></td><td><code>string</code></td></tr><tr><td><code>backups[].filePath</code></td><td><code>string</code></td></tr><tr><td><code>backups[].mtime</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>backups[].fileSize</code></td><td><code>integer</code> <br>Size of the backup file, in bytes.</td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"backupFolderPath\": \"string\",\n \"backups\": [\n {\n \"fileName\": \"string\",\n \"filePath\": \"string\",\n \"mtime\": \"2019-08-24T14:15:22Z\",\n \"fileSize\": 0\n }\n ]\n}</code></pre></div></div></div></section></div><h3>Vacuum database</h3><p><code>POST /api/database/vacuum-database</code> · <code>vacuumDatabase</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Database vacuumed</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Anonymize database</h3><p><code>POST /api/database/anonymize/{type}</code> · <code>anonymizeDatabase</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>type</code> <br><em>required</em></td><td><code>string</code> <br>One of <code>save-as-file</code>, <code>save-and-send</code>.</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Anonymization results</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>List anonymized databases</h3><p><code>GET /api/database/anonymized-databases</code> · <code>listAnonymizedDatabases</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Anonymized database list</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>anonymizedFolderPath</code></td><td><code>string</code> <br>Directory where the anonymized databases are stored.</td></tr><tr><td><code>databases</code></td><td><code>array of object</code></td></tr><tr><td><code>databases[].fileName</code></td><td><code>string</code></td></tr><tr><td><code>databases[].filePath</code></td><td><code>string</code></td></tr><tr><td><code>databases[].mtime</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>databases[].fileSize</code></td><td><code>integer</code> <br>Size of the anonymized database file, in bytes.</td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"anonymizedFolderPath\": \"string\",\n \"databases\": [\n {\n \"fileName\": \"string\",\n \"filePath\": \"string\",\n \"mtime\": \"2019-08-24T14:15:22Z\",\n \"fileSize\": 0\n }\n ]\n}</code></pre></div></div></div></section></div><h3>Download an anonymized database file</h3><p><code>GET /api/database/anonymized/download</code> · <code>downloadAnonymizedDatabase</code></p><p>Only files inside the anonymized database directory can be downloaded; any other path is refused with 403.</p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Query parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>filePath</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Anonymized database file</p><div class=\"trilium-tab-panel\"><ul><li><code>application/x-sqlite3</code>: <code>string (binary)</code></li></ul></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">400: Missing filePath</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">403: Path not allowed</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">404: File not found</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Fix consistency issues</h3><p><code>POST /api/database/find-and-fix-consistency-issues</code> · <code>fixConsistencyIssues</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Consistency check results</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Check database integrity</h3><p><code>GET /api/database/check-integrity</code> · <code>checkIntegrity</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Integrity check results</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>results</code></td><td><code>array of string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"results\": [\n \"string\"\n ]\n}</code></pre></div></div></div></section></div><h2><span class=\"tn-icon bx bx-bot\"></span> LLM</h2><p>AI/LLM integration</p><h3>List all chat sessions</h3><p><code>GET /api/llm/chat</code> · <code>listChatSessions</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Chat sessions</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: array of <a href=\"#schema-ChatSession\"><code>ChatSession</code></a></li></ul><pre><code class=\"language-application-json\">[\n {\n \"sessionId\": \"string\",\n \"title\": \"string\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"string\",\n \"timestamp\": \"2019-08-24T14:15:22Z\"\n }\n ],\n \"createdAt\": \"2019-08-24T14:15:22Z\",\n \"lastActive\": \"2019-08-24T14:15:22Z\",\n \"messageCount\": 0\n }\n]</code></pre></div></section></div><h3>Create new chat session</h3><p><code>POST /api/llm/chat</code> · <code>createChatSession</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>title</code></td><td><code>string</code></td></tr><tr><td><code>systemPrompt</code></td><td><code>string</code></td></tr><tr><td><code>temperature</code></td><td><code>number</code></td></tr><tr><td><code>maxTokens</code></td><td><code>integer</code></td></tr><tr><td><code>model</code></td><td><code>string</code></td></tr><tr><td><code>provider</code></td><td><code>string</code> <br>One of <code>openai</code>, <code>anthropic</code>, <code>ollama</code>.</td></tr><tr><td><code>contextNoteId</code></td><td><code>string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"title\": \"string\",\n \"systemPrompt\": \"string\",\n \"temperature\": 0,\n \"maxTokens\": 0,\n \"model\": \"string\",\n \"provider\": \"openai\",\n \"contextNoteId\": \"string\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">201: Chat session created</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-ChatSession\"><code>ChatSession</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>sessionId</code></td><td><code>string</code></td></tr><tr><td><code>title</code></td><td><code>string</code></td></tr><tr><td><code>messages</code></td><td><code>array of object</code></td></tr><tr><td><code>messages[].role</code></td><td><code>string</code> <br>One of <code>user</code>, <code>assistant</code>, <code>system</code>.</td></tr><tr><td><code>messages[].content</code></td><td><code>string</code></td></tr><tr><td><code>messages[].timestamp</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>createdAt</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>lastActive</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>messageCount</code></td><td><code>integer</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"sessionId\": \"string\",\n \"title\": \"string\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"string\",\n \"timestamp\": \"2019-08-24T14:15:22Z\"\n }\n ],\n \"createdAt\": \"2019-08-24T14:15:22Z\",\n \"lastActive\": \"2019-08-24T14:15:22Z\",\n \"messageCount\": 0\n}</code></pre></div></div></div></section></div><h3>Get specific chat session</h3><p><code>GET /api/llm/chat/{sessionId}</code> · <code>getChatSession</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>sessionId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Chat session details</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-ChatSession\"><code>ChatSession</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>sessionId</code></td><td><code>string</code></td></tr><tr><td><code>title</code></td><td><code>string</code></td></tr><tr><td><code>messages</code></td><td><code>array of object</code></td></tr><tr><td><code>messages[].role</code></td><td><code>string</code> <br>One of <code>user</code>, <code>assistant</code>, <code>system</code>.</td></tr><tr><td><code>messages[].content</code></td><td><code>string</code></td></tr><tr><td><code>messages[].timestamp</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>createdAt</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>lastActive</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>messageCount</code></td><td><code>integer</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"sessionId\": \"string\",\n \"title\": \"string\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"string\",\n \"timestamp\": \"2019-08-24T14:15:22Z\"\n }\n ],\n \"createdAt\": \"2019-08-24T14:15:22Z\",\n \"lastActive\": \"2019-08-24T14:15:22Z\",\n \"messageCount\": 0\n}</code></pre></div></div></div></section></div><h3>Update chat session</h3><p><code>PATCH /api/llm/chat/{sessionId}</code> · <code>updateChatSession</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>sessionId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>title</code></td><td><code>string</code></td></tr><tr><td><code>systemPrompt</code></td><td><code>string</code></td></tr><tr><td><code>temperature</code></td><td><code>number</code></td></tr><tr><td><code>maxTokens</code></td><td><code>integer</code></td></tr><tr><td><code>model</code></td><td><code>string</code></td></tr><tr><td><code>provider</code></td><td><code>string</code></td></tr><tr><td><code>contextNoteId</code></td><td><code>string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"title\": \"string\",\n \"systemPrompt\": \"string\",\n \"temperature\": 0,\n \"maxTokens\": 0,\n \"model\": \"string\",\n \"provider\": \"string\",\n \"contextNoteId\": \"string\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Session updated</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-ChatSession\"><code>ChatSession</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>sessionId</code></td><td><code>string</code></td></tr><tr><td><code>title</code></td><td><code>string</code></td></tr><tr><td><code>messages</code></td><td><code>array of object</code></td></tr><tr><td><code>messages[].role</code></td><td><code>string</code> <br>One of <code>user</code>, <code>assistant</code>, <code>system</code>.</td></tr><tr><td><code>messages[].content</code></td><td><code>string</code></td></tr><tr><td><code>messages[].timestamp</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>createdAt</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>lastActive</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>messageCount</code></td><td><code>integer</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"sessionId\": \"string\",\n \"title\": \"string\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"string\",\n \"timestamp\": \"2019-08-24T14:15:22Z\"\n }\n ],\n \"createdAt\": \"2019-08-24T14:15:22Z\",\n \"lastActive\": \"2019-08-24T14:15:22Z\",\n \"messageCount\": 0\n}</code></pre></div></div></div></section></div><h3>Delete chat session</h3><p><code>DELETE /api/llm/chat/{chatNoteId}</code> · <code>deleteChatSession</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>chatNoteId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Session deleted</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Send message to LLM</h3><p><code>POST /api/llm/chat/{chatNoteId}/messages</code> · <code>sendChatMessage</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>sessionId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>message</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>options</code></td><td><code>object</code></td></tr><tr><td><code>options.temperature</code></td><td><code>number</code></td></tr><tr><td><code>options.maxTokens</code></td><td><code>integer</code></td></tr><tr><td><code>options.model</code></td><td><code>string</code></td></tr><tr><td><code>options.provider</code></td><td><code>string</code></td></tr><tr><td><code>includeContext</code></td><td><code>boolean</code></td></tr><tr><td><code>useNoteContext</code></td><td><code>boolean</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"message\": \"string\",\n \"options\": {\n \"temperature\": 0,\n \"maxTokens\": 0,\n \"model\": \"string\",\n \"provider\": \"string\"\n },\n \"includeContext\": true,\n \"useNoteContext\": true\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: LLM response</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>response</code></td><td><code>string</code></td></tr><tr><td><code>sources</code></td><td><code>array of object</code></td></tr><tr><td><code>sources[].noteId</code></td><td><code>string</code></td></tr><tr><td><code>sources[].title</code></td><td><code>string</code></td></tr><tr><td><code>sources[].similarity</code></td><td><code>number</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"response\": \"string\",\n \"sources\": [\n {\n \"noteId\": \"string\",\n \"title\": \"string\",\n \"similarity\": 0\n }\n ]\n}</code></pre></div></div></div></section></div><h3>Stream message to LLM</h3><p><code>POST /api/llm/chat/{chatNoteId}/messages/stream</code> · <code>streamChatMessage</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>sessionId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>content</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>useAdvancedContext</code></td><td><code>boolean</code></td></tr><tr><td><code>showThinking</code></td><td><code>boolean</code></td></tr><tr><td><code>mentions</code></td><td><code>array of string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"content\": \"string\",\n \"useAdvancedContext\": true,\n \"showThinking\": true,\n \"mentions\": [\n \"string\"\n ]\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Streaming started</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>List Ollama models</h3><p><code>GET /api/llm/providers/ollama/models</code> · <code>listOllamaModels</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Query parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>baseUrl</code></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Ollama models</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>success</code></td><td><code>boolean</code></td></tr><tr><td><code>models</code></td><td><code>array of object</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"success\": true,\n \"models\": [\n {}\n ]\n}</code></pre></div></div></div></section></div><h3>List OpenAI models</h3><p><code>GET /api/llm/providers/openai/models</code> · <code>listOpenAIModels</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: OpenAI models</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>success</code></td><td><code>boolean</code></td></tr><tr><td><code>chatModels</code></td><td><code>array of object</code></td></tr><tr><td><code>chatModels[].id</code></td><td><code>string</code></td></tr><tr><td><code>chatModels[].name</code></td><td><code>string</code></td></tr><tr><td><code>chatModels[].type</code></td><td><code>string</code></td></tr><tr><td><code>embeddingModels</code></td><td><code>array of object</code></td></tr><tr><td><code>embeddingModels[].id</code></td><td><code>string</code></td></tr><tr><td><code>embeddingModels[].name</code></td><td><code>string</code></td></tr><tr><td><code>embeddingModels[].type</code></td><td><code>string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"success\": true,\n \"chatModels\": [\n {\n \"id\": \"string\",\n \"name\": \"string\",\n \"type\": \"string\"\n }\n ],\n \"embeddingModels\": [\n {\n \"id\": \"string\",\n \"name\": \"string\",\n \"type\": \"string\"\n }\n ]\n}</code></pre></div></div></div></section></div><h3>List Anthropic models</h3><p><code>GET /api/llm/providers/anthropic/models</code> · <code>listAnthropicModels</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Anthropic models</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>success</code></td><td><code>boolean</code></td></tr><tr><td><code>chatModels</code></td><td><code>array of object</code></td></tr><tr><td><code>chatModels[].id</code></td><td><code>string</code></td></tr><tr><td><code>chatModels[].name</code></td><td><code>string</code></td></tr><tr><td><code>chatModels[].type</code></td><td><code>string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"success\": true,\n \"chatModels\": [\n {\n \"id\": \"string\",\n \"name\": \"string\",\n \"type\": \"string\"\n }\n ]\n}</code></pre></div></div></div></section></div><h2><span class=\"tn-icon bx bx-shield-quarter\"></span> Security</h2><p>Security features (2FA, tokens)</p><h3>Change password</h3><p><code>POST /api/password/change</code> · <code>changePassword</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>current_password</code></td><td><code>string (password)</code></td></tr><tr><td><code>new_password</code> <br><em>required</em></td><td><code>string (password)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"current_password\": \"string\",\n \"new_password\": \"string\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Password changed</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Reset password (destructive)</h3><p><code>POST /api/password/reset</code> · <code>resetPassword</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Query parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>really</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Password reset</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Generate a TOTP secret</h3><p><code>GET /api/totp/generate</code> · <code>generateTotpSecret</code></p><p>Generates a fresh TOTP secret without persisting it. The caller must verify a code for this secret (see <code>/api/totp/verify</code>) and commit it (see <code>/api/totp/enable</code>) before it becomes active.</p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: TOTP secret generated</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>success</code></td><td><code>boolean</code></td></tr><tr><td><code>message</code></td><td><code>string</code> <br>The bare TOTP secret (for manual entry), or an error message on failure.</td></tr><tr><td><code>url</code></td><td><code>string</code> <br>The <code>otpauth://</code> URL the authenticator expects, rendered as a QR code by the client.</td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"success\": true,\n \"message\": \"string\",\n \"url\": \"string\"\n}</code></pre></div></div></div></section></div><h3>Verify a generated TOTP secret</h3><p><code>POST /api/totp/verify</code> · <code>verifyTotpSecret</code></p><p>Verifies a freshly generated secret against a code the user produced for it, without persisting anything. On success, issues (unpersisted) recovery codes to be shown as the next enrollment step.</p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>secret</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>token</code> <br><em>required</em></td><td><code>string</code> <br>A TOTP code the user generated for the supplied secret.</td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"secret\": \"string\",\n \"token\": \"string\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Verification result</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>success</code></td><td><code>boolean</code></td></tr><tr><td><code>recoveryCodes</code></td><td><code>array of string</code> <br>One-time recovery codes, present only when verification succeeds.</td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"success\": true,\n \"recoveryCodes\": [\n \"string\"\n ]\n}</code></pre></div></div></div></section></div><h3>Enable TOTP with a verified secret</h3><p><code>POST /api/totp/enable</code> · <code>enableTotp</code></p><p>Commits a verified secret together with its recovery codes, activating TOTP. This is the final enrollment step and the only point at which the secret and recovery codes are persisted.</p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>secret</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>recoveryCodes</code> <br><em>required</em></td><td><code>array of string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"secret\": \"string\",\n \"recoveryCodes\": [\n \"string\"\n ]\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Result of enabling TOTP</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>success</code></td><td><code>boolean</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"success\": true\n}</code></pre></div></div></div></section></div><h3>Get TOTP status</h3><p><code>GET /api/totp/status</code> · <code>getTotpStatus</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: TOTP status</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>success</code></td><td><code>boolean</code></td></tr><tr><td><code>message</code></td><td><code>boolean</code> <br>Whether TOTP is the active second factor and a secret is set.</td></tr><tr><td><code>set</code></td><td><code>boolean</code> <br>Whether a TOTP secret is currently stored.</td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"success\": true,\n \"message\": true,\n \"set\": true\n}</code></pre></div></div></div></section></div><h3>Get the stored TOTP secret</h3><p><code>GET /api/totp/get</code> · <code>getTotpSecret</code></p><p>Returns <code>null</code> when no secret is set.</p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: TOTP secret</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>string | null</code></li></ul><pre><code class=\"language-application-json\">\"string\"</code></pre></div></section></div><h3>Reset (disable) TOTP</h3><p><code>POST /api/totp/reset</code> · <code>resetTotp</code></p><p>Clears the stored TOTP secret and its recovery codes, disabling TOTP.</p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Result of resetting TOTP</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>success</code></td><td><code>boolean</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"success\": true\n}</code></pre></div></div></div></section></div><h3>Check if TOTP recovery codes are set</h3><p><code>GET /api/totp_recovery/enabled</code> · <code>isTotpRecoveryEnabled</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: TOTP recovery status</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>success</code></td><td><code>boolean</code></td></tr><tr><td><code>keysExist</code></td><td><code>boolean</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"success\": true,\n \"keysExist\": true\n}</code></pre></div></div></div></section></div><h3>Regenerate TOTP recovery codes</h3><p><code>POST /api/totp_recovery/regenerate</code> · <code>regenerateTotpRecoveryCodes</code></p><p>Issues a fresh batch of recovery codes for the already-enrolled TOTP secret, replacing any existing ones, and returns them for one-time display. Refuses when no TOTP secret is set.</p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Generated recovery codes</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>success</code></td><td><code>boolean</code></td></tr><tr><td><code>recoveryCodes</code></td><td><code>array of string</code> <br>New recovery codes, present only when regeneration succeeds.</td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"success\": true,\n \"recoveryCodes\": [\n \"string\"\n ]\n}</code></pre></div></div></div></section></div><h3>Get used TOTP recovery codes</h3><p><code>GET /api/totp_recovery/used</code> · <code>getUsedTotpRecoveryCodes</code></p><p>Returns an empty array if no recovery codes are set, otherwise an object listing each code's status.</p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Recovery code status</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>array of any | object</code></li></ul><pre><code class=\"language-application-json\">[\n null\n]</code></pre></div></section></div><h3>Verify a TOTP recovery code</h3><p><code>POST /api/totp_recovery/verify</code> · <code>verifyTotpRecoveryCode</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>recovery_code_guess</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"recovery_code_guess\": \"string\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Verification result</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>success</code></td><td><code>boolean</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"success\": true\n}</code></pre></div></div></div></section></div><h3>List ETAPI tokens</h3><p><code>GET /api/etapi-tokens</code> · <code>listEtapiTokens</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: ETAPI tokens</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: array of <a href=\"#schema-EtapiToken\"><code>EtapiToken</code></a></li></ul><pre><code class=\"language-application-json\">[\n {\n \"etapiTokenId\": \"string\",\n \"name\": \"string\",\n \"token\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"isDeleted\": true\n }\n]</code></pre></div></section></div><h3>Create ETAPI token</h3><p><code>POST /api/etapi-tokens</code> · <code>createEtapiToken</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>name</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"name\": \"string\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">201: Token created</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-EtapiToken\"><code>EtapiToken</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>etapiTokenId</code></td><td><code>string</code></td></tr><tr><td><code>name</code></td><td><code>string</code></td></tr><tr><td><code>token</code></td><td><code>string</code></td></tr><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>isDeleted</code></td><td><code>boolean</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"etapiTokenId\": \"string\",\n \"name\": \"string\",\n \"token\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"isDeleted\": true\n}</code></pre></div></div></div></section></div><h3>Delete ETAPI token</h3><p><code>DELETE /api/etapi-tokens/{etapiTokenId}</code> · <code>deleteEtapiToken</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>etapiTokenId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Token deleted</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Update ETAPI token</h3><p><code>PATCH /api/etapi-tokens/{etapiTokenId}</code> · <code>updateEtapiToken</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>etapiTokenId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>name</code></td><td><code>string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"name\": \"string\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Token updated</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-EtapiToken\"><code>EtapiToken</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>etapiTokenId</code></td><td><code>string</code></td></tr><tr><td><code>name</code></td><td><code>string</code></td></tr><tr><td><code>token</code></td><td><code>string</code></td></tr><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>isDeleted</code></td><td><code>boolean</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"etapiTokenId\": \"string\",\n \"name\": \"string\",\n \"token\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"isDeleted\": true\n}</code></pre></div></div></div></section></div><h2><span class=\"tn-icon bx bx-star\"></span> Special Notes</h2><p>Special note types (calendar, inbox)</p><h3>Get/create inbox note</h3><p><code>GET /api/special-notes/inbox/{date}</code> · <code>getInboxNote</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>date</code> <br><em>required</em></td><td><code>string (date)</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Inbox note</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Note\"><code>Note</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code> <br>Note title</td></tr><tr><td><code>type</code> <br><em>required</em></td><td><a href=\"#schema-NoteType\"><code>NoteType</code></a> <br>One of <code>text</code>, <code>code</code>, <code>render</code>, <code>file</code>, <code>image</code>, <code>search</code>, <code>relationMap</code>, <code>book</code>, <code>noteMap</code>, <code>mermaid</code>, <code>canvas</code>, <code>webView</code>, <code>launcher</code>, <code>doc</code>, <code>contentWidget</code>, <code>mindMap</code>, <code>geoMap</code>.</td></tr><tr><td><code>mime</code> <br><em>required</em></td><td><code>string</code> <br>MIME type</td></tr><tr><td><code>isProtected</code> <br><em>required</em></td><td><code>boolean</code> <br>Whether note is protected</td></tr><tr><td><code>blobId</code></td><td><code>string</code> <br>ID of content blob</td></tr><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"noteId\": \"ur11rSfHkzeV\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"text/html\",\n \"isProtected\": true,\n \"blobId\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section></div><h3>Resolve where an inbox capture would go</h3><p><code>GET /api/special-notes/inbox-target</code> · <code>getInboxTarget</code></p><p>Reports the destination <code>/api/special-notes/inbox/{date}</code> would use, without creating anything. Honours the hoisted note, read from the <code>trilium-hoisted-note-id</code> header.</p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: The resolved destination</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>kind</code> <br><em>required</em></td><td><code>string</code> <br>Which rule decided the destination. <code>dayNote</code> names no note, because the day note is created when the capture happens. One of <code>inbox</code>, <code>workspaceInbox</code>, <code>workspaceRoot</code>, <code>dayNote</code>, <code>root</code>.</td></tr><tr><td><code>noteId</code></td><td><code>string</code> <br>Absent for <code>dayNote</code>.</td></tr><tr><td><code>title</code></td><td><code>string</code> <br>Absent for <code>dayNote</code>.</td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"kind\": \"inbox\",\n \"noteId\": \"string\",\n \"title\": \"string\"\n}</code></pre></div></div></div></section></div><h3>Get/create day note</h3><p><code>GET /api/special-notes/days/{date}</code> · <code>getDayNote</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>date</code> <br><em>required</em></td><td><code>string (date)</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Day note</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Note\"><code>Note</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code> <br>Note title</td></tr><tr><td><code>type</code> <br><em>required</em></td><td><a href=\"#schema-NoteType\"><code>NoteType</code></a> <br>One of <code>text</code>, <code>code</code>, <code>render</code>, <code>file</code>, <code>image</code>, <code>search</code>, <code>relationMap</code>, <code>book</code>, <code>noteMap</code>, <code>mermaid</code>, <code>canvas</code>, <code>webView</code>, <code>launcher</code>, <code>doc</code>, <code>contentWidget</code>, <code>mindMap</code>, <code>geoMap</code>.</td></tr><tr><td><code>mime</code> <br><em>required</em></td><td><code>string</code> <br>MIME type</td></tr><tr><td><code>isProtected</code> <br><em>required</em></td><td><code>boolean</code> <br>Whether note is protected</td></tr><tr><td><code>blobId</code></td><td><code>string</code> <br>ID of content blob</td></tr><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"noteId\": \"ur11rSfHkzeV\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"text/html\",\n \"isProtected\": true,\n \"blobId\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section></div><h3>Get/create week note</h3><p><code>GET /api/special-notes/weeks/{week}</code> · <code>getWeekNote</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>week</code> <br><em>required</em></td><td><code>string</code> <br>Matches <code>^\\d{4}-\\d{2}$</code>.</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Week note</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Note\"><code>Note</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code> <br>Note title</td></tr><tr><td><code>type</code> <br><em>required</em></td><td><a href=\"#schema-NoteType\"><code>NoteType</code></a> <br>One of <code>text</code>, <code>code</code>, <code>render</code>, <code>file</code>, <code>image</code>, <code>search</code>, <code>relationMap</code>, <code>book</code>, <code>noteMap</code>, <code>mermaid</code>, <code>canvas</code>, <code>webView</code>, <code>launcher</code>, <code>doc</code>, <code>contentWidget</code>, <code>mindMap</code>, <code>geoMap</code>.</td></tr><tr><td><code>mime</code> <br><em>required</em></td><td><code>string</code> <br>MIME type</td></tr><tr><td><code>isProtected</code> <br><em>required</em></td><td><code>boolean</code> <br>Whether note is protected</td></tr><tr><td><code>blobId</code></td><td><code>string</code> <br>ID of content blob</td></tr><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"noteId\": \"ur11rSfHkzeV\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"text/html\",\n \"isProtected\": true,\n \"blobId\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section></div><h3>Get/create month note</h3><p><code>GET /api/special-notes/months/{month}</code> · <code>getMonthNote</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>month</code> <br><em>required</em></td><td><code>string</code> <br>Matches <code>^\\d{4}-\\d{2}$</code>.</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Month note</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Note\"><code>Note</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code> <br>Note title</td></tr><tr><td><code>type</code> <br><em>required</em></td><td><a href=\"#schema-NoteType\"><code>NoteType</code></a> <br>One of <code>text</code>, <code>code</code>, <code>render</code>, <code>file</code>, <code>image</code>, <code>search</code>, <code>relationMap</code>, <code>book</code>, <code>noteMap</code>, <code>mermaid</code>, <code>canvas</code>, <code>webView</code>, <code>launcher</code>, <code>doc</code>, <code>contentWidget</code>, <code>mindMap</code>, <code>geoMap</code>.</td></tr><tr><td><code>mime</code> <br><em>required</em></td><td><code>string</code> <br>MIME type</td></tr><tr><td><code>isProtected</code> <br><em>required</em></td><td><code>boolean</code> <br>Whether note is protected</td></tr><tr><td><code>blobId</code></td><td><code>string</code> <br>ID of content blob</td></tr><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"noteId\": \"ur11rSfHkzeV\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"text/html\",\n \"isProtected\": true,\n \"blobId\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section></div><h3>Get/create year note</h3><p><code>GET /api/special-notes/years/{year}</code> · <code>getYearNote</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>year</code> <br><em>required</em></td><td><code>string</code> <br>Matches <code>^\\d{4}$</code>.</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Year note</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Note\"><code>Note</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code> <br>Note title</td></tr><tr><td><code>type</code> <br><em>required</em></td><td><a href=\"#schema-NoteType\"><code>NoteType</code></a> <br>One of <code>text</code>, <code>code</code>, <code>render</code>, <code>file</code>, <code>image</code>, <code>search</code>, <code>relationMap</code>, <code>book</code>, <code>noteMap</code>, <code>mermaid</code>, <code>canvas</code>, <code>webView</code>, <code>launcher</code>, <code>doc</code>, <code>contentWidget</code>, <code>mindMap</code>, <code>geoMap</code>.</td></tr><tr><td><code>mime</code> <br><em>required</em></td><td><code>string</code> <br>MIME type</td></tr><tr><td><code>isProtected</code> <br><em>required</em></td><td><code>boolean</code> <br>Whether note is protected</td></tr><tr><td><code>blobId</code></td><td><code>string</code> <br>ID of content blob</td></tr><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"noteId\": \"ur11rSfHkzeV\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"text/html\",\n \"isProtected\": true,\n \"blobId\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section></div><h3>Create SQL console note</h3><p><code>POST /api/special-notes/sql-console</code> · <code>createSqlConsole</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">201: SQL console created</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Note\"><code>Note</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code> <br>Note title</td></tr><tr><td><code>type</code> <br><em>required</em></td><td><a href=\"#schema-NoteType\"><code>NoteType</code></a> <br>One of <code>text</code>, <code>code</code>, <code>render</code>, <code>file</code>, <code>image</code>, <code>search</code>, <code>relationMap</code>, <code>book</code>, <code>noteMap</code>, <code>mermaid</code>, <code>canvas</code>, <code>webView</code>, <code>launcher</code>, <code>doc</code>, <code>contentWidget</code>, <code>mindMap</code>, <code>geoMap</code>.</td></tr><tr><td><code>mime</code> <br><em>required</em></td><td><code>string</code> <br>MIME type</td></tr><tr><td><code>isProtected</code> <br><em>required</em></td><td><code>boolean</code> <br>Whether note is protected</td></tr><tr><td><code>blobId</code></td><td><code>string</code> <br>ID of content blob</td></tr><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"noteId\": \"ur11rSfHkzeV\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"text/html\",\n \"isProtected\": true,\n \"blobId\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section></div><h3>Create search note</h3><p><code>POST /api/special-notes/search-note</code> · <code>createSearchNote</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">201: Search note created</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Note\"><code>Note</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code> <br>Note title</td></tr><tr><td><code>type</code> <br><em>required</em></td><td><a href=\"#schema-NoteType\"><code>NoteType</code></a> <br>One of <code>text</code>, <code>code</code>, <code>render</code>, <code>file</code>, <code>image</code>, <code>search</code>, <code>relationMap</code>, <code>book</code>, <code>noteMap</code>, <code>mermaid</code>, <code>canvas</code>, <code>webView</code>, <code>launcher</code>, <code>doc</code>, <code>contentWidget</code>, <code>mindMap</code>, <code>geoMap</code>.</td></tr><tr><td><code>mime</code> <br><em>required</em></td><td><code>string</code> <br>MIME type</td></tr><tr><td><code>isProtected</code> <br><em>required</em></td><td><code>boolean</code> <br>Whether note is protected</td></tr><tr><td><code>blobId</code></td><td><code>string</code> <br>ID of content blob</td></tr><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"noteId\": \"ur11rSfHkzeV\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"text/html\",\n \"isProtected\": true,\n \"blobId\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section></div><h3>Create launcher</h3><p><code>POST /api/special-notes/launchers/{parentNoteId}/{launcherType}</code> · <code>createLauncher</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>parentNoteId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>launcherType</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">201: Launcher created</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Note\"><code>Note</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code> <br>Note title</td></tr><tr><td><code>type</code> <br><em>required</em></td><td><a href=\"#schema-NoteType\"><code>NoteType</code></a> <br>One of <code>text</code>, <code>code</code>, <code>render</code>, <code>file</code>, <code>image</code>, <code>search</code>, <code>relationMap</code>, <code>book</code>, <code>noteMap</code>, <code>mermaid</code>, <code>canvas</code>, <code>webView</code>, <code>launcher</code>, <code>doc</code>, <code>contentWidget</code>, <code>mindMap</code>, <code>geoMap</code>.</td></tr><tr><td><code>mime</code> <br><em>required</em></td><td><code>string</code> <br>MIME type</td></tr><tr><td><code>isProtected</code> <br><em>required</em></td><td><code>boolean</code> <br>Whether note is protected</td></tr><tr><td><code>blobId</code></td><td><code>string</code> <br>ID of content blob</td></tr><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"noteId\": \"ur11rSfHkzeV\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"text/html\",\n \"isProtected\": true,\n \"blobId\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section></div><h3>Get notes for specific month</h3><p><code>GET /api/special-notes/notes-for-month/{month}</code> · <code>getNotesForMonth</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>month</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Notes for the month</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: array of <a href=\"#schema-Note\"><code>Note</code></a></li></ul><pre><code class=\"language-application-json\">[\n {\n \"noteId\": \"ur11rSfHkzeV\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"text/html\",\n \"isProtected\": true,\n \"blobId\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n }\n]</code></pre></div></section></div><h3>Get quarter note</h3><p><code>GET /api/special-notes/quarters/{quarter}</code> · <code>getQuarter</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>quarter</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Quarter note</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Note\"><code>Note</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code> <br>Note title</td></tr><tr><td><code>type</code> <br><em>required</em></td><td><a href=\"#schema-NoteType\"><code>NoteType</code></a> <br>One of <code>text</code>, <code>code</code>, <code>render</code>, <code>file</code>, <code>image</code>, <code>search</code>, <code>relationMap</code>, <code>book</code>, <code>noteMap</code>, <code>mermaid</code>, <code>canvas</code>, <code>webView</code>, <code>launcher</code>, <code>doc</code>, <code>contentWidget</code>, <code>mindMap</code>, <code>geoMap</code>.</td></tr><tr><td><code>mime</code> <br><em>required</em></td><td><code>string</code> <br>MIME type</td></tr><tr><td><code>isProtected</code> <br><em>required</em></td><td><code>boolean</code> <br>Whether note is protected</td></tr><tr><td><code>blobId</code></td><td><code>string</code> <br>ID of content blob</td></tr><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"noteId\": \"ur11rSfHkzeV\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"text/html\",\n \"isProtected\": true,\n \"blobId\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section></div><h3>Get first day of week for date</h3><p><code>GET /api/special-notes/week-first-day/{date}</code> · <code>getWeekFirstDay</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>date</code> <br><em>required</em></td><td><code>string (date)</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: First day of week</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>date</code></td><td><code>string (date)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"date\": \"2019-08-24\"\n}</code></pre></div></div></div></section></div><h3>Reset launcher note</h3><p><code>POST /api/special-notes/launchers/{noteId}/reset</code> · <code>resetLauncher</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Launcher reset</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Note\"><code>Note</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code> <br>Note title</td></tr><tr><td><code>type</code> <br><em>required</em></td><td><a href=\"#schema-NoteType\"><code>NoteType</code></a> <br>One of <code>text</code>, <code>code</code>, <code>render</code>, <code>file</code>, <code>image</code>, <code>search</code>, <code>relationMap</code>, <code>book</code>, <code>noteMap</code>, <code>mermaid</code>, <code>canvas</code>, <code>webView</code>, <code>launcher</code>, <code>doc</code>, <code>contentWidget</code>, <code>mindMap</code>, <code>geoMap</code>.</td></tr><tr><td><code>mime</code> <br><em>required</em></td><td><code>string</code> <br>MIME type</td></tr><tr><td><code>isProtected</code> <br><em>required</em></td><td><code>boolean</code> <br>Whether note is protected</td></tr><tr><td><code>blobId</code></td><td><code>string</code> <br>ID of content blob</td></tr><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"noteId\": \"ur11rSfHkzeV\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"text/html\",\n \"isProtected\": true,\n \"blobId\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section></div><h3>Save search note</h3><p><code>POST /api/special-notes/save-search-note</code> · <code>saveSearchNote</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>query</code></td><td><code>string</code></td></tr><tr><td><code>title</code></td><td><code>string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"query\": \"string\",\n \"title\": \"string\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">201: Search note saved</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Note\"><code>Note</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code> <br>Note title</td></tr><tr><td><code>type</code> <br><em>required</em></td><td><a href=\"#schema-NoteType\"><code>NoteType</code></a> <br>One of <code>text</code>, <code>code</code>, <code>render</code>, <code>file</code>, <code>image</code>, <code>search</code>, <code>relationMap</code>, <code>book</code>, <code>noteMap</code>, <code>mermaid</code>, <code>canvas</code>, <code>webView</code>, <code>launcher</code>, <code>doc</code>, <code>contentWidget</code>, <code>mindMap</code>, <code>geoMap</code>.</td></tr><tr><td><code>mime</code> <br><em>required</em></td><td><code>string</code> <br>MIME type</td></tr><tr><td><code>isProtected</code> <br><em>required</em></td><td><code>boolean</code> <br>Whether note is protected</td></tr><tr><td><code>blobId</code></td><td><code>string</code> <br>ID of content blob</td></tr><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"noteId\": \"ur11rSfHkzeV\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"text/html\",\n \"isProtected\": true,\n \"blobId\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section></div><h3>Save SQL console note</h3><p><code>POST /api/special-notes/save-sql-console</code> · <code>saveSqlConsole</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>sql</code></td><td><code>string</code></td></tr><tr><td><code>title</code></td><td><code>string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"sql\": \"string\",\n \"title\": \"string\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">201: SQL console saved</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Note\"><code>Note</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code> <br>Note title</td></tr><tr><td><code>type</code> <br><em>required</em></td><td><a href=\"#schema-NoteType\"><code>NoteType</code></a> <br>One of <code>text</code>, <code>code</code>, <code>render</code>, <code>file</code>, <code>image</code>, <code>search</code>, <code>relationMap</code>, <code>book</code>, <code>noteMap</code>, <code>mermaid</code>, <code>canvas</code>, <code>webView</code>, <code>launcher</code>, <code>doc</code>, <code>contentWidget</code>, <code>mindMap</code>, <code>geoMap</code>.</td></tr><tr><td><code>mime</code> <br><em>required</em></td><td><code>string</code> <br>MIME type</td></tr><tr><td><code>isProtected</code> <br><em>required</em></td><td><code>boolean</code> <br>Whether note is protected</td></tr><tr><td><code>blobId</code></td><td><code>string</code> <br>ID of content blob</td></tr><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"noteId\": \"ur11rSfHkzeV\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"text/html\",\n \"isProtected\": true,\n \"blobId\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section></div><h3>Update API script launcher</h3><p><code>PUT /api/special-notes/api-script-launcher</code> · <code>updateApiScriptLauncher</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>code</code></td><td><code>string</code> <br>Script code</td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"code\": \"string\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: API script launcher updated</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Note\"><code>Note</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code> <br>Note title</td></tr><tr><td><code>type</code> <br><em>required</em></td><td><a href=\"#schema-NoteType\"><code>NoteType</code></a> <br>One of <code>text</code>, <code>code</code>, <code>render</code>, <code>file</code>, <code>image</code>, <code>search</code>, <code>relationMap</code>, <code>book</code>, <code>noteMap</code>, <code>mermaid</code>, <code>canvas</code>, <code>webView</code>, <code>launcher</code>, <code>doc</code>, <code>contentWidget</code>, <code>mindMap</code>, <code>geoMap</code>.</td></tr><tr><td><code>mime</code> <br><em>required</em></td><td><code>string</code> <br>MIME type</td></tr><tr><td><code>isProtected</code> <br><em>required</em></td><td><code>boolean</code> <br>Whether note is protected</td></tr><tr><td><code>blobId</code></td><td><code>string</code> <br>ID of content blob</td></tr><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"noteId\": \"ur11rSfHkzeV\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"text/html\",\n \"isProtected\": true,\n \"blobId\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section></div><h2><span class=\"tn-icon bx bx-map-alt\"></span> Visualization</h2><p>Maps and visualizations</p><h3>Get tree map</h3><p><code>POST /api/note-map/{noteId}/tree</code> · <code>getTreeMap</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Tree map data</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><pre><code class=\"language-application-json\">{}</code></pre></div></section></div><h3>Get link map</h3><p><code>POST /api/note-map/{noteId}/link</code> · <code>getLinkMap</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Link map data</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><pre><code class=\"language-application-json\">{}</code></pre></div></section></div><h3>Get backlinks</h3><p><code>GET /api/note-map/{noteId}/backlinks</code> · <code>getBacklinks</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Backlinks</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>array of object</code></li></ul><pre><code class=\"language-application-json\">[\n {\n \"noteId\": \"string\",\n \"title\": \"string\"\n }\n]</code></pre></div></section></div><h3>Get backlink count for note</h3><p><code>GET /api/note-map/{noteId}/backlink-count</code> · <code>getBacklinkCount</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Backlink count</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>count</code></td><td><code>integer</code> <br>Number of backlinks to this note</td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"count\": 0\n}</code></pre></div></div></div></section></div><h3>Get relation map data</h3><p><code>POST /api/relation-map</code> · <code>getRelationMap</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code></td><td><code>string</code></td></tr><tr><td><code>maxDepth</code></td><td><code>integer</code></td></tr><tr><td><code>excludeArchived</code></td><td><code>boolean</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"noteId\": \"string\",\n \"maxDepth\": 0,\n \"excludeArchived\": true\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Relation map data</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><pre><code class=\"language-application-json\">{}</code></pre></div></section></div><h2><span class=\"tn-icon bx bx-globe\"></span> External</h2><p>External integrations (clipper, sender)</p><h3>Clipper handshake</h3><p><code>GET /api/clipper/handshake</code> · <code>clipperHandshake</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Handshake successful</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>protocolVersion</code></td><td><code>string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"protocolVersion\": \"string\"\n}</code></pre></div></div></div></section></div><h3>Add web clipping</h3><p><code>POST /api/clipper/clippings</code> · <code>addClipping</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>title</code></td><td><code>string</code></td></tr><tr><td><code>content</code></td><td><code>string</code></td></tr><tr><td><code>url</code></td><td><code>string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"title\": \"string\",\n \"content\": \"string\",\n \"url\": \"string\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">201: Clipping created</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Note\"><code>Note</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code> <br>Note title</td></tr><tr><td><code>type</code> <br><em>required</em></td><td><a href=\"#schema-NoteType\"><code>NoteType</code></a> <br>One of <code>text</code>, <code>code</code>, <code>render</code>, <code>file</code>, <code>image</code>, <code>search</code>, <code>relationMap</code>, <code>book</code>, <code>noteMap</code>, <code>mermaid</code>, <code>canvas</code>, <code>webView</code>, <code>launcher</code>, <code>doc</code>, <code>contentWidget</code>, <code>mindMap</code>, <code>geoMap</code>.</td></tr><tr><td><code>mime</code> <br><em>required</em></td><td><code>string</code> <br>MIME type</td></tr><tr><td><code>isProtected</code> <br><em>required</em></td><td><code>boolean</code> <br>Whether note is protected</td></tr><tr><td><code>blobId</code></td><td><code>string</code> <br>ID of content blob</td></tr><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"noteId\": \"ur11rSfHkzeV\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"text/html\",\n \"isProtected\": true,\n \"blobId\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section></div><h3>Create clipper note</h3><p><code>POST /api/clipper/notes</code> · <code>createClipperNote</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>title</code></td><td><code>string</code></td></tr><tr><td><code>content</code></td><td><code>string</code></td></tr><tr><td><code>parentNoteId</code></td><td><code>string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"title\": \"string\",\n \"content\": \"string\",\n \"parentNoteId\": \"string\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">201: Note created</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Note\"><code>Note</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code> <br>Note title</td></tr><tr><td><code>type</code> <br><em>required</em></td><td><a href=\"#schema-NoteType\"><code>NoteType</code></a> <br>One of <code>text</code>, <code>code</code>, <code>render</code>, <code>file</code>, <code>image</code>, <code>search</code>, <code>relationMap</code>, <code>book</code>, <code>noteMap</code>, <code>mermaid</code>, <code>canvas</code>, <code>webView</code>, <code>launcher</code>, <code>doc</code>, <code>contentWidget</code>, <code>mindMap</code>, <code>geoMap</code>.</td></tr><tr><td><code>mime</code> <br><em>required</em></td><td><code>string</code> <br>MIME type</td></tr><tr><td><code>isProtected</code> <br><em>required</em></td><td><code>boolean</code> <br>Whether note is protected</td></tr><tr><td><code>blobId</code></td><td><code>string</code> <br>ID of content blob</td></tr><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"noteId\": \"ur11rSfHkzeV\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"text/html\",\n \"isProtected\": true,\n \"blobId\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section></div><h3>Open note in clipper</h3><p><code>POST /api/clipper/open/{noteId}</code> · <code>openNoteInClipper</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Note opened in clipper</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>success</code></td><td><code>boolean</code></td></tr><tr><td><code>url</code></td><td><code>string</code> <br>URL to open in clipper</td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"success\": true,\n \"url\": \"string\"\n}</code></pre></div></div></div></section></div><h3>Sender login</h3><p><code>POST /api/sender/login</code> · <code>senderLogin</code></p><p><strong>Authorization</strong>: none</p><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>username</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>password</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"username\": \"string\",\n \"password\": \"string\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Login successful</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>token</code></td><td><code>string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"token\": \"string\"\n}</code></pre></div></div></div></section></div><h3>Upload image from sender</h3><p><code>POST /api/sender/image</code> · <code>uploadSenderImage</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Request body</strong> (required)</p><ul><li><code>multipart/form-data</code>: <code>object</code></li></ul><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>upload</code></td><td><code>string (binary)</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">201: Image uploaded</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Note\"><code>Note</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code> <br>Note title</td></tr><tr><td><code>type</code> <br><em>required</em></td><td><a href=\"#schema-NoteType\"><code>NoteType</code></a> <br>One of <code>text</code>, <code>code</code>, <code>render</code>, <code>file</code>, <code>image</code>, <code>search</code>, <code>relationMap</code>, <code>book</code>, <code>noteMap</code>, <code>mermaid</code>, <code>canvas</code>, <code>webView</code>, <code>launcher</code>, <code>doc</code>, <code>contentWidget</code>, <code>mindMap</code>, <code>geoMap</code>.</td></tr><tr><td><code>mime</code> <br><em>required</em></td><td><code>string</code> <br>MIME type</td></tr><tr><td><code>isProtected</code> <br><em>required</em></td><td><code>boolean</code> <br>Whether note is protected</td></tr><tr><td><code>blobId</code></td><td><code>string</code> <br>ID of content blob</td></tr><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"noteId\": \"ur11rSfHkzeV\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"text/html\",\n \"isProtected\": true,\n \"blobId\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section></div><h3>Save note from sender</h3><p><code>POST /api/sender/note</code> · <code>saveSenderNote</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>title</code></td><td><code>string</code></td></tr><tr><td><code>content</code></td><td><code>string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"title\": \"string\",\n \"content\": \"string\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">201: Note saved</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <a href=\"#schema-Note\"><code>Note</code></a></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code> <br>Note title</td></tr><tr><td><code>type</code> <br><em>required</em></td><td><a href=\"#schema-NoteType\"><code>NoteType</code></a> <br>One of <code>text</code>, <code>code</code>, <code>render</code>, <code>file</code>, <code>image</code>, <code>search</code>, <code>relationMap</code>, <code>book</code>, <code>noteMap</code>, <code>mermaid</code>, <code>canvas</code>, <code>webView</code>, <code>launcher</code>, <code>doc</code>, <code>contentWidget</code>, <code>mindMap</code>, <code>geoMap</code>.</td></tr><tr><td><code>mime</code> <br><em>required</em></td><td><code>string</code> <br>MIME type</td></tr><tr><td><code>isProtected</code> <br><em>required</em></td><td><code>boolean</code> <br>Whether note is protected</td></tr><tr><td><code>blobId</code></td><td><code>string</code> <br>ID of content blob</td></tr><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"noteId\": \"ur11rSfHkzeV\",\n \"title\": \"string\",\n \"type\": \"text\",\n \"mime\": \"text/html\",\n \"isProtected\": true,\n \"blobId\": \"string\",\n \"dateCreated\": \"2019-08-24T14:15:22Z\",\n \"dateModified\": \"2019-08-24T14:15:22Z\",\n \"utcDateCreated\": \"2019-08-24T14:15:22Z\",\n \"utcDateModified\": \"2019-08-24T14:15:22Z\"\n}</code></pre></div></div></div></section></div><h2><span class=\"tn-icon bx bx-wrench\"></span> Utilities</h2><p>Miscellaneous utilities</p><h3>Get system metrics</h3><p><code>GET /api/metrics</code> · <code>getMetrics</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Query parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>format</code></td><td><code>string</code> <br>One of <code>prometheus</code>, <code>json</code>.</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: System metrics</p><div class=\"trilium-tab-panel\"><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\"><code>application/json</code>: <code>object</code></p><div class=\"trilium-tab-panel\"><pre><code class=\"language-application-json\">{}</code></pre></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\"><code>text/plain</code>: <code>string</code></p><div class=\"trilium-tab-panel\"><p>&nbsp;</p></div></section></div></div></section></div><h3>Run system diagnostics</h3><p><code>GET /api/system-checks</code> · <code>runSystemChecks</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: System check results</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>array of object</code></li></ul><pre><code class=\"language-application-json\">[\n {\n \"name\": \"string\",\n \"status\": \"pass\",\n \"message\": \"string\"\n }\n]</code></pre></div></section></div><h3>Health check endpoint</h3><p><code>GET /api/health-check</code> · <code>healthCheck</code></p><p><strong>Authorization</strong>: none</p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Service is healthy</p><div class=\"trilium-tab-panel\"><ul><li><code>text/plain</code>: <code>string</code></li></ul></div></section></div><h3>Get backend log</h3><p><code>GET /api/backend-log</code> · <code>getBackendLog</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Backend log entries</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>array of object</code></li></ul><pre><code class=\"language-application-json\">[\n {\n \"timestamp\": \"2019-08-24T14:15:22Z\",\n \"level\": \"string\",\n \"message\": \"string\"\n }\n]</code></pre></div></section></div><h3>Get note size</h3><p><code>GET /api/stats/note-size/{noteId}</code> · <code>getNoteSize</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Note size</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>size</code></td><td><code>integer</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"size\": 0\n}</code></pre></div></div></div></section></div><h3>Get subtree size</h3><p><code>GET /api/stats/subtree-size/{noteId}</code> · <code>getSubtreeSize</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Subtree size</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>size</code></td><td><code>integer</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"size\": 0\n}</code></pre></div></div></div></section></div><h3>Get keyboard actions</h3><p><code>GET /api/keyboard-actions</code> · <code>getKeyboardActions</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Keyboard actions</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>array of object</code></li></ul><pre><code class=\"language-application-json\">[\n {\n \"actionName\": \"string\",\n \"shortcut\": \"string\",\n \"description\": \"string\"\n }\n]</code></pre></div></section></div><h3>Get keyboard shortcuts for notes</h3><p><code>GET /api/keyboard-shortcuts-for-notes</code> · <code>getKeyboardShortcutsForNotes</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Keyboard shortcuts for notes</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>array of object</code></li></ul><pre><code class=\"language-application-json\">[\n {\n \"noteId\": \"string\",\n \"shortcut\": \"string\",\n \"title\": \"string\"\n }\n]</code></pre></div></section></div><h3>Get font CSS</h3><p><code>GET /api/fonts</code> · <code>getFonts</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Font CSS</p><div class=\"trilium-tab-panel\"><ul><li><code>text/css</code>: <code>string</code></li></ul></div></section></div><h3>Add recent note</h3><p><code>POST /api/recent-notes</code> · <code>addRecentNote</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"noteId\": \"string\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">204: Note added to recent</p><div class=\"trilium-tab-panel\"><p>No content.</p></div></section></div><h3>Get recent changes</h3><p><code>GET /api/recent-changes/{ancestorNoteId}</code> · <code>getRecentChanges</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Path parameters</strong></p><figure class=\"table\"><table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><code>ancestorNoteId</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Recent changes</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>array of object</code></li></ul><pre><code class=\"language-application-json\">[\n {\n \"noteId\": \"string\",\n \"title\": \"string\",\n \"dateModified\": \"2019-08-24T14:15:22Z\"\n }\n]</code></pre></div></section></div><h3>Get icon usage statistics</h3><p><code>GET /api/other/icon-usage</code> · <code>getIconUsage</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Icon usage stats</p><div class=\"trilium-tab-panel\"><ul><li><code>application/json</code>: <code>object</code></li></ul><pre><code class=\"language-application-json\">{}</code></pre></div></section></div><h3>Render markdown to HTML</h3><p><code>POST /api/other/render-markdown</code> · <code>renderMarkdown</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>markdownContent</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"markdownContent\": \"string\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Rendered HTML</p><div class=\"trilium-tab-panel\"><ul><li><code>text/html</code>: <code>string</code></li></ul></div></section></div><h3>Renders given HTML to Markdown</h3><p><code>POST /api/other/to-markdown</code> · <code>toMarkdown</code></p><p><strong>Authorization</strong>: <code>sessionAuth</code> or <code>tokenAuth</code></p><p><strong>Request body</strong> (required)</p><ul><li><code>application/json</code>: <code>object</code></li></ul><div class=\"trilium-multicolumn-layout\" data-trilium-column-ratios=\"1-1\"><div class=\"trilium-multicolumn-column\"><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>htmlContent</code> <br><em>required</em></td><td><code>string</code></td></tr></tbody></table></figure></div><div class=\"trilium-multicolumn-column\"><pre><code class=\"language-application-json\">{\n \"htmlContent\": \"string\"\n}</code></pre></div></div><p><strong>Responses</strong></p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">200: Rendered Markdown</p><div class=\"trilium-tab-panel\"><ul><li><code>text/plain</code>: <code>string</code></li></ul></div></section></div><h2><span class=\"tn-icon bx bx-cube\"></span> Schemas</h2><h3><a id=\"schema-Note\"></a><code>Note</code></h3><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code> <br>12-character note ID</td></tr><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code> <br>Note title</td></tr><tr><td><code>type</code> <br><em>required</em></td><td><a href=\"#schema-NoteType\"><code>NoteType</code></a> <br>One of <code>text</code>, <code>code</code>, <code>render</code>, <code>file</code>, <code>image</code>, <code>search</code>, <code>relationMap</code>, <code>book</code>, <code>noteMap</code>, <code>mermaid</code>, <code>canvas</code>, <code>webView</code>, <code>launcher</code>, <code>doc</code>, <code>contentWidget</code>, <code>mindMap</code>, <code>geoMap</code>.</td></tr><tr><td><code>mime</code> <br><em>required</em></td><td><code>string</code> <br>MIME type</td></tr><tr><td><code>isProtected</code> <br><em>required</em></td><td><code>boolean</code> <br>Whether note is protected</td></tr><tr><td><code>blobId</code></td><td><code>string</code> <br>ID of content blob</td></tr><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure><h3><a id=\"schema-NoteType\"></a><code>NoteType</code></h3><p>Type: <code>string</code></p><p>One of <code>text</code>, <code>code</code>, <code>render</code>, <code>file</code>, <code>image</code>, <code>search</code>, <code>relationMap</code>, <code>book</code>, <code>noteMap</code>, <code>mermaid</code>, <code>canvas</code>, <code>webView</code>, <code>launcher</code>, <code>doc</code>, <code>contentWidget</code>, <code>mindMap</code>, <code>geoMap</code>.</p><h3><a id=\"schema-Branch\"></a><code>Branch</code></h3><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>branchId</code> <br><em>required</em></td><td><code>string</code> <br>Branch ID (parentNoteId_noteId)</td></tr><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>parentNoteId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>notePosition</code> <br><em>required</em></td><td><code>integer</code></td></tr><tr><td><code>prefix</code></td><td><code>string | null</code></td></tr><tr><td><code>isExpanded</code></td><td><code>boolean</code></td></tr></tbody></table></figure><h3><a id=\"schema-Attribute\"></a><code>Attribute</code></h3><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>attributeId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>noteId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>type</code> <br><em>required</em></td><td><code>string</code> <br>One of <code>label</code>, <code>relation</code>.</td></tr><tr><td><code>name</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>value</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>position</code></td><td><code>integer</code></td></tr><tr><td><code>isInheritable</code></td><td><code>boolean</code></td></tr></tbody></table></figure><h3><a id=\"schema-Attachment\"></a><code>Attachment</code></h3><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>attachmentId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>ownerId</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>role</code> <br><em>required</em></td><td><code>string</code> <br>One of <code>image</code>, <code>file</code>.</td></tr><tr><td><code>mime</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>blobId</code></td><td><code>string</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure><h3><a id=\"schema-Revision\"></a><code>Revision</code></h3><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>revisionId</code></td><td><code>string</code></td></tr><tr><td><code>noteId</code></td><td><code>string</code></td></tr><tr><td><code>title</code></td><td><code>string</code></td></tr><tr><td><code>type</code></td><td><a href=\"#schema-NoteType\"><code>NoteType</code></a> <br>One of <code>text</code>, <code>code</code>, <code>render</code>, <code>file</code>, <code>image</code>, <code>search</code>, <code>relationMap</code>, <code>book</code>, <code>noteMap</code>, <code>mermaid</code>, <code>canvas</code>, <code>webView</code>, <code>launcher</code>, <code>doc</code>, <code>contentWidget</code>, <code>mindMap</code>, <code>geoMap</code>.</td></tr><tr><td><code>mime</code></td><td><code>string</code></td></tr><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateCreated</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure><h3><a id=\"schema-SearchResult\"></a><code>SearchResult</code></h3><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code></td><td><code>string</code></td></tr><tr><td><code>title</code></td><td><code>string</code></td></tr><tr><td><code>path</code></td><td><code>string</code></td></tr><tr><td><code>score</code></td><td><code>number</code></td></tr><tr><td><code>highlights</code></td><td><code>array of string</code></td></tr></tbody></table></figure><h3><a id=\"schema-EntityChange\"></a><code>EntityChange</code></h3><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>entityChange</code></td><td><code>object</code></td></tr><tr><td><code>entityChange.entityName</code></td><td><code>string</code></td></tr><tr><td><code>entityChange.changeId</code></td><td><code>string</code></td></tr><tr><td><code>entity</code></td><td><code>object</code></td></tr></tbody></table></figure><h3><a id=\"schema-Timestamps\"></a><code>Timestamps</code></h3><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>dateModified</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>utcDateModified</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure><h3><a id=\"schema-CreateNoteRequest\"></a><code>CreateNoteRequest</code></h3><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>title</code> <br><em>required</em></td><td><code>string</code></td></tr><tr><td><code>content</code></td><td><code>string</code></td></tr><tr><td><code>type</code> <br><em>required</em></td><td><a href=\"#schema-NoteType\"><code>NoteType</code></a> <br>One of <code>text</code>, <code>code</code>, <code>render</code>, <code>file</code>, <code>image</code>, <code>search</code>, <code>relationMap</code>, <code>book</code>, <code>noteMap</code>, <code>mermaid</code>, <code>canvas</code>, <code>webView</code>, <code>launcher</code>, <code>doc</code>, <code>contentWidget</code>, <code>mindMap</code>, <code>geoMap</code>.</td></tr><tr><td><code>mime</code></td><td><code>string</code></td></tr><tr><td><code>isProtected</code></td><td><code>boolean</code></td></tr><tr><td><code>isExpanded</code></td><td><code>boolean</code></td></tr><tr><td><code>notePosition</code></td><td><code>integer</code></td></tr><tr><td><code>prefix</code></td><td><code>string</code></td></tr><tr><td><code>parentNoteId</code></td><td><code>string</code></td></tr><tr><td><code>templateNoteId</code></td><td><code>string</code></td></tr></tbody></table></figure><h3><a id=\"schema-ScriptBundle\"></a><code>ScriptBundle</code></h3><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>noteId</code></td><td><code>string</code></td></tr><tr><td><code>script</code></td><td><code>string</code></td></tr><tr><td><code>html</code></td><td><code>string</code></td></tr><tr><td><code>css</code></td><td><code>string</code></td></tr></tbody></table></figure><h3><a id=\"schema-AppInfo\"></a><code>AppInfo</code></h3><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>appVersion</code></td><td><code>string</code></td></tr><tr><td><code>dbVersion</code></td><td><code>integer</code></td></tr><tr><td><code>nodeVersion</code></td><td><code>string</code></td></tr><tr><td><code>syncVersion</code></td><td><code>integer</code></td></tr><tr><td><code>buildDate</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>buildRevision</code></td><td><code>string</code></td></tr><tr><td><code>dataDirectory</code></td><td><code>string</code></td></tr><tr><td><code>clipperProtocolVersion</code></td><td><code>string</code></td></tr><tr><td><code>utcDateTime</code></td><td><code>string (date-time)</code></td></tr></tbody></table></figure><h3><a id=\"schema-ChatSession\"></a><code>ChatSession</code></h3><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>sessionId</code></td><td><code>string</code></td></tr><tr><td><code>title</code></td><td><code>string</code></td></tr><tr><td><code>messages</code></td><td><code>array of object</code></td></tr><tr><td><code>messages[].role</code></td><td><code>string</code> <br>One of <code>user</code>, <code>assistant</code>, <code>system</code>.</td></tr><tr><td><code>messages[].content</code></td><td><code>string</code></td></tr><tr><td><code>messages[].timestamp</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>createdAt</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>lastActive</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>messageCount</code></td><td><code>integer</code></td></tr></tbody></table></figure><h3><a id=\"schema-EtapiToken\"></a><code>EtapiToken</code></h3><figure class=\"table\"><table><thead><tr><th>Property</th><th>Description</th></tr></thead><tbody><tr><td><code>etapiTokenId</code></td><td><code>string</code></td></tr><tr><td><code>name</code></td><td><code>string</code></td></tr><tr><td><code>token</code></td><td><code>string</code></td></tr><tr><td><code>dateCreated</code></td><td><code>string (date-time)</code></td></tr><tr><td><code>isDeleted</code></td><td><code>boolean</code></td></tr></tbody></table></figure>",
- "_help_2mUhVmZK8RF3": "<figure class=\"image image-style-align-right\"><img style=\"aspect-ratio:263/445;\" src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Hidden%20Notes_image.png\" width=\"263\" height=\"445\"></figure><p>For easy extensibility, a lot of features in Trilium make use of actual notes to store information as opposed to having them stored in a separate location in the database. This allows some functions such as&nbsp;<a class=\"reference-link\" href=\"#root/_help_zEY4DaJG4YT5\">Attributes</a>,&nbsp;<a class=\"reference-link\" href=\"#root/_help_Cq5X6iKQop6R\">Relations</a>&nbsp;or even&nbsp;<a class=\"reference-link\" href=\"#root/_help_eIg8jdvaoNNd\">Search</a>&nbsp;and&nbsp;<a class=\"reference-link\" href=\"#root/_help_QEAPj01N5f7w\">Links</a>&nbsp;to be able to operate on them.</p><p>As the name suggests, these notes are hidden to the user by default to prevent cluttering the note tree and to prevent them from being accidentally deleted.</p><p>The hidden notes are stored in the user's&nbsp;<a class=\"reference-link\" href=\"#root/_help_wX4HbRucYSDD\">Database</a>&nbsp;just like normal notes, but they have a unique&nbsp;<a class=\"reference-link\" href=\"#root/_help_m1lbrzyKDaRB\">Note ID</a>&nbsp;which allows them to be distinguished from the normal ones.</p><h2>Accessing the hidden note tree</h2><p>From the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>, select <em>Advanced</em> → <em>Show hidden subtree</em>.</p><h2>Contents of the hidden note tree</h2><p>Here is a brief summary of all the notes within the hidden tree:</p><figure class=\"table\"><table class=\"ck-table-resized\"><colgroup><col style=\"width:19.93%;\"><col style=\"width:80.07%;\"></colgroup><thead><tr><th>Note</th><th>Description</th></tr></thead><tbody><tr><td><a class=\"reference-link\" href=\"#root/_hidden/_globalNoteMap\">Note Map</a></td><td><p>This note is actually opened when the&nbsp;<a class=\"reference-link\" href=\"#root/_help_bdUJEHsAPYQR\">Note Map</a>&nbsp;feature that is accessed from the&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>.</p><p>It is possible to create any child notes in it without any additional meaning. For example, it can be used to store a list of note maps which can be linked to from other notes or <a href=\"#root/_help_u3YFHC9tQlpm\">bookmarked</a>.</p></td></tr><tr><td><a class=\"reference-link\" href=\"#root/_hidden/_sqlConsole\">SQL Console History</a></td><td><p>When SQL queries or commands are executed in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_YKWqdJhzi2VY\">SQL Console</a>, they are stored here, grouped by month. Only the query is stored and not the results.</p><p>This section can be accessed without going to the hidden tree by simply going to the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>&nbsp;and selecting Advanced → Open SQL console history.</p><p>Notes can be added as children of this tree, but it's generally not recommended to do so to not interfere with the normal history process.</p></td></tr><tr><td><a class=\"reference-link\" href=\"#root/_hidden/_search\">Search History</a></td><td><p>Whenever a search is executed from the full&nbsp;<a class=\"reference-link\" href=\"#root/_help_eIg8jdvaoNNd\">Search</a>, the query will be stored here, grouped by month. Only the search parameters are stored and not the results themselves.</p><p>This section can be accessed without going to the hidden tree by simply going to the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>&nbsp;and selecting Advanced → Open search history.</p><p>Notes can be added as children of this tree, but it's generally not recommended to do so to not interfere with the normal history process.</p></td></tr><tr><td><a class=\"reference-link\" href=\"#root/_hidden/_bulkAction\">Bulk Action</a></td><td><p>This section is used for&nbsp;<a class=\"reference-link\" href=\"#root/_help_ivYnonVFBxbQ\">Bulk Actions</a>. The last configuration for bulk actions will be stored as part of this note, each action in its own <code>action</code> label.</p><p>Notes can be added as children of this tree, but there won't be any benefit in doing so.</p></td></tr><tr><td><a class=\"reference-link\" href=\"#root/_hidden/_backendLog\">Backend Log</a></td><td><p>This note corresponds to the backend log feature (see&nbsp;<a class=\"reference-link\" href=\"#root/_help_qzNzp9LYQyPT\">Error logs</a>).</p><p>This item can be accessed without going to the hidden try by going to the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>&nbsp;and selecting Advanced → Show backend log.</p></td></tr><tr><td><a class=\"reference-link\" href=\"#root/_hidden/_userHidden\">User Hidden</a></td><td>This section can be used by <a href=\"#root/_help_CdNpE2pqjmI6\">scripts</a> to create their own notes that should not be directly visible to the user. The note can be identified by scripts by its unique ID: <code>_userHidden</code></td></tr><tr><td><a class=\"reference-link\" href=\"#root/_hidden/_lbTplRoot\">Launch Bar Templates</a></td><td><p>This section contains the templates for the creation of launchers in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>. It is not possible to create child notes here.</p><p>Theoretically some of the notes here can be customized, but there's not much benefit to be had in doing so.</p></td></tr><tr><td><a class=\"reference-link\" href=\"#root/_hidden/_share\">Shared Notes</a></td><td><p>This tree lists all of the notes that are <a href=\"#root/_help_R9pX4DGra2Vt\">shared</a> publicly. It can be useful to track down which notes are shared regardless of their position in the note tree.</p><p>This section can be accessed without going to the hidden tree simply by going to the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>&nbsp;and selecting <em>Show shared notes subtree</em>.</p><p>Sub-notes cannot be created here.</p></td></tr><tr><td><a class=\"reference-link\" href=\"#root/_hidden/_lbRoot\">Launch Bar</a></td><td><p>The tree contains both available and displayed items of the&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>.</p><p>This section can be accessed without going to the hidden tree by:</p><ul><li>Going to the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>&nbsp;and selecting <em>Configure launch bar…</em>.</li><li>Right-clicking an empty space on the&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>&nbsp;and selecting <em>Configure launch bar…</em>.</li></ul><p>Sub-notes cannot be created here.</p></td></tr><tr><td><a class=\"reference-link\" href=\"#root/_hidden/_options\">Options</a></td><td><p>This section stores the list of&nbsp;<a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a>.</p><p>This section can be accessed without going to the hidden tree by:</p><ul><li>Going to the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>&nbsp;and selecting <em>Options</em>.</li><li>Pressing the dedicated Options icon in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>.</li></ul></td></tr><tr><td><a class=\"reference-link\" href=\"#root/_hidden/_lbMobileRoot\">Mobile Launch Bar</a></td><td><p>This is very similar to the <em>Launch Bar</em>, but is dedicated for the mobile UI only.</p><p>Accessing it outside the <em>Launch Bar</em> is the same as the Launch Bar, but needs to be done so from the mobile interface.</p></td></tr><tr><td><a class=\"reference-link\" href=\"#root/_hidden/_help\">User Guide</a></td><td>This is where the User Guide appears in the note tree. Its notes are not stored in the database: Trilium builds them from files that ship with the application each time it starts, so they cannot be edited, moved or cloned, and they are not synchronized.</td></tr></tbody></table></figure>",
+ "_help_2mUhVmZK8RF3": "<figure class=\"image image-style-align-right\"><img style=\"aspect-ratio:263/445;\" src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Hidden%20Notes_image.png\" width=\"263\" height=\"445\"></figure><p>For easy extensibility, a lot of features in Trilium make use of actual notes to store information as opposed to having them stored in a separate location in the database. This allows some functions such as&nbsp;<a class=\"reference-link\" href=\"#root/_help_zEY4DaJG4YT5\">Attributes</a>,&nbsp;<a class=\"reference-link\" href=\"#root/_help_Cq5X6iKQop6R\">Relations</a>&nbsp;or even&nbsp;<a class=\"reference-link\" href=\"#root/_help_eIg8jdvaoNNd\">Search</a>&nbsp;and&nbsp;<a class=\"reference-link\" href=\"#root/_help_QEAPj01N5f7w\">Links</a>&nbsp;to be able to operate on them.</p><p>As the name suggests, these notes are hidden to the user by default to prevent cluttering the note tree and to prevent them from being accidentally deleted.</p><p>The hidden notes are stored in the user's&nbsp;<a class=\"reference-link\" href=\"#root/_help_wX4HbRucYSDD\">Database</a>&nbsp;just like normal notes, but they have a unique&nbsp;<a class=\"reference-link\" href=\"#root/_help_m1lbrzyKDaRB\">Note ID</a>&nbsp;which allows them to be distinguished from the normal ones.</p><h2>Accessing the hidden note tree</h2><p>From the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>, select <em>Advanced</em> → <em>Hidden notes</em>.</p><h2>Contents of the hidden note tree</h2><p>Here is a brief summary of all the notes within the hidden tree:</p><figure class=\"table\"><table class=\"ck-table-resized\"><colgroup><col style=\"width:19.93%;\"><col style=\"width:80.07%;\"></colgroup><thead><tr><th>Note</th><th>Description</th></tr></thead><tbody><tr><td><a class=\"reference-link\" href=\"#root/_hidden/_globalNoteMap\">Note Map</a></td><td><p>This note is actually opened when the&nbsp;<a class=\"reference-link\" href=\"#root/_help_bdUJEHsAPYQR\">Note Map</a>&nbsp;feature that is accessed from the&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>.</p><p>It is possible to create any child notes in it without any additional meaning. For example, it can be used to store a list of note maps which can be linked to from other notes or <a href=\"#root/_help_u3YFHC9tQlpm\">bookmarked</a>.</p></td></tr><tr><td><a class=\"reference-link\" href=\"#root/_hidden/_sqlConsole\">SQL Console History</a></td><td><p>When SQL queries or commands are executed in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_YKWqdJhzi2VY\">SQL Console</a>, they are stored here, grouped by month. Only the query is stored and not the results.</p><p>This section can be accessed without going to the hidden tree by simply going to the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>&nbsp;and selecting Advanced → SQL console history.</p><p>Notes can be added as children of this tree, but it's generally not recommended to do so to not interfere with the normal history process.</p></td></tr><tr><td><a class=\"reference-link\" href=\"#root/_hidden/_search\">Search History</a></td><td><p>Whenever a search is executed from the full&nbsp;<a class=\"reference-link\" href=\"#root/_help_eIg8jdvaoNNd\">Search</a>, the query will be stored here, grouped by month. Only the search parameters are stored and not the results themselves.</p><p>This section can be accessed without going to the hidden tree by simply going to the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>&nbsp;and selecting Advanced → Search history.</p><p>Notes can be added as children of this tree, but it's generally not recommended to do so to not interfere with the normal history process.</p></td></tr><tr><td><a class=\"reference-link\" href=\"#root/_hidden/_bulkAction\">Bulk Action</a></td><td><p>This section is used for&nbsp;<a class=\"reference-link\" href=\"#root/_help_ivYnonVFBxbQ\">Bulk Actions</a>. The last configuration for bulk actions will be stored as part of this note, each action in its own <code>action</code> label.</p><p>Notes can be added as children of this tree, but there won't be any benefit in doing so.</p></td></tr><tr><td><a class=\"reference-link\" href=\"#root/_hidden/_backendLog\">Backend Log</a></td><td><p>This note corresponds to the backend log feature (see&nbsp;<a class=\"reference-link\" href=\"#root/_help_qzNzp9LYQyPT\">Error logs</a>).</p><p>This item can be accessed without going to the hidden try by going to the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>&nbsp;and selecting Advanced → Backend log.</p></td></tr><tr><td><a class=\"reference-link\" href=\"#root/_hidden/_userHidden\">User Hidden</a></td><td>This section can be used by <a href=\"#root/_help_CdNpE2pqjmI6\">scripts</a> to create their own notes that should not be directly visible to the user. The note can be identified by scripts by its unique ID: <code>_userHidden</code></td></tr><tr><td><a class=\"reference-link\" href=\"#root/_hidden/_lbTplRoot\">Launch Bar Templates</a></td><td><p>This section contains the templates for the creation of launchers in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>. It is not possible to create child notes here.</p><p>Theoretically some of the notes here can be customized, but there's not much benefit to be had in doing so.</p></td></tr><tr><td><a class=\"reference-link\" href=\"#root/_hidden/_share\">Shared Notes</a></td><td><p>This tree lists all of the notes that are <a href=\"#root/_help_R9pX4DGra2Vt\">shared</a> publicly. It can be useful to track down which notes are shared regardless of their position in the note tree.</p><p>This section can be accessed without going to the hidden tree simply by going to the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>&nbsp;and selecting <em>Advanced</em> → <em>Shared notes</em>.</p><p>Sub-notes cannot be created here.</p></td></tr><tr><td><a class=\"reference-link\" href=\"#root/_hidden/_lbRoot\">Launch Bar</a></td><td><p>The tree contains both available and displayed items of the&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>.</p><p>This section can be accessed without going to the hidden tree by:</p><ul><li>Going to the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>&nbsp;and selecting <em>Configure launch bar…</em>.</li><li>Right-clicking an empty space on the&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>&nbsp;and selecting <em>Configure launch bar…</em>.</li></ul><p>Sub-notes cannot be created here.</p></td></tr><tr><td><a class=\"reference-link\" href=\"#root/_hidden/_options\">Options</a></td><td><p>This section stores the list of&nbsp;<a class=\"reference-link\" href=\"#root/_help_4TIF1oA4VQRO\">Options</a>.</p><p>This section can be accessed without going to the hidden tree by:</p><ul><li>Going to the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>&nbsp;and selecting <em>Options</em>.</li><li>Pressing the dedicated Options icon in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>.</li></ul></td></tr><tr><td><a class=\"reference-link\" href=\"#root/_hidden/_lbMobileRoot\">Mobile Launch Bar</a></td><td><p>This is very similar to the <em>Launch Bar</em>, but is dedicated for the mobile UI only.</p><p>Accessing it outside the <em>Launch Bar</em> is the same as the Launch Bar, but needs to be done so from the mobile interface.</p></td></tr><tr><td><a class=\"reference-link\" href=\"#root/_hidden/_help\">User Guide</a></td><td>This is where the User Guide appears in the note tree. Its notes are not stored in the database: Trilium builds them from files that ship with the application each time it starts, so they cannot be edited, moved or cloned, and they are not synchronized.</td></tr></tbody></table></figure>",
"_help_uYF7pmepw27K": "<p>The Trilium Metrics API provides comprehensive monitoring data about your Trilium instance, designed for external monitoring systems like Prometheus.</p><h2>Endpoint</h2><ul><li><strong>URL</strong>: <code>/etapi/metrics</code></li><li><strong>Method</strong>: <code>GET</code></li><li><strong>Authentication</strong>: ETAPI token required</li><li><strong>Default Format</strong>: Prometheus text format</li></ul><h2>Authentication</h2><p>You need an ETAPI token to access the metrics endpoint. Get one by:</p><pre><code class=\"language-text-x-trilium-auto\"># Get an ETAPI token\ncurl -X POST http://localhost:8080/etapi/auth/login \\\n -H \"Content-Type: application/json\" \\\n -d '{\"password\": \"your_password\"}'\n</code></pre><h2>Usage</h2><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">Prometheus Format (Default)</p><div class=\"trilium-tab-panel\"><pre><code class=\"language-text-x-trilium-auto\">curl -H \"Authorization: YOUR_ETAPI_TOKEN\" \\\n http://localhost:8080/etapi/metrics\n</code></pre><p>Returns metrics in Prometheus text format:</p><pre><code class=\"language-text-x-trilium-auto\"># HELP trilium_info Trilium instance information\n# TYPE trilium_info gauge\ntrilium_info{version=\"0.91.6\",db_version=\"231\",node_version=\"v18.17.0\"} 1 1701432000\n\n# HELP trilium_notes_total Total number of notes including deleted\n# TYPE trilium_notes_total gauge\ntrilium_notes_total 1234 1701432000</code></pre></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\">JSON Format</p><div class=\"trilium-tab-panel\"><pre><code class=\"language-text-x-trilium-auto\">curl -H \"Authorization: YOUR_ETAPI_TOKEN\" \\\n \"http://localhost:8080/etapi/metrics?format=json\"\n</code></pre><p>Returns detailed metrics in JSON format for debugging or custom integrations.</p></div></section></div><h2>Available Metrics</h2><h3>Instance Information</h3><ul><li><code>trilium_info</code> - Version and build information with labels</li></ul><h3>Database Metrics</h3><ul><li><code>trilium_notes_total</code> - Total notes (including deleted)</li><li><code>trilium_notes_deleted</code> - Number of deleted notes</li><li><code>trilium_notes_active</code> - Number of active notes</li><li><code>trilium_notes_protected</code> - Number of protected notes</li><li><code>trilium_attachments_total</code> - Total attachments</li><li><code>trilium_attachments_active</code> - Active attachments</li><li><code>trilium_revisions_total</code> - Total note revisions</li><li><code>trilium_branches_total</code> - Active branches</li><li><code>trilium_attributes_total</code> - Active attributes</li><li><code>trilium_blobs_total</code> - Total blob records</li><li><code>trilium_etapi_tokens_total</code> - Active ETAPI tokens</li><li><code>trilium_embeddings_total</code> - Note embeddings (if available)</li></ul><h3>Categorized Metrics</h3><ul><li><code>trilium_notes_by_type{type=\"text|code|image|file\"}</code> - Notes by type</li><li><code>trilium_attachments_by_type{mime_type=\"...\"}</code> - Attachments by MIME type</li></ul><h3>Statistics</h3><ul><li><code>trilium_database_size_bytes</code> - Database size in bytes</li><li><code>trilium_oldest_note_timestamp</code> - Timestamp of oldest note</li><li><code>trilium_newest_note_timestamp</code> - Timestamp of newest note</li><li><code>trilium_last_modified_timestamp</code> - Last modification timestamp</li></ul><h2>Prometheus Configuration</h2><p>Add to your <code>prometheus.yml</code>:</p><pre><code class=\"language-text-x-trilium-auto\">scrape_configs:\n - job_name: 'trilium'\n static_configs:\n - targets: ['localhost:8080']\n metrics_path: '/etapi/metrics'\n bearer_token: 'YOUR_ETAPI_TOKEN'\n scrape_interval: 30s\n</code></pre><h2>Error Responses</h2><ul><li><code>400</code> - Invalid format parameter</li><li><code>401</code> - Missing or invalid ETAPI token</li><li><code>500</code> - Internal server error</li></ul><h2>Grafana Dashboard</h2><figure class=\"image\"><img style=\"aspect-ratio:2594/1568;\" src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/1_Metrics_image.png\" width=\"2594\" height=\"1568\"></figure><p>You can also use the Grafana Dashboard that has been created for TriliumNext - just take the JSON from&nbsp;<a class=\"reference-link\" href=\"#root/_help_bOP3TB56fL1V\">grafana-dashboard.json</a>&nbsp;and then import the dashboard, following these screenshots:</p><figure class=\"image\"><img style=\"aspect-ratio:1881/282;\" src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/2_Metrics_image.png\" width=\"1881\" height=\"282\"></figure><p>Then paste the JSON, and hit load:</p><figure class=\"image\"><img style=\"aspect-ratio:1055/830;\" src=\"{{helpAssets}}/User%20Guide/Advanced%20Usage/Metrics_image.png\" width=\"1055\" height=\"830\"></figure>",
"_help_bOP3TB56fL1V": "{\n \"annotations\": {\n \"list\": [\n {\n \"builtIn\": 1,\n \"datasource\": {\n \"type\": \"grafana\",\n \"uid\": \"-- Grafana --\"\n },\n \"enable\": true,\n \"hide\": true,\n \"iconColor\": \"rgba(0, 211, 255, 1)\",\n \"name\": \"Annotations & Alerts\",\n \"type\": \"dashboard\"\n }\n ]\n },\n \"editable\": true,\n \"fiscalYearStartMonth\": 0,\n \"graphTooltip\": 1,\n \"id\": 549,\n \"links\": [],\n \"panels\": [\n {\n \"collapsed\": false,\n \"gridPos\": {\n \"h\": 1,\n \"w\": 24,\n \"x\": 0,\n \"y\": 0\n },\n \"id\": 100,\n \"panels\": [],\n \"title\": \"🏠 Trilium Overview\",\n \"type\": \"row\"\n },\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"description\": \"Current Trilium version and build information\",\n \"fieldConfig\": {\n \"defaults\": {\n \"color\": {\n \"mode\": \"thresholds\"\n },\n \"custom\": {\n \"align\": \"auto\",\n \"cellOptions\": {\n \"type\": \"auto\"\n },\n \"filterable\": false,\n \"inspect\": false\n },\n \"mappings\": [],\n \"thresholds\": {\n \"mode\": \"absolute\",\n \"steps\": [\n {\n \"color\": \"green\"\n }\n ]\n }\n },\n \"overrides\": []\n },\n \"gridPos\": {\n \"h\": 6,\n \"w\": 12,\n \"x\": 0,\n \"y\": 1\n },\n \"id\": 101,\n \"options\": {\n \"cellHeight\": \"sm\",\n \"footer\": {\n \"countRows\": false,\n \"fields\": \"\",\n \"reducer\": [\n \"sum\"\n ],\n \"show\": false\n },\n \"showHeader\": true\n },\n \"pluginVersion\": \"12.0.1\",\n \"targets\": [\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"expr\": \"trilium_info{job=~'$job',instance=~'$instance'}\",\n \"format\": \"table\",\n \"instant\": true,\n \"refId\": \"A\"\n }\n ],\n \"title\": \"📋 Instance Information\",\n \"transformations\": [\n {\n \"id\": \"organize\",\n \"options\": {\n \"excludeByName\": {\n \"Time\": true,\n \"Value\": true,\n \"__name__\": true,\n \"instance\": true,\n \"job\": true\n },\n \"indexByName\": {},\n \"renameByName\": {\n \"build_date\": \"Build Date\",\n \"build_revision\": \"Git Revision\",\n \"db_version\": \"DB Version\",\n \"node_version\": \"Node.js\",\n \"sync_version\": \"Sync Version\",\n \"version\": \"Version\"\n }\n }\n }\n ],\n \"type\": \"table\"\n },\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"description\": \"Database file size in human-readable format\",\n \"fieldConfig\": {\n \"defaults\": {\n \"color\": {\n \"mode\": \"thresholds\"\n },\n \"mappings\": [],\n \"thresholds\": {\n \"mode\": \"absolute\",\n \"steps\": [\n {\n \"color\": \"green\"\n },\n {\n \"color\": \"yellow\",\n \"value\": 500000000\n },\n {\n \"color\": \"red\",\n \"value\": 1000000000\n }\n ]\n },\n \"unit\": \"decbytes\"\n },\n \"overrides\": []\n },\n \"gridPos\": {\n \"h\": 6,\n \"w\": 6,\n \"x\": 12,\n \"y\": 1\n },\n \"id\": 102,\n \"options\": {\n \"colorMode\": \"background\",\n \"graphMode\": \"area\",\n \"justifyMode\": \"center\",\n \"orientation\": \"auto\",\n \"percentChangeColorMode\": \"standard\",\n \"reduceOptions\": {\n \"calcs\": [\n \"lastNotNull\"\n ],\n \"fields\": \"\",\n \"values\": false\n },\n \"showPercentChange\": false,\n \"textMode\": \"auto\",\n \"wideLayout\": true\n },\n \"pluginVersion\": \"12.0.1\",\n \"targets\": [\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"expr\": \"trilium_database_size_bytes{job=~'$job',instance=~'$instance'}\",\n \"refId\": \"A\"\n }\n ],\n \"title\": \"💾 Database Size\",\n \"type\": \"stat\"\n },\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"description\": \"Total active notes in your Trilium instance\",\n \"fieldConfig\": {\n \"defaults\": {\n \"color\": {\n \"mode\": \"thresholds\"\n },\n \"mappings\": [],\n \"thresholds\": {\n \"mode\": \"absolute\",\n \"steps\": [\n {\n \"color\": \"green\"\n },\n {\n \"color\": \"yellow\",\n \"value\": 1000\n },\n {\n \"color\": \"red\",\n \"value\": 5000\n }\n ]\n },\n \"unit\": \"short\"\n },\n \"overrides\": []\n },\n \"gridPos\": {\n \"h\": 6,\n \"w\": 6,\n \"x\": 18,\n \"y\": 1\n },\n \"id\": 103,\n \"options\": {\n \"colorMode\": \"background\",\n \"graphMode\": \"area\",\n \"justifyMode\": \"center\",\n \"orientation\": \"auto\",\n \"percentChangeColorMode\": \"standard\",\n \"reduceOptions\": {\n \"calcs\": [\n \"lastNotNull\"\n ],\n \"fields\": \"\",\n \"values\": false\n },\n \"showPercentChange\": false,\n \"textMode\": \"auto\",\n \"wideLayout\": true\n },\n \"pluginVersion\": \"12.0.1\",\n \"targets\": [\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"expr\": \"trilium_notes_active{job=~'$job',instance=~'$instance'}\",\n \"refId\": \"A\"\n }\n ],\n \"title\": \"📝 Active Notes\",\n \"type\": \"stat\"\n },\n {\n \"collapsed\": false,\n \"gridPos\": {\n \"h\": 1,\n \"w\": 24,\n \"x\": 0,\n \"y\": 7\n },\n \"id\": 200,\n \"panels\": [],\n \"title\": \"📊 Key Metrics\",\n \"type\": \"row\"\n },\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"description\": \"Total notes including deleted ones\",\n \"fieldConfig\": {\n \"defaults\": {\n \"color\": {\n \"mode\": \"palette-classic\"\n },\n \"custom\": {\n \"hideFrom\": {\n \"legend\": false,\n \"tooltip\": false,\n \"viz\": false\n }\n },\n \"mappings\": [],\n \"unit\": \"short\"\n },\n \"overrides\": []\n },\n \"gridPos\": {\n \"h\": 8,\n \"w\": 6,\n \"x\": 0,\n \"y\": 8\n },\n \"id\": 201,\n \"options\": {\n \"legend\": {\n \"displayMode\": \"list\",\n \"placement\": \"bottom\",\n \"showLegend\": true,\n \"values\": []\n },\n \"pieType\": \"pie\",\n \"reduceOptions\": {\n \"calcs\": [\n \"lastNotNull\"\n ],\n \"fields\": \"\",\n \"values\": false\n },\n \"tooltip\": {\n \"hideZeros\": false,\n \"mode\": \"single\",\n \"sort\": \"none\"\n }\n },\n \"pluginVersion\": \"12.0.1\",\n \"targets\": [\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"expr\": \"trilium_notes_active{job=~'$job',instance=~'$instance'}\",\n \"legendFormat\": \"Active Notes\",\n \"refId\": \"A\"\n },\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"expr\": \"trilium_notes_deleted{job=~'$job',instance=~'$instance'}\",\n \"legendFormat\": \"Deleted Notes\",\n \"refId\": \"B\"\n },\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"expr\": \"trilium_notes_protected{job=~'$job',instance=~'$instance'}\",\n \"legendFormat\": \"Protected Notes\",\n \"refId\": \"C\"\n }\n ],\n \"title\": \"📝 Notes Distribution\",\n \"type\": \"piechart\"\n },\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"description\": \"Breakdown of attachments by MIME type\",\n \"fieldConfig\": {\n \"defaults\": {\n \"color\": {\n \"mode\": \"palette-classic\"\n },\n \"custom\": {\n \"hideFrom\": {\n \"legend\": false,\n \"tooltip\": false,\n \"viz\": false\n }\n },\n \"mappings\": [],\n \"unit\": \"short\"\n },\n \"overrides\": []\n },\n \"gridPos\": {\n \"h\": 8,\n \"w\": 6,\n \"x\": 6,\n \"y\": 8\n },\n \"id\": 202,\n \"options\": {\n \"legend\": {\n \"displayMode\": \"list\",\n \"placement\": \"bottom\",\n \"showLegend\": true,\n \"values\": []\n },\n \"pieType\": \"donut\",\n \"reduceOptions\": {\n \"calcs\": [\n \"lastNotNull\"\n ],\n \"fields\": \"\",\n \"values\": false\n },\n \"tooltip\": {\n \"hideZeros\": false,\n \"mode\": \"single\",\n \"sort\": \"none\"\n }\n },\n \"pluginVersion\": \"12.0.1\",\n \"targets\": [\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"expr\": \"trilium_attachments_by_type{job=~'$job',instance=~'$instance'}\",\n \"legendFormat\": \"{{mime_type}}\",\n \"refId\": \"A\"\n }\n ],\n \"title\": \"🖼️ Attachments by Type\",\n \"type\": \"piechart\"\n },\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"description\": \"Distribution of notes by their content type\",\n \"fieldConfig\": {\n \"defaults\": {\n \"color\": {\n \"mode\": \"palette-classic\"\n },\n \"custom\": {\n \"hideFrom\": {\n \"legend\": false,\n \"tooltip\": false,\n \"viz\": false\n }\n },\n \"mappings\": [],\n \"unit\": \"short\"\n },\n \"overrides\": []\n },\n \"gridPos\": {\n \"h\": 8,\n \"w\": 12,\n \"x\": 12,\n \"y\": 8\n },\n \"id\": 203,\n \"options\": {\n \"legend\": {\n \"displayMode\": \"table\",\n \"placement\": \"right\",\n \"showLegend\": true,\n \"values\": [\n \"value\",\n \"percent\"\n ]\n },\n \"pieType\": \"donut\",\n \"reduceOptions\": {\n \"calcs\": [\n \"lastNotNull\"\n ],\n \"fields\": \"\",\n \"values\": false\n },\n \"tooltip\": {\n \"hideZeros\": false,\n \"mode\": \"single\",\n \"sort\": \"none\"\n }\n },\n \"pluginVersion\": \"12.0.1\",\n \"targets\": [\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"expr\": \"trilium_notes_by_type{job=~'$job',instance=~'$instance'}\",\n \"legendFormat\": \"{{type}}\",\n \"refId\": \"A\"\n }\n ],\n \"title\": \"📄 Notes by Content Type\",\n \"type\": \"piechart\"\n },\n {\n \"collapsed\": false,\n \"gridPos\": {\n \"h\": 1,\n \"w\": 24,\n \"x\": 0,\n \"y\": 16\n },\n \"id\": 300,\n \"panels\": [],\n \"title\": \"📈 Trends & Time Series\",\n \"type\": \"row\"\n },\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"description\": \"Growth of notes over time\",\n \"fieldConfig\": {\n \"defaults\": {\n \"color\": {\n \"mode\": \"palette-classic\"\n },\n \"custom\": {\n \"axisBorderShow\": false,\n \"axisCenteredZero\": false,\n \"axisColorMode\": \"text\",\n \"axisLabel\": \"\",\n \"axisPlacement\": \"auto\",\n \"barAlignment\": 0,\n \"barWidthFactor\": 0.6,\n \"drawStyle\": \"line\",\n \"fillOpacity\": 20,\n \"gradientMode\": \"hue\",\n \"hideFrom\": {\n \"legend\": false,\n \"tooltip\": false,\n \"viz\": false\n },\n \"insertNulls\": false,\n \"lineInterpolation\": \"smooth\",\n \"lineWidth\": 3,\n \"pointSize\": 8,\n \"scaleDistribution\": {\n \"type\": \"linear\"\n },\n \"showPoints\": \"auto\",\n \"spanNulls\": false,\n \"stacking\": {\n \"group\": \"A\",\n \"mode\": \"none\"\n },\n \"thresholdsStyle\": {\n \"mode\": \"off\"\n }\n },\n \"mappings\": [],\n \"thresholds\": {\n \"mode\": \"absolute\",\n \"steps\": [\n {\n \"color\": \"green\"\n }\n ]\n },\n \"unit\": \"short\"\n },\n \"overrides\": [\n {\n \"matcher\": {\n \"id\": \"byName\",\n \"options\": \"Active Notes\"\n },\n \"properties\": [\n {\n \"id\": \"color\",\n \"value\": {\n \"fixedColor\": \"blue\",\n \"mode\": \"fixed\"\n }\n }\n ]\n },\n {\n \"matcher\": {\n \"id\": \"byName\",\n \"options\": \"Total Notes\"\n },\n \"properties\": [\n {\n \"id\": \"color\",\n \"value\": {\n \"fixedColor\": \"green\",\n \"mode\": \"fixed\"\n }\n }\n ]\n }\n ]\n },\n \"gridPos\": {\n \"h\": 8,\n \"w\": 12,\n \"x\": 0,\n \"y\": 17\n },\n \"id\": 301,\n \"options\": {\n \"legend\": {\n \"calcs\": [\n \"last\",\n \"max\"\n ],\n \"displayMode\": \"table\",\n \"placement\": \"bottom\",\n \"showLegend\": true\n },\n \"tooltip\": {\n \"hideZeros\": false,\n \"mode\": \"multi\",\n \"sort\": \"desc\"\n }\n },\n \"pluginVersion\": \"12.0.1\",\n \"targets\": [\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"expr\": \"trilium_notes_active{job=~'$job',instance=~'$instance'}\",\n \"legendFormat\": \"Active Notes\",\n \"refId\": \"A\"\n },\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"expr\": \"trilium_notes_total{job=~'$job',instance=~'$instance'}\",\n \"legendFormat\": \"Total Notes\",\n \"refId\": \"B\"\n }\n ],\n \"title\": \"📈 Notes Growth Over Time\",\n \"type\": \"timeseries\"\n },\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"description\": \"Attachment storage trends\",\n \"fieldConfig\": {\n \"defaults\": {\n \"color\": {\n \"mode\": \"palette-classic\"\n },\n \"custom\": {\n \"axisBorderShow\": false,\n \"axisCenteredZero\": false,\n \"axisColorMode\": \"text\",\n \"axisLabel\": \"\",\n \"axisPlacement\": \"auto\",\n \"barAlignment\": 0,\n \"barWidthFactor\": 0.6,\n \"drawStyle\": \"line\",\n \"fillOpacity\": 20,\n \"gradientMode\": \"hue\",\n \"hideFrom\": {\n \"legend\": false,\n \"tooltip\": false,\n \"viz\": false\n },\n \"insertNulls\": false,\n \"lineInterpolation\": \"smooth\",\n \"lineWidth\": 3,\n \"pointSize\": 8,\n \"scaleDistribution\": {\n \"type\": \"linear\"\n },\n \"showPoints\": \"auto\",\n \"spanNulls\": false,\n \"stacking\": {\n \"group\": \"A\",\n \"mode\": \"none\"\n },\n \"thresholdsStyle\": {\n \"mode\": \"off\"\n }\n },\n \"mappings\": [],\n \"thresholds\": {\n \"mode\": \"absolute\",\n \"steps\": [\n {\n \"color\": \"green\"\n }\n ]\n },\n \"unit\": \"short\"\n },\n \"overrides\": [\n {\n \"matcher\": {\n \"id\": \"byName\",\n \"options\": \"Active Attachments\"\n },\n \"properties\": [\n {\n \"id\": \"color\",\n \"value\": {\n \"fixedColor\": \"purple\",\n \"mode\": \"fixed\"\n }\n }\n ]\n },\n {\n \"matcher\": {\n \"id\": \"byName\",\n \"options\": \"Total Attachments\"\n },\n \"properties\": [\n {\n \"id\": \"color\",\n \"value\": {\n \"fixedColor\": \"orange\",\n \"mode\": \"fixed\"\n }\n }\n ]\n }\n ]\n },\n \"gridPos\": {\n \"h\": 8,\n \"w\": 12,\n \"x\": 12,\n \"y\": 17\n },\n \"id\": 302,\n \"options\": {\n \"legend\": {\n \"calcs\": [\n \"last\",\n \"max\"\n ],\n \"displayMode\": \"table\",\n \"placement\": \"bottom\",\n \"showLegend\": true\n },\n \"tooltip\": {\n \"hideZeros\": false,\n \"mode\": \"multi\",\n \"sort\": \"desc\"\n }\n },\n \"pluginVersion\": \"12.0.1\",\n \"targets\": [\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"expr\": \"trilium_attachments_active{job=~'$job',instance=~'$instance'}\",\n \"legendFormat\": \"Active Attachments\",\n \"refId\": \"A\"\n },\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"expr\": \"trilium_attachments_total{job=~'$job',instance=~'$instance'}\",\n \"legendFormat\": \"Total Attachments\",\n \"refId\": \"B\"\n }\n ],\n \"title\": \"📎 Attachments Growth Over Time\",\n \"type\": \"timeseries\"\n },\n {\n \"collapsed\": false,\n \"gridPos\": {\n \"h\": 1,\n \"w\": 24,\n \"x\": 0,\n \"y\": 25\n },\n \"id\": 400,\n \"panels\": [],\n \"title\": \"🔧 Advanced Metrics\",\n \"type\": \"row\"\n },\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"description\": \"Number of branches connecting notes\",\n \"fieldConfig\": {\n \"defaults\": {\n \"color\": {\n \"mode\": \"thresholds\"\n },\n \"mappings\": [],\n \"thresholds\": {\n \"mode\": \"absolute\",\n \"steps\": [\n {\n \"color\": \"green\"\n }\n ]\n },\n \"unit\": \"short\"\n },\n \"overrides\": []\n },\n \"gridPos\": {\n \"h\": 4,\n \"w\": 6,\n \"x\": 0,\n \"y\": 26\n },\n \"id\": 401,\n \"options\": {\n \"colorMode\": \"value\",\n \"graphMode\": \"none\",\n \"justifyMode\": \"center\",\n \"orientation\": \"auto\",\n \"percentChangeColorMode\": \"standard\",\n \"reduceOptions\": {\n \"calcs\": [\n \"lastNotNull\"\n ],\n \"fields\": \"\",\n \"values\": false\n },\n \"showPercentChange\": false,\n \"textMode\": \"auto\",\n \"wideLayout\": true\n },\n \"pluginVersion\": \"12.0.1\",\n \"targets\": [\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"expr\": \"trilium_branches_total{job=~'$job',instance=~'$instance'}\",\n \"refId\": \"A\"\n }\n ],\n \"title\": \"🌳 Total Branches\",\n \"type\": \"stat\"\n },\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"description\": \"Number of note attributes\",\n \"fieldConfig\": {\n \"defaults\": {\n \"color\": {\n \"mode\": \"thresholds\"\n },\n \"mappings\": [],\n \"thresholds\": {\n \"mode\": \"absolute\",\n \"steps\": [\n {\n \"color\": \"green\"\n }\n ]\n },\n \"unit\": \"short\"\n },\n \"overrides\": []\n },\n \"gridPos\": {\n \"h\": 4,\n \"w\": 6,\n \"x\": 6,\n \"y\": 26\n },\n \"id\": 402,\n \"options\": {\n \"colorMode\": \"value\",\n \"graphMode\": \"none\",\n \"justifyMode\": \"center\",\n \"orientation\": \"auto\",\n \"percentChangeColorMode\": \"standard\",\n \"reduceOptions\": {\n \"calcs\": [\n \"lastNotNull\"\n ],\n \"fields\": \"\",\n \"values\": false\n },\n \"showPercentChange\": false,\n \"textMode\": \"auto\",\n \"wideLayout\": true\n },\n \"pluginVersion\": \"12.0.1\",\n \"targets\": [\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"expr\": \"trilium_attributes_total{job=~'$job',instance=~'$instance'}\",\n \"refId\": \"A\"\n }\n ],\n \"title\": \"🏷️ Attributes\",\n \"type\": \"stat\"\n },\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"description\": \"Number of note revisions\",\n \"fieldConfig\": {\n \"defaults\": {\n \"color\": {\n \"mode\": \"thresholds\"\n },\n \"mappings\": [],\n \"thresholds\": {\n \"mode\": \"absolute\",\n \"steps\": [\n {\n \"color\": \"green\"\n }\n ]\n },\n \"unit\": \"short\"\n },\n \"overrides\": []\n },\n \"gridPos\": {\n \"h\": 4,\n \"w\": 6,\n \"x\": 12,\n \"y\": 26\n },\n \"id\": 403,\n \"options\": {\n \"colorMode\": \"value\",\n \"graphMode\": \"none\",\n \"justifyMode\": \"center\",\n \"orientation\": \"auto\",\n \"percentChangeColorMode\": \"standard\",\n \"reduceOptions\": {\n \"calcs\": [\n \"lastNotNull\"\n ],\n \"fields\": \"\",\n \"values\": false\n },\n \"showPercentChange\": false,\n \"textMode\": \"auto\",\n \"wideLayout\": true\n },\n \"pluginVersion\": \"12.0.1\",\n \"targets\": [\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"expr\": \"trilium_revisions_total{job=~'$job',instance=~'$instance'}\",\n \"refId\": \"A\"\n }\n ],\n \"title\": \"🔄 Revisions\",\n \"type\": \"stat\"\n },\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"description\": \"Number of ETAPI tokens\",\n \"fieldConfig\": {\n \"defaults\": {\n \"color\": {\n \"mode\": \"thresholds\"\n },\n \"mappings\": [],\n \"thresholds\": {\n \"mode\": \"absolute\",\n \"steps\": [\n {\n \"color\": \"green\"\n }\n ]\n },\n \"unit\": \"short\"\n },\n \"overrides\": []\n },\n \"gridPos\": {\n \"h\": 4,\n \"w\": 6,\n \"x\": 18,\n \"y\": 26\n },\n \"id\": 404,\n \"options\": {\n \"colorMode\": \"value\",\n \"graphMode\": \"none\",\n \"justifyMode\": \"center\",\n \"orientation\": \"auto\",\n \"percentChangeColorMode\": \"standard\",\n \"reduceOptions\": {\n \"calcs\": [\n \"lastNotNull\"\n ],\n \"fields\": \"\",\n \"values\": false\n },\n \"showPercentChange\": false,\n \"textMode\": \"auto\",\n \"wideLayout\": true\n },\n \"pluginVersion\": \"12.0.1\",\n \"targets\": [\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"expr\": \"trilium_etapi_tokens_total{job=~'$job',instance=~'$instance'}\",\n \"refId\": \"A\"\n }\n ],\n \"title\": \"🔑 API Tokens\",\n \"type\": \"stat\"\n },\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"description\": \"Various storage and system metrics\",\n \"fieldConfig\": {\n \"defaults\": {\n \"color\": {\n \"mode\": \"palette-classic\"\n },\n \"custom\": {\n \"axisBorderShow\": false,\n \"axisCenteredZero\": false,\n \"axisColorMode\": \"text\",\n \"axisLabel\": \"\",\n \"axisPlacement\": \"auto\",\n \"barAlignment\": 0,\n \"barWidthFactor\": 0.6,\n \"drawStyle\": \"line\",\n \"fillOpacity\": 10,\n \"gradientMode\": \"none\",\n \"hideFrom\": {\n \"legend\": false,\n \"tooltip\": false,\n \"viz\": false\n },\n \"insertNulls\": false,\n \"lineInterpolation\": \"linear\",\n \"lineWidth\": 2,\n \"pointSize\": 5,\n \"scaleDistribution\": {\n \"type\": \"linear\"\n },\n \"showPoints\": \"auto\",\n \"spanNulls\": false,\n \"stacking\": {\n \"group\": \"A\",\n \"mode\": \"none\"\n },\n \"thresholdsStyle\": {\n \"mode\": \"off\"\n }\n },\n \"mappings\": [],\n \"thresholds\": {\n \"mode\": \"absolute\",\n \"steps\": [\n {\n \"color\": \"green\"\n }\n ]\n },\n \"unit\": \"short\"\n },\n \"overrides\": [\n {\n \"matcher\": {\n \"id\": \"byName\",\n \"options\": \"Recent Notes\"\n },\n \"properties\": [\n {\n \"id\": \"color\",\n \"value\": {\n \"fixedColor\": \"yellow\",\n \"mode\": \"fixed\"\n }\n }\n ]\n }\n ]\n },\n \"gridPos\": {\n \"h\": 8,\n \"w\": 12,\n \"x\": 0,\n \"y\": 30\n },\n \"id\": 405,\n \"options\": {\n \"legend\": {\n \"calcs\": [\n \"last\"\n ],\n \"displayMode\": \"table\",\n \"placement\": \"bottom\",\n \"showLegend\": true\n },\n \"tooltip\": {\n \"hideZeros\": false,\n \"mode\": \"multi\",\n \"sort\": \"desc\"\n }\n },\n \"pluginVersion\": \"12.0.1\",\n \"targets\": [\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"expr\": \"trilium_blobs_total{job=~'$job',instance=~'$instance'}\",\n \"legendFormat\": \"Blob Records\",\n \"refId\": \"A\"\n },\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"expr\": \"trilium_recent_notes_total{job=~'$job',instance=~'$instance'}\",\n \"legendFormat\": \"Recent Notes\",\n \"refId\": \"B\"\n },\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"expr\": \"trilium_embeddings_total{job=~'$job',instance=~'$instance'}\",\n \"legendFormat\": \"Embeddings\",\n \"refId\": \"C\"\n },\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"expr\": \"trilium_embedding_providers_total{job=~'$job',instance=~'$instance'}\",\n \"legendFormat\": \"Embedding Providers\",\n \"refId\": \"D\"\n }\n ],\n \"title\": \"📊 Storage & System Metrics\",\n \"type\": \"timeseries\"\n },\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"description\": \"Timeline showing when content was created and last modified\",\n \"fieldConfig\": {\n \"defaults\": {\n \"color\": {\n \"mode\": \"palette-classic\"\n },\n \"custom\": {\n \"axisBorderShow\": false,\n \"axisCenteredZero\": false,\n \"axisColorMode\": \"text\",\n \"axisLabel\": \"\",\n \"axisPlacement\": \"auto\",\n \"barAlignment\": 0,\n \"barWidthFactor\": 0.6,\n \"drawStyle\": \"points\",\n \"fillOpacity\": 0,\n \"gradientMode\": \"none\",\n \"hideFrom\": {\n \"legend\": false,\n \"tooltip\": false,\n \"viz\": false\n },\n \"insertNulls\": false,\n \"lineInterpolation\": \"linear\",\n \"lineWidth\": 1,\n \"pointSize\": 8,\n \"scaleDistribution\": {\n \"type\": \"linear\"\n },\n \"showPoints\": \"always\",\n \"spanNulls\": false,\n \"stacking\": {\n \"group\": \"A\",\n \"mode\": \"none\"\n },\n \"thresholdsStyle\": {\n \"mode\": \"off\"\n }\n },\n \"mappings\": [],\n \"thresholds\": {\n \"mode\": \"absolute\",\n \"steps\": [\n {\n \"color\": \"green\"\n }\n ]\n },\n \"unit\": \"dateTimeAsIso\"\n },\n \"overrides\": []\n },\n \"gridPos\": {\n \"h\": 8,\n \"w\": 12,\n \"x\": 12,\n \"y\": 30\n },\n \"id\": 406,\n \"options\": {\n \"legend\": {\n \"calcs\": [],\n \"displayMode\": \"list\",\n \"placement\": \"bottom\",\n \"showLegend\": true\n },\n \"tooltip\": {\n \"hideZeros\": false,\n \"mode\": \"single\",\n \"sort\": \"none\"\n }\n },\n \"pluginVersion\": \"12.0.1\",\n \"targets\": [\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"expr\": \"trilium_oldest_note_timestamp{job=~'$job',instance=~'$instance'} * 1000\",\n \"legendFormat\": \"Oldest Note\",\n \"refId\": \"A\"\n },\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"expr\": \"trilium_newest_note_timestamp{job=~'$job',instance=~'$instance'} * 1000\",\n \"legendFormat\": \"Newest Note\",\n \"refId\": \"B\"\n },\n {\n \"datasource\": {\n \"uid\": \"${datasource}\"\n },\n \"expr\": \"trilium_last_modified_timestamp{job=~'$job',instance=~'$instance'} * 1000\",\n \"legendFormat\": \"Last Modified\",\n \"refId\": \"C\"\n }\n ],\n \"title\": \"⏰ Content Timeline\",\n \"type\": \"timeseries\"\n }\n ],\n \"preload\": false,\n \"refresh\": \"1m\",\n \"schemaVersion\": 41,\n \"tags\": [\n \"trilium\",\n \"notes\",\n \"monitoring\",\n \"enhanced\"\n ],\n \"templating\": {\n \"list\": [\n {\n \"current\": {\n \"text\": \"myprom\",\n \"value\": \"PA04845DA3A4B088E\"\n },\n \"includeAll\": false,\n \"label\": \"Datasource\",\n \"name\": \"datasource\",\n \"options\": [],\n \"query\": \"prometheus\",\n \"refresh\": 1,\n \"regex\": \"//\",\n \"type\": \"datasource\"\n },\n {\n \"allValue\": \".*\",\n \"current\": {\n \"text\": \"All\",\n \"value\": \"$__all\"\n },\n \"datasource\": {\n \"UID\": \"\",\n \"type\": \"\"\n },\n \"includeAll\": true,\n \"label\": \"Job\",\n \"multi\": true,\n \"name\": \"job\",\n \"options\": [],\n \"query\": \"query_result(up)\",\n \"refresh\": 1,\n \"regex\": \"/job=\\\"([^\\\"]+)\\\"/\",\n \"sort\": 1,\n \"type\": \"query\"\n },\n {\n \"allValue\": \".*\",\n \"current\": {\n \"text\": [\n \"All\"\n ],\n \"value\": [\n \"$__all\"\n ]\n },\n \"datasource\": {\n \"type\": \"prometheus\",\n \"uid\": \"${datasource}\"\n },\n \"includeAll\": true,\n \"label\": \"Instance\",\n \"multi\": true,\n \"name\": \"instance\",\n \"options\": [],\n \"query\": \"trilium_database_size_bytes\",\n \"refresh\": 1,\n \"regex\": \"/instance=\\\"([^\\\"]+)\\\"/\",\n \"sort\": 1,\n \"type\": \"query\"\n }\n ]\n },\n \"time\": {\n \"from\": \"now-1h\",\n \"to\": \"now\"\n },\n \"timepicker\": {},\n \"timezone\": \"browser\",\n \"title\": \"TriliumNext Dashboard\",\n \"uid\": \"06993f9b-a477-4723-bf18-47743393b382\",\n \"version\": 5\n}",
"_help_64ZTlUPgEPtW": "<p>Safe mode is triggered by setting the <code>TRILIUM_SAFE_MODE</code> environment variable to a truthy value, usually <code>1</code>.</p><p>In each artifact there is a <code>trilium-safe-mode.sh</code> (or <code>.bat</code>) script to enable it.</p><p>What it does:</p><ul><li>Disables <code>customWidget</code> launcher types in <code>app/widgets/containers/launcher.js</code>.</li><li>Disables the running of <code>mobileStartup</code> or <code>frontendStartup</code> scripts.</li><li>Displays the root note instead of the previously saved session.</li><li>Does not run a <a class=\"reference-link\" href=\"#root/_help_m523cpzocqaD\">Saved Search</a> when it is opened; press <em>Search now</em> to run it.</li><li>Disables the running of <code>backendStartup</code>, <code>hourly</code>, <code>daily</code> scripts and checks for the hidden subtree.</li></ul>",
@@ -260,7 +260,7 @@
"_help_TjLYAo3JMO8X": "<aside class=\"admonition warning\"><p>This documentation is outdated, as it refers to using the deprecated <code>addButtonToToolbar</code> API which will only create widgets for desktop.</p><p>Instead, a custom launcher widget can be created using the&nbsp;<a class=\"reference-link\" href=\"#root/_help_4Gn3psZKsfSm\">Launch Bar Widgets</a>&nbsp;documentation.</p></aside><p>In this example we are going to extend the functionality of&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYjQUYhpbUEW\">Task Manager</a>&nbsp;showcase (which comes by default with Trilium) by adding a button in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>&nbsp; (<span class=\"tn-icon bx bx-task\"></span>) to create a new task automatically and open it.</p><h2>Creating the note</h2><ol><li>First, create a new&nbsp;<a class=\"reference-link\" href=\"#root/_help_6f9hih2hXXZk\">Code</a>&nbsp;note type with the <em>JavaScript (Trilium frontend)</em> language.</li><li>Define the <code>#run=frontendStartup</code> label in&nbsp;<a class=\"reference-link\" href=\"#root/_help_zEY4DaJG4YT5\">Attributes</a>.</li></ol><h2>Content of the script</h2><p>Copy-paste the following script:</p><pre><code class=\"language-text-javascript\">api.addButtonToToolbar({\n\ttitle: \"New task\",\n icon: \"task\",\n shortcut: \"alt+n\",\n action: async () =&gt; {\n \tconst taskNoteId = await api.runOnBackend(() =&gt; {\n \tconst todoRootNote = api.getNoteWithLabel(\"taskTodoRoot\");\n const resp = api.createTextNote(todoRootNote.noteId, \"New task\", \"\") \n return resp.note.noteId;\n });\n \n await api.waitUntilSynced();\n await api.activateNewNote(taskNoteId);\n }\n});</code></pre><h2>Testing the functionality</h2><p>Since we set the script to be run on start-up, all we need to do is to <a href=\"#root/_help_s8alTXmpFR61\">refresh the application</a>.</p><h2>Understanding how the script works</h2><figure class=\"table\"><table class=\"ck-table-resized\"><colgroup><col style=\"width:50%;\"><col style=\"width:50%;\"></colgroup><tbody><tr><td><pre><code class=\"language-text-x-trilium-auto\">api.addButtonToToolbar({\n\ttitle: \"New task\",\n icon: \"task\",\n shortcut: \"alt+n\",\n action: async () =&gt; {\n \t// [...]\n }\n});</code></pre></td><td><p>This uses the <a href=\"#root/_help_yIhgI5H7A2Sm\">Front-end API</a> to create a icon in the&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>, by specifying:</p><ul><li>A title</li><li>A corresponding boxicons icon (without the <code>bx-</code> prefix).</li><li>Optionally, a keyboard shortcut to assign to it.</li><li>The action, which will be executed when the button is pressed.</li></ul></td></tr><tr><td><pre><code class=\"language-text-x-trilium-auto\">const taskNoteId = await api.runOnBackend(() =&gt; {\n // Shown below. \n return resp.note.noteId;\n});</code></pre></td><td><ul><li>This portion of code is actually executed on the server (backend) and not on the client (i.e. browser).<ul><li>The reason is that the creating notes is the responsibility of the server.</li></ul></li><li>Here we can also see that it is possible to return results from the server execution and read them in the client (<code>taskNoteId</code>).</li></ul></td></tr><tr><td><pre><code class=\"language-text-x-trilium-auto\">const todoRootNote = api.getNoteWithLabel(\"taskTodoRoot\");</code></pre></td><td><ul><li>Here we identify a note with the <a href=\"#root/_help_zEY4DaJG4YT5\">label</a> <code>#taskTodoRoot</code>. This is how the&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYjQUYhpbUEW\">Task Manager</a>&nbsp;showcase knows where to place all the different tasks.</li><li>Normally this might return a <code>null</code> value if no such note could be identified, but error handling is outside the scope of this example.&nbsp;</li></ul></td></tr><tr><td><pre><code class=\"language-text-x-trilium-auto\">const resp = api.createTextNote(todoRootNote.noteId, \"New task\", \"\")</code></pre></td><td><ul><li>We create a new child note within the to-do root note (first argument) with the title “New task\" (second argument) and no content by default (third argument).</li></ul></td></tr><tr><td><pre><code class=\"language-text-x-trilium-auto\">await api.waitUntilSynced();</code></pre></td><td><ul><li>Back on the client, since we created a new note on the server, we now need to wait for the change to be reflected in the client.</li></ul></td></tr><tr><td><pre><code class=\"language-text-x-trilium-auto\">await api.activateNewNote(taskNoteId);</code></pre></td><td><ul><li>Since we know the <a href=\"#root/_help_m1lbrzyKDaRB\">ID</a> of the newly created note, all we have to do now is to show this note to the user.</li></ul></td></tr></tbody></table></figure>",
"_help_7kZPMD0uFwkH": "<p>This tutorial showcases a basic integration with Google Forms, where we are able to download the responses of a form using the “Link to Sheets\" functionality.</p><p>Note that the link will be publicly accessible to everyone (however the link is in a hard-to-guess format such as <code>https://docs.google.com/spreadsheets/d/e/2PACX-1vTA8NU2_eZFhc8TFadCZPreBfvP7un8IHd6J0SchrLLw3ueGmntNZjwRmsH2ZRcp1pJYDAzMz1FmFaj/pub?output=csv</code>). Make sure you are not accidentally publishing sensitive information.</p><h2>Obtaining the CSV link</h2><ol><li>Open the Google Forms in a browser.</li><li>Select the “Responses” tab and click on “Link to Sheets”.</li><li>Select “Create a new spreadsheet” and press “Create”.</li><li>In Google Sheets, select File → Share → Publish to web.</li><li>In the “Publish to the web” screen, make sure the “Link” tab is selected and instead of “Web page”, select “Comma-separated values (.csv)”.</li><li>Copy the given link which will be used for the upcoming script.</li></ol><h2>Creating the script</h2><p>Create a “JS Frontend” script:</p><pre><code class=\"language-text-x-trilium-auto\">const CSV_URL = \"https://docs.google.com/spreadsheets/d/e/2PACX-1vTiwooLV2whjCSVa49dJ99p_G3_qhqHHRqttMjYCJVfLXVdTgUSNJu5K0rpqmaHYF2k7Vofi3o7gW82/pub?output=csv\";\n\nasync function fetchData() {\n try {\n const response = await fetch(CSV_URL);\n return await response.text();\n } catch (e) {\n api.showError(e.message);\n }\n}\n\nconst data = await fetchData();\nconsole.log(data);\n// Do something with the data.</code></pre><p>Note that the data will be received as a string and there is no library to do the CSV parsing for us. To do a very simple parsing of CSV:</p><pre><code class=\"language-text-x-trilium-auto\">const content = data\n\t.split(\"\\n\")\n\t.slice(1)\n\t.map((row) =&gt; row.split(\",\"));</code></pre><p>This will return the data as an array of arrays.</p>",
"_help_DL92EjAaXT26": "<p>A good use case of promoted attributes is to easily define the various parameters a script might need, for example an input and output note if it's processing data, or a checkbox to define a particular change in behavior for the script.</p><p><img src=\"{{helpAssets}}/User%20Guide/Scripting/Frontend%20Basics/Examples/Using%20promoted%20attributes%20to%20configure%20scripts_image.png\"></p><h2>Using check boxes to toggle flags</h2><p>Instead of asking the user to modify a boolean value in the script, it's much more intuitive to use a checkbox for it as a promoted attribute.</p><p>To do so, first define the promoted attribute:</p><pre><code class=\"language-text-x-trilium-auto\">#label:groupByExtension=\"promoted,alias=Group by extension,single,boolean\"</code></pre><p>Then use it:</p><pre><code class=\"language-text-javascript\">const byExtension = api.currentNote.getLabelValue(\"groupByExtension\") === \"true\";\nif (byExtension) {\n\t// Do something.\n}</code></pre><p>This will work equally well in both front-end and back-end scripts.</p><h2>Using relations to select notes</h2><p>One common use case for a script is to read data from another note and perhaps output its result in another note. To do so we need to define the following promoted attributes:</p><pre><code class=\"language-text-x-trilium-auto\">#relation:input=\"promoted,alias=Input,single\" #relation:output=\"promoted,alias=Output,single\"</code></pre><p>Once we have this, we can add some basic error handling to ensure that the fields are completed by the user:</p><pre><code class=\"language-text-javascript\">const inputNoteId = api.currentNote.getRelationValue(\"input\");\nif (!inputNoteId) {\n\tapi.showError(\"Missing input.\");\n return;\n}\n\nconst outputNoteId = api.currentNote.getRelationValue(\"output\");\nif (!outputNoteId) {\n api.showError(\"Missing output.\");\n return;\n}</code></pre><p>Note that here we are using <code>api.showError</code> which is only available for frontend notes. If you are writing a backend note, simply remove <code>api.showError</code> but the user will no feedback on why the script did not execute properly.</p><p>Afterwards we can simply read the note and do something with it:</p><pre><code class=\"language-text-javascript\">const note = api.getNote(inputNoteId);\nif (!note) {\n\treturn;\n}\nconst content = note.getContent().toString(\"utf-8\");</code></pre>",
- "_help_4Gn3psZKsfSm": "<p>Launch bar widgets are a subset of&nbsp;<a class=\"reference-link\" href=\"#root/_help_MgibgPcfeuGz\">Custom Widgets</a>&nbsp;that can be used to render custom buttons and widgets inside the&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>.</p><h2>Creating a launch bar widget for the desktop layout</h2><p>Unlike&nbsp;<a class=\"reference-link\" href=\"#root/_help_MgibgPcfeuGz\">Custom Widgets</a>, the process of setting up a launch bar widget is slightly different:</p><ol><li>Create a Code note of type <em>JavaScript (front-end)</em> or JSX (for Preact-based widgets).<ul><li>The script itself uses the same concepts as&nbsp;<a class=\"reference-link\" href=\"#root/_help_MgibgPcfeuGz\">Custom Widgets</a>, including the use of a <code>NoteContextAwareWidget</code> or a <code>BasicWidget</code> (according to needs).</li><li>As examples in both legacy and Preact format, see&nbsp;<a class=\"reference-link\" href=\"#root/_help_IPArqVfDQ4We\">Note Title Widget</a>&nbsp;and&nbsp;<a class=\"reference-link\" href=\"#root/_help_gcI7RPbaNSh3\">Analog Watch</a>.</li></ul></li><li>Don't set <code>#widget</code>, as that attribute is reserved for&nbsp;<a class=\"reference-link\" href=\"#root/_help_MgibgPcfeuGz\">Custom Widgets</a>.</li><li>In the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>, select <em>Configure launchbar</em>.</li><li>In the <em>Visible Launchers</em> section, select <em>Add a custom widget</em>.</li><li>Give the newly created launcher a name (and optionally a name).</li><li>In the&nbsp;<a class=\"reference-link\" href=\"#root/_help_OFXdgB2nNk1F\">Promoted Attributes</a>&nbsp;section, modify the <em>widget</em> field to point to the newly created note.</li><li><a href=\"#root/_help_s8alTXmpFR61\">Refresh</a> the UI.</li></ol><h2>Mobile layout</h2><p>Custom launch bar widgets are also supported on the&nbsp;<a class=\"reference-link\" href=\"#root/_help_RDslemsQ6gCp\">Mobile Frontend</a>. To do so:</p><ol><li>Go to&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>&nbsp;→ <em>Advanced</em> → <em>Show hidden subtree</em>.</li><li>Look for <em>Mobile Launch Bar</em> and follow the same creation mechanism as in the previous section.</li></ol>",
+ "_help_4Gn3psZKsfSm": "<p>Launch bar widgets are a subset of&nbsp;<a class=\"reference-link\" href=\"#root/_help_MgibgPcfeuGz\">Custom Widgets</a>&nbsp;that can be used to render custom buttons and widgets inside the&nbsp;<a class=\"reference-link\" href=\"#root/_help_xYmIYSP6wE3F\">Launch Bar</a>.</p><h2>Creating a launch bar widget for the desktop layout</h2><p>Unlike&nbsp;<a class=\"reference-link\" href=\"#root/_help_MgibgPcfeuGz\">Custom Widgets</a>, the process of setting up a launch bar widget is slightly different:</p><ol><li>Create a Code note of type <em>JavaScript (front-end)</em> or JSX (for Preact-based widgets).<ul><li>The script itself uses the same concepts as&nbsp;<a class=\"reference-link\" href=\"#root/_help_MgibgPcfeuGz\">Custom Widgets</a>, including the use of a <code>NoteContextAwareWidget</code> or a <code>BasicWidget</code> (according to needs).</li><li>As examples in both legacy and Preact format, see&nbsp;<a class=\"reference-link\" href=\"#root/_help_IPArqVfDQ4We\">Note Title Widget</a>&nbsp;and&nbsp;<a class=\"reference-link\" href=\"#root/_help_gcI7RPbaNSh3\">Analog Watch</a>.</li></ul></li><li>Don't set <code>#widget</code>, as that attribute is reserved for&nbsp;<a class=\"reference-link\" href=\"#root/_help_MgibgPcfeuGz\">Custom Widgets</a>.</li><li>In the&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>, select <em>Configure launchbar</em>.</li><li>In the <em>Visible Launchers</em> section, select <em>Add a custom widget</em>.</li><li>Give the newly created launcher a name (and optionally a name).</li><li>In the&nbsp;<a class=\"reference-link\" href=\"#root/_help_OFXdgB2nNk1F\">Promoted Attributes</a>&nbsp;section, modify the <em>widget</em> field to point to the newly created note.</li><li><a href=\"#root/_help_s8alTXmpFR61\">Refresh</a> the UI.</li></ol><h2>Mobile layout</h2><p>Custom launch bar widgets are also supported on the&nbsp;<a class=\"reference-link\" href=\"#root/_help_RDslemsQ6gCp\">Mobile Frontend</a>. To do so:</p><ol><li>Go to&nbsp;<a class=\"reference-link\" href=\"#root/_help_x3i7MxGccDuM\">Global menu</a>&nbsp;→ <em>Advanced</em> → <em>Hidden notes</em>.</li><li>Look for <em>Mobile Launch Bar</em> and follow the same creation mechanism as in the previous section.</li></ol>",
"_help_IPArqVfDQ4We": "<figure class=\"image\"><img style=\"aspect-ratio:1007/94;\" src=\"{{helpAssets}}/User%20Guide/Scripting/Frontend%20Basics/Launch%20Bar%20Widgets/Note%20Title%20Widget_image.png\" width=\"1007\" height=\"94\"></figure><p>This is an example of a note context-aware widget, which reacts to the currently opened note and refreshes automatically as the user navigates through the notes.</p><p>In this example, the title of the note is displayed. It works best on the <a href=\"#root/_help_x0JgW8UqGXvq\">horizontal layout</a>.</p><div class=\"trilium-tabs\"><section class=\"trilium-tab\"><p class=\"trilium-tab-title\"><span class=\"tn-icon bx bxl-react\"></span>&nbsp;Preact</p><div class=\"trilium-tab-panel\"><pre><code class=\"language-text-x-trilium-auto\">import { defineLauncherWidget, useActiveNoteContext } from \"trilium:preact\";\n\nexport default defineLauncherWidget({\n render: () =&gt; {\n const { note } = useActiveNoteContext();\n return &lt;div style={{\n display: \"flex\",\n height: \"53px\",\n width: \"fit-content\",\n fontSize: \"0.75em\",\n alignItems: \"center\",\n flexShrink: 0 \n }}&gt;{note?.title}&lt;/div&gt;;\n }\n});</code></pre></div></section><section class=\"trilium-tab\"><p class=\"trilium-tab-title\"><span class=\"tn-icon bx bxl-javascript\"></span>&nbsp;Legacy</p><div class=\"trilium-tab-panel\"><pre><code class=\"language-text-javascript\">const TPL = `\\\n&lt;div style=\"\n display: flex;\n height: 53px;\n width: fit-content;\n font-size: 0.75em;\n contain: none;\n align-items: center;\n flex-shrink: 0;\n padding: 0 1em;\n\"&gt;&lt;/div&gt;`;\n\nclass NoteTitleWidget extends api.NoteContextAwareWidget {\n doRender() {\n this.$widget = $(TPL);\n }\n\n async refreshWithNote(note) {\n this.$widget.text(note.title);\n }\n}\n\nmodule.exports = new NoteTitleWidget();</code></pre></div></section></div>",
"_help_gcI7RPbaNSh3": "<figure class=\"image\"><img style=\"aspect-ratio:1007/94;\" src=\"{{helpAssets}}/User%20Guide/Scripting/Frontend%20Basics/Launch%20Bar%20Widgets/Analog%20Watch_image.png\" width=\"1007\" height=\"94\"></figure><p>This is a more intricate example of a basic widget, which displays an analog watch in the launch bar. Unlike note-context aware widgets, basic widgets don't react to note navigation.</p><pre><code class=\"language-text-javascript\">const TPL = `\n&lt;div class=\"analog-watch\" style=\"\n position: relative;\n height: 38px;\n width: 38px;\n border-radius: 50%;\n background: white;\n border: 2px solid #444;\n flex-shrink: 0;\n\"&gt;\n &lt;!-- hour hand --&gt;\n &lt;div class=\"hand hour\" style=\"\n position: absolute;\n left: 50%;\n top: 50%;\n width: 3px;\n height: 10px;\n background: #333;\n transform-origin: bottom center;\n \"&gt;&lt;/div&gt;\n\n &lt;!-- minute hand --&gt;\n &lt;div class=\"hand minute\" style=\"\n position: absolute;\n left: 50%;\n top: 50%;\n width: 2px;\n height: 13px;\n background: #111;\n transform-origin: bottom center;\n \"&gt;&lt;/div&gt;\n\n &lt;!-- second hand --&gt;\n &lt;div class=\"hand second\" style=\"\n position: absolute;\n left: 50%;\n top: 50%;\n width: 1px;\n height: 15px;\n background: red;\n transform-origin: bottom center;\n \"&gt;&lt;/div&gt;\n&lt;/div&gt;\n`;\n\nclass AnalogWatchWidget extends api.BasicWidget {\n doRender() { \n this.$widget = $(TPL);\n\n const hourHand = this.$widget.find('.hand.hour')[0];\n const minuteHand = this.$widget.find('.hand.minute')[0];\n const secondHand = this.$widget.find('.hand.second')[0];\n\n const update = () =&gt; {\n const now = new Date();\n const sec = now.getSeconds();\n const min = now.getMinutes();\n const hour = now.getHours();\n\n const secDeg = sec * 6;\n const minDeg = min * 6 + sec * 0.1;\n const hourDeg = (hour % 12) * 30 + min * 0.5;\n\n secondHand.style.transform = `translate(-50%, -100%) rotate(${secDeg}deg)`;\n minuteHand.style.transform = `translate(-50%, -100%) rotate(${minDeg}deg)`;\n hourHand.style.transform = `translate(-50%, -100%) rotate(${hourDeg}deg)`;\n };\n\n update();\n this._interval = setInterval(update, 1000);\n }\n\n cleanup() {\n if (this._interval) clearInterval(this._interval);\n }\n}\n\nmodule.exports = new AnalogWatchWidget();</code></pre>",
"_help_KLsqhjaqh1QW": "<p>Since v0.101.0, Trilium integrates Preact for front-end scripting, including support for JSX.</p><p>Preact can be used for:</p><ul><li><a class=\"reference-link\" href=\"#root/_help_HcABDtFCkbFN\">Render Note</a>, where a JSX code note is used instead of a HTML one.</li><li><a class=\"reference-link\" href=\"#root/_help_MgibgPcfeuGz\">Custom Widgets</a>, where JSX can be used to replace the old, jQuery-based mechanism.</li></ul><p>To get started, the first step is to enable JSX in the list of Code languages. Go to Options → Code Notes and check the “JSX” language. Afterwards, proceed with the documentation in either&nbsp;<a class=\"reference-link\" href=\"#root/_help_HcABDtFCkbFN\">Render Note</a>&nbsp;or&nbsp;<a class=\"reference-link\" href=\"#root/_help_MgibgPcfeuGz\">Custom Widgets</a>, which will both have a section on how to use the new Preact integration.</p><aside class=\"admonition important\"><p>The documentation assumes prior knowledge with React or Preact. As a starting point, consider the <a href=\"https://www.freecodecamp.org/learn/front-end-development-libraries-v9/\">FreeCodeCamp course on Front End Development Libraries</a> or the <a href=\"https://preactjs.com/tutorial/\">Preact Tutorial</a>.</p></aside><h2>Import/exports</h2><p>When using Preact with JSX, there is a special syntax which provides ES-like imports. This <code>import</code> syntax makes way for a more intuitive that doesn't make use of global objects and paves the way for better auto-completion support that might be introduced in the future.&nbsp;</p><h3>API imports</h3><p>Instead of:</p><pre><code class=\"language-text-jsx\">api.showMessage(\"Hello\");</code></pre><p>the JSX version looks like this:</p><pre><code class=\"language-text-jsx\">import { showMessage } from \"trilium:api\";\nshowMessage(\"hello\");</code></pre><h3>Preact API imports (hooks, components)</h3><p>There's a new&nbsp;<a class=\"reference-link\" href=\"#root/_help_GLks18SNjxmC\">Script API</a>&nbsp;dedicated to Preact, which provides shared components that are also used by Trilium internally as well as hooks, for example.</p><pre><code class=\"language-text-jsx\">import { useState } from \"trilium:preact\";\nconst [ myState, setMyState ] = useState(\"Hi\");</code></pre><h3>Exporting</h3><p>JSX notes can export a component for use in&nbsp;<a class=\"reference-link\" href=\"#root/_help_HcABDtFCkbFN\">Render Note</a>&nbsp;or for&nbsp;<a class=\"reference-link\" href=\"#root/_help_Bqde6BvPo05g\">Component libraries</a>: </p><pre><code class=\"language-text-jsx\">export default function() {\n return (\n &lt;&gt;\n &lt;p&gt;Hello world.&lt;/p&gt;\n &lt;/&gt;\n );\n}</code></pre><h3>Import/export are not required</h3><p>These imports are syntactic sugar meant to replace the usage for the <code>api</code> global object (see&nbsp;<a class=\"reference-link\" href=\"#root/_help_GLks18SNjxmC\">Script API</a>).&nbsp;</p><aside class=\"admonition note\"><p>The <code>import</code> and <code>export</code> syntax work only for JSX notes. Standard/jQuery code notes still need to use the <code>api</code> global and <code>module.exports</code>.</p></aside><h2>Under the hood</h2><p>Unlike JavaScript, JSX requires pre-processing to turn it into JavaScript (just like TypeScript). To do so, Trilium uses <a href=\"https://github.com/alangpierce/sucrase\">Sucrase</a>, a JavaScript library which processes the JSX to pure JavaScript. The processing is done each time a script is run (for widgets this happens at every program startup). If you notice any performance degradation due to long compilation, consider <a href=\"#root/_help_wy8So3yZZlH9\">reporting the issue</a> to us.</p>",
diff --git a/docs/User Guide/User Guide/Advanced Usage/Database/Manually altering the database/SQL Console.md b/docs/User Guide/User Guide/Advanced Usage/Database/Manually altering the database/SQL Console.md
index b98ede924d..2dba81d80e 100644
--- a/docs/User Guide/User Guide/Advanced Usage/Database/Manually altering the database/SQL Console.md
+++ b/docs/User Guide/User Guide/Advanced Usage/Database/Manually altering the database/SQL Console.md
@@ -4,7 +4,7 @@
The SQL Console is Trilium's built-in database editor.
-It can be accessed by going to the <a class="reference-link" href="../../../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a> → Advanced → Open SQL console.
+It can be accessed by going to the <a class="reference-link" href="../../../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a> → Advanced → SQL console.
![](SQL%20Console_image.jpg)
diff --git a/docs/User Guide/User Guide/Advanced Usage/Hidden Notes.md b/docs/User Guide/User Guide/Advanced Usage/Hidden Notes.md
index 07458b4d8f..4a961264e3 100644
--- a/docs/User Guide/User Guide/Advanced Usage/Hidden Notes.md
+++ b/docs/User Guide/User Guide/Advanced Usage/Hidden Notes.md
@@ -9,7 +9,7 @@ The hidden notes are stored in the user's <a class="reference-link" href="Datab
## Accessing the hidden note tree
-From the <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a>, select _Advanced_ → _Show hidden subtree_.
+From the <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a>, select _Advanced_ → _Hidden notes_.
## Contents of the hidden note tree
@@ -33,11 +33,11 @@ Here is a brief summary of all the notes within the hidden tree:
</tr>
<tr>
<td><a class="reference-link" href="#root/_hidden/_sqlConsole">SQL Console History</a></td>
- <td><p>When SQL queries or commands are executed in the&nbsp;<a class="reference-link" href="Database/Manually%20altering%20the%20database/SQL%20Console.md">SQL Console</a>, they are stored here, grouped by month. Only the query is stored and not the results.</p><p>This section can be accessed without going to the hidden tree by simply going to the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a>&nbsp;and selecting Advanced → Open SQL console history.</p><p>Notes can be added as children of this tree, but it's generally not recommended to do so to not interfere with the normal history process.</p></td>
+ <td><p>When SQL queries or commands are executed in the&nbsp;<a class="reference-link" href="Database/Manually%20altering%20the%20database/SQL%20Console.md">SQL Console</a>, they are stored here, grouped by month. Only the query is stored and not the results.</p><p>This section can be accessed without going to the hidden tree by simply going to the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a>&nbsp;and selecting Advanced → SQL console history.</p><p>Notes can be added as children of this tree, but it's generally not recommended to do so to not interfere with the normal history process.</p></td>
</tr>
<tr>
<td><a class="reference-link" href="#root/_hidden/_search">Search History</a></td>
- <td><p>Whenever a search is executed from the full&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/Navigation/Search.md">Search</a>, the query will be stored here, grouped by month. Only the search parameters are stored and not the results themselves.</p><p>This section can be accessed without going to the hidden tree by simply going to the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a>&nbsp;and selecting Advanced → Open search history.</p><p>Notes can be added as children of this tree, but it's generally not recommended to do so to not interfere with the normal history process.</p></td>
+ <td><p>Whenever a search is executed from the full&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/Navigation/Search.md">Search</a>, the query will be stored here, grouped by month. Only the search parameters are stored and not the results themselves.</p><p>This section can be accessed without going to the hidden tree by simply going to the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a>&nbsp;and selecting Advanced → Search history.</p><p>Notes can be added as children of this tree, but it's generally not recommended to do so to not interfere with the normal history process.</p></td>
</tr>
<tr>
<td><a class="reference-link" href="#root/_hidden/_bulkAction">Bulk Action</a></td>
@@ -45,7 +45,7 @@ Here is a brief summary of all the notes within the hidden tree:
</tr>
<tr>
<td><a class="reference-link" href="#root/_hidden/_backendLog">Backend Log</a></td>
- <td><p>This note corresponds to the backend log feature (see&nbsp;<a class="reference-link" href="../Troubleshooting/Error%20logs.md">Error logs</a>).</p><p>This item can be accessed without going to the hidden try by going to the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a>&nbsp;and selecting Advanced → Show backend log.</p></td>
+ <td><p>This note corresponds to the backend log feature (see&nbsp;<a class="reference-link" href="../Troubleshooting/Error%20logs.md">Error logs</a>).</p><p>This item can be accessed without going to the hidden try by going to the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a>&nbsp;and selecting Advanced → Backend log.</p></td>
</tr>
<tr>
<td><a class="reference-link" href="#root/_hidden/_userHidden">User Hidden</a></td>
@@ -57,7 +57,7 @@ Here is a brief summary of all the notes within the hidden tree:
</tr>
<tr>
<td><a class="reference-link" href="#root/_hidden/_share">Shared Notes</a></td>
- <td><p>This tree lists all of the notes that are <a href="Sharing.md">shared</a> publicly. It can be useful to track down which notes are shared regardless of their position in the note tree.</p><p>This section can be accessed without going to the hidden tree simply by going to the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a>&nbsp;and selecting <em>Show shared notes subtree</em>.</p><p>Sub-notes cannot be created here.</p></td>
+ <td><p>This tree lists all of the notes that are <a href="Sharing.md">shared</a> publicly. It can be useful to track down which notes are shared regardless of their position in the note tree.</p><p>This section can be accessed without going to the hidden tree simply by going to the&nbsp;<a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a>&nbsp;and selecting <em>Advanced</em> → <em>Shared notes</em>.</p><p>Sub-notes cannot be created here.</p></td>
</tr>
<tr>
<td><a class="reference-link" href="#root/_hidden/_lbRoot">Launch Bar</a></td>
diff --git a/docs/User Guide/User Guide/Advanced Usage/Sharing.md b/docs/User Guide/User Guide/Advanced Usage/Sharing.md
index 1039fee87b..bd79489608 100644
--- a/docs/User Guide/User Guide/Advanced Usage/Sharing.md
+++ b/docs/User Guide/User Guide/Advanced Usage/Sharing.md
@@ -125,7 +125,7 @@ When you share a note, you actually share the entire subtree of notes beneath it
## Viewing and managing shared notes
-You can view a list of all shared notes by clicking on _Advanced_ → "Show shared notes subtree" in the <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a>. This allows you to manage and navigate through all the notes you have made public.
+You can view a list of all shared notes by clicking on _Advanced_ → _Shared notes_ in the <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a>. This allows you to manage and navigate through all the notes you have made public.
## Security considerations
diff --git a/docs/User Guide/User Guide/Basic Concepts and Features/Notes/Restoring Deleted Notes.md b/docs/User Guide/User Guide/Basic Concepts and Features/Notes/Restoring Deleted Notes.md
index 14e4a54d78..f309054164 100644
--- a/docs/User Guide/User Guide/Basic Concepts and Features/Notes/Restoring Deleted Notes.md
+++ b/docs/User Guide/User Guide/Basic Concepts and Features/Notes/Restoring Deleted Notes.md
@@ -1,5 +1,5 @@
# Restoring Deleted Notes
-Deleted notes are listed in the _Deleted Notes_ dialog (<a class="reference-link" href="../UI%20Elements/Global%20menu.md">Global menu</a> → _Show deleted notes_) and can be restored by pressing the _undelete_ link.
+Deleted notes are listed in the _Deleted Notes_ dialog (<a class="reference-link" href="../UI%20Elements/Global%20menu.md">Global menu</a> → _Deleted notes_) and can be restored by pressing the _undelete_ link.
If a note has child notes, they will be restored along with it. Should the original location no longer exist (e.g. the parent has been deleted), the note will be restored into the default location for new notes (<a class="reference-link" href="Note%20Inbox.md">Note Inbox</a>).
diff --git a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Launch Bar.md b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Launch Bar.md
index 68ca9a8f3a..b3d7e9df4d 100644
--- a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Launch Bar.md
+++ b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Launch Bar.md
@@ -32,7 +32,7 @@ The launch bar on mobile uses a different configuration from the desktop one. Th
To configure the launch bar on mobile, go to <a class="reference-link" href="Global%20menu.md">Global menu</a> and select _Configure launch bar_.
-The configure the mobile launch bar while on the desktop (especially useful to configure more complicated launchers such as scripts or custom widgets), go to <a class="reference-link" href="Global%20menu.md">Global menu</a> → Advanced → Show hidden subtree and look for the _Mobile Launch Bar_ section. While in the hidden subtree, it's also possible to drag launchers between the _Mobile Launch Bar_ and (Desktop) _Launch Bar_ sections.
+The configure the mobile launch bar while on the desktop (especially useful to configure more complicated launchers such as scripts or custom widgets), go to <a class="reference-link" href="Global%20menu.md">Global menu</a> → Advanced → Hidden notes and look for the _Mobile Launch Bar_ section. While in the hidden subtree, it's also possible to drag launchers between the _Mobile Launch Bar_ and (Desktop) _Launch Bar_ sections.
### Adding/removing and reordering launchers
diff --git a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Tabs.md b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Tabs.md
index 6fb5073e4b..6613d11746 100644
--- a/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Tabs.md
+++ b/docs/User Guide/User Guide/Basic Concepts and Features/UI Elements/Tabs.md
@@ -32,7 +32,7 @@ Since tabs are a commonly used feature, there are multiple keyboard shortcuts th
## Full screen
-To show Trilium in full screen, press <kbd>F11</kbd> or the <span class="tn-icon bx bx-expand-alt"></span> _Toggle fullscreen_ button in the <a class="reference-link" href="Global%20menu.md">Global menu</a>. While in full screen, the tab bar shows a <span class="tn-icon bx bx-exit-fullscreen"></span> _Leave full screen_ button before the <a class="reference-link" href="Right%20Sidebar.md">Right Sidebar</a> toggle; press it to return to the normal window.
+To show Trilium in full screen, press <kbd>F11</kbd> or the <span class="tn-icon bx bx-expand-alt"></span> _Fullscreen_ button in the <a class="reference-link" href="Global%20menu.md">Global menu</a>. While in full screen, the tab bar shows a <span class="tn-icon bx bx-exit-fullscreen"></span> _Leave full screen_ button before the <a class="reference-link" href="Right%20Sidebar.md">Right Sidebar</a> toggle; press it to return to the normal window.
## Background tabs
diff --git a/docs/User Guide/User Guide/Installation & Setup/Mobile Frontend.md b/docs/User Guide/User Guide/Installation & Setup/Mobile Frontend.md
index 4ca9f40620..77665c19f6 100644
--- a/docs/User Guide/User Guide/Installation & Setup/Mobile Frontend.md
+++ b/docs/User Guide/User Guide/Installation & Setup/Mobile Frontend.md
@@ -16,7 +16,7 @@ Here is a non-exhaustive list of differences between the desktop version and the
* Press and hold a note to display the <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree/Note%20tree%20contextual%20menu.md">Note tree contextual menu</a>.
* The <a class="reference-link" href="../Basic%20Concepts%20and%20Features/Navigation/Quick%20search.md">Quick search</a> bar is also displayed at the top of the note tree.
* The full <a class="reference-link" href="../Basic%20Concepts%20and%20Features/Navigation/Search.md">Search</a> function can be triggered either from either the <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a> or from the <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Launch%20Bar.md">Launch Bar</a>, if configured.
-* The <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a> is shorter: _Open new window_ and _Show cheatsheet_ are left out, and _Switch to desktop version_ is under _Advanced_.
+* The <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a> is shorter: _New window_ and _Keyboard shortcuts_ are left out, and _Switch to desktop version_ is under _Advanced_.
* The <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Launch%20Bar.md">Launch Bar</a> is displayed at the bottom of the screen.
* The launch bar uses a different configuration for icons than the desktop version. See the dedicated page for more information on how to configure it.
* Most of the note-related actions are grouped in the horizontal dots icon on the top-right of the note.
diff --git a/docs/User Guide/User Guide/Scripting/Frontend Basics/Launch Bar Widgets.md b/docs/User Guide/User Guide/Scripting/Frontend Basics/Launch Bar Widgets.md
index fc8dfa22ce..ebb83d4757 100644
--- a/docs/User Guide/User Guide/Scripting/Frontend Basics/Launch Bar Widgets.md
+++ b/docs/User Guide/User Guide/Scripting/Frontend Basics/Launch Bar Widgets.md
@@ -19,5 +19,5 @@ Unlike <a class="reference-link" href="Custom%20Widgets.md">Custom Widgets</a>,
Custom launch bar widgets are also supported on the <a class="reference-link" href="../../Installation%20%26%20Setup/Mobile%20Frontend.md">Mobile Frontend</a>. To do so:
-1. Go to <a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a> → _Advanced_ → _Show hidden subtree_.
+1. Go to <a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a> → _Advanced_ → _Hidden notes_.
2. Look for _Mobile Launch Bar_ and follow the same creation mechanism as in the previous section.
\ No newline at end of file
diff --git a/docs/User Guide/User Guide/Troubleshooting/Error logs/Backend (server) logs.md b/docs/User Guide/User Guide/Troubleshooting/Error logs/Backend (server) logs.md
index 76a713622a..2710471d90 100644
--- a/docs/User Guide/User Guide/Troubleshooting/Error logs/Backend (server) logs.md
+++ b/docs/User Guide/User Guide/Troubleshooting/Error logs/Backend (server) logs.md
@@ -1,7 +1,7 @@
# Backend (server) logs
## Accessing via the backend log
-In the <a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a>, go to _Advanced_ → _Show backend log_. This will display the current backend log (i.e. today's), with the historical information available only on disk (see below).
+In the <a class="reference-link" href="../../Basic%20Concepts%20and%20Features/UI%20Elements/Global%20menu.md">Global menu</a>, go to _Advanced_ → _Backend log_. This will display the current backend log (i.e. today's), with the historical information available only on disk (see below).
The log is colored to make it easier to read: request status codes by class, slow SQL queries, and errors in red. The statement of a slow SQL query is highlighted the same way as in the <a class="reference-link" href="../../Advanced%20Usage/Database/Manually%20altering%20the%20database/SQL%20Console.md">SQL Console</a>, using the color scheme of code notes (see _Color schemes_ in <a class="reference-link" href="../../Note%20Types/Code.md">Code</a>).
diff --git a/docs/User Guide/User Guide/Troubleshooting/Error logs/Frontend logs.md b/docs/User Guide/User Guide/Troubleshooting/Error logs/Frontend logs.md
index 5c622454d0..358c45cd46 100644
--- a/docs/User Guide/User Guide/Troubleshooting/Error logs/Frontend logs.md
+++ b/docs/User Guide/User Guide/Troubleshooting/Error logs/Frontend logs.md
@@ -3,7 +3,7 @@ To provide frontend logs, we need to open the Developer Console. Often the easie
If that doesn't work, then:
-* in Trilium desktop app, go to top-left menu button -> Advanced -> Open dev tools
+* in Trilium desktop app, go to top-left menu button -> Advanced -> Developer tools
* In Firefox/Chrome right-click anywhere in the page and click Inspect:
![](Frontend%20logs_error-logs-firefox-context-men.png)