An Obsidian plugin that provides a secure HTTPS REST API with API key authentication for interacting with notes in an Obsidian vault. Version 2.5.4 is current. It allows reading, creating, updating, deleting notes, listing vault contents, managing periodic notes, and executing Obsidian commands. Unlike custom URI schemes, it provides full HTTP API access suitable for browser extensions and automation scripts. Ships TypeScript type definitions.
npm install obsidian-local-rest-apiNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows instantiation of LocalRestApi client with API key and base URL, then fetches notes list.
Update endpoint paths to start with /api/ (e.g., /api/vault/...).
Include X-API-Key header in all requests. Generate an API key via plugin settings.
Call listNotes({}) or pass a query object with path/folder filters.Use NODE_TLS_REJECT_UNAUTHORIZED=0 in development, or configure your client to accept self-signed certs. Not recommended for production.
Ensure Obsidian is open and the Local REST API plugin is enabled. Check plugin settings for port and enable the server.
Regenerate or copy the correct API key from Obsidian plugin settings and include it in the X-API-Key header.
Upgrade client library to v2.x or use raw HTTP requests with the new endpoint paths and response structure.
No dependency data recorded yet.