Obsidian API icon

Obsidian API

Run official Obsidian CLI commands through the Obsidian API Docker service

Actions19

Note → Create

AI-generated

Summary

Create a note in the selected Obsidian vault at the specified path, using the supplied content. If Overwrite is enabled, pass that option to the Obsidian CLI command.

Inputs

  • Path (required) — Note path, such as Inbox/Note.md.
  • Content (required) — Text to write into the new note.
  • Overwrite — Defaults to false. When true, includes the overwrite flag in the create command.
  • Additional Fields: Timeout Seconds — Command timeout in seconds; defaults to 60.
  • Additional Fields: Vault — Vault name or path. If provided, it overrides the credential's default vault.

Output shape

A single n8n item containing JSON.

On success, returns {ok: true} unless the API response includes parseable stdout, in which case that parsed value is returned. Non-empty stderr and a timed-out flag are included when present. Command failures raise an error unless Continue On Fail is enabled.

Examples

Example 1: Create a new note with default settings

Path: Inbox/Note.md; Content: Meeting notes; Overwrite: false

Example 2: Create or replace a note in a specific vault

Path: Projects/Plan.md; Content: Draft; Overwrite: true; Vault: work

Links

Discussion