/obsidian:para-rest-apifrom obsidian
Read and write Obsidian vault notes over the Local REST API plugin using curl: bearer-token auth, HTTPS with a self-signed certificate, and URL-encoded vault paths. Use when Obsidian is running and notes must be created or read programmatically, or when another service needs HTTP access to the vault.
Ships in obsidian. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Read and write the vault over the Local REST API plugin (obsidian-local-rest-api
v3.6.1) with curl. Use for headless flows and external services. For app-side
work (daily notes, templates, search) use the obsidian-cli
skill instead — REST is for services and scripts, not interactive editing.
All vault-specific values (port, key reference, inbox path, endpoints) live in
../para-vault/references/VAULT-CONFIG.md
§8. Full endpoint catalog: references/ENDPOINTS.md.
The curl recipes below show this vault's concrete values — confirm them in
VAULT-CONFIG §8 before relying on them.
curl -k (or pin the cert). Do not expect
plain HTTP.Every request carries Authorization: Bearer <key>. Retrieve the key only
through the 1Password op CLI — never hardcode it, never commit it, never echo
it into logs or terminal output:
KEY="$(op read "op://<vault>/<item>/<field>")" # exact op:// ref → VAULT-CONFIG §8
op://<vault>/<item>/<field> reference for this vault is recorded in
VAULT-CONFIG §8 — copy it from there.$KEY shell variable and reference "$KEY" in headers.
Never print it: avoid set -x, curl -v, and echo "$KEY", which would
leak it into logs or scrollback.Health check (run this first — proves the app is up and the key is valid):
curl -k https://127.0.0.1:27124/ -H "Authorization: Bearer $KEY"
Create or replace a note (PUT replaces the whole file; body is the full note):
curl -k -X PUT "https://127.0.0.1:27124/vault/0%20-%20INBOX/My%20Note.md" \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: text/markdown" \
--data-binary @note.md
Read a note:
curl -k "https://127.0.0.1:27124/vault/0%20-%20INBOX/My%20Note.md" \
-H "Authorization: Bearer $KEY"
Delete a note — destructive; confirm the exact path with the user before running:
curl -k -X DELETE "https://127.0.0.1:27124/vault/0%20-%20INBOX/My%20Note.md" \
-H "Authorization: Bearer $KEY"
Port 27124 and the 0%20-%20INBOX path are this vault's values — confirm in
VAULT-CONFIG §8. Response codes and the full endpoint list are in
references/ENDPOINTS.md.
Vault paths contain spaces and PARA folder prefixes (0 - INBOX, 1 - PROJECTS).
Always URL-encode every path segment in the request URL: a space becomes
%20, so 0 - INBOX/My Note.md → 0%20-%20INBOX/My%20Note.md. Un-encoded spaces
break the request. Encode the path, not the header or body.
API-created notes are written by the plugin, not through Obsidian's in-app
note-creation flow, so they do not go through interactive templating. Templater's
folder-templates do not fire on REST-created files (verified against this
vault), so nothing fills in the frontmatter for you — a note that reaches the
vault must already satisfy the full frontmatter contract. Always include the
complete frontmatter block in the PUT body — tags (first tag all),
created, para, and any status/type fields the target folder expects.
Do not restate the contract here — defer to
../para-vault/references/VAULT-CONFIG.md
§3 for the field list and rules, and to obsidian-markdown
for property syntax.
No destination given? Default to a new note in the Inbox with para: inbox
— PUT to the Inbox path (VAULT-CONFIG §2). This mirrors
para-vault's default-destination rule; don't invent a
folder or append to an unrelated note.
Testing against this vault confirmed Templater folder-templates do not fire
on REST-created files: a PUT into a template-covered folder (0 - INBOX) stores
exactly the body you send — no injected template skeleton, no doubled
frontmatter. A quick verify step is still cheap insurance:
--- block or duplicated headings appear,
reconcile: re-issue the PUT with the canonical single-frontmatter body
(PUT replaces the whole file), then GET and re-verify.The plugin only answers while the desktop app is open. If the §3 health check
fails with connection refused, Obsidian is not running and REST is
unavailable. Fall back to a direct file write into the vault's inbox folder
(/Users/mriechers/MarkBrain/0 - INBOX/ — this vault's value, confirm in
VAULT-CONFIG §8), honoring the same frontmatter contract (§5). The file is
picked up when Obsidian next launches (and syncs via Syncthing). Templater does
not fire on external writes, so no double-fire concern applies to the fallback —
but the note still must carry the full contract itself.
REST is for services and headless/scripted flows — another process needs HTTP
access, or Obsidian may be running unattended. For app-side operations (daily
notes, running templates, interactive search, plugin dev) use the
obsidian-cli skill, which drives the running app directly.
Never suggest Dataview queries — it is installed but disabled vault-wide; the
.base files are the index layer (see VAULT-CONFIG §9).
This skill depends on para-vault for every vault-specific value
(the op:// key reference, port, inbox path, endpoints, and the frontmatter
contract). If it was installed on its own, install para-vault too so
../para-vault/references/VAULT-CONFIG.md resolves.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
10 skills in this plugin
/defuddleExtract clean markdown content from web pages using Defuddle CLI, removing clutter and navigation to save tokens. Use instead of WebFetch when the user provides a URL to read or analyze, for online documentation, articles, blog posts, or any standard web page. Do NOT use for URLs ending in .md — those are already markdown, use WebFetch directly./json-canvasCreate and edit JSON Canvas files (.canvas) with nodes, edges, groups, and connections. Use when working with .canvas files, creating visual canvases, mind maps, flowcharts, or when the user mentions Canvas files in Obsidian./obsidian-basesCreate and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, filters, or formulas in Obsidian.npx claudepluginhub mriechers/obsidian-para-skills --plugin obsidian