A real API, with real scopes.
Make a token in Settings and reach your notes from a script, a cron job, or a phone shortcut. List, read, search, create, edit, and append to notes, and organise folders, with Markdown or plain text in and out.
Tokens come in three scopes. A capture token can add notes but never read one back, so a token on your phone gives nothing away if the phone is lost. The API reference.