Retrieval of API Key on Linux

I am look for a way to update tags of notes with a script (retrieve dates from the title and add "Due" tag if they are due). I have not found a way to receive the API Key on Linux.
I installed the joplin-desktop on ubuntu with snap install joplin.
I started joplin and with : server start the server, but do not see how to retrieve the api key here.

I found the joplin database at ~/snap/joplin/*/.config/joplin, but the programmatical api key retrieval with sqlite did not work, as there is no api key in the settings table.

sqlite3 database.sqlite 'select key from settings ;'

activeFolderId
clientId
db.fuzzySearchEnabled
encryption.activeMasterKeyId
encryption.enabled
encryption.passwordCache
encryption.shouldReencrypt
firstStart
keychain.supported
resourceService.lastProcessedChangeId
searchEngine.initialIndexingDone
searchEngine.lastProcessedChangeId
sync.3.context
sync.7.auth
sync.7.context

Any idea?

Did you enable webclipper in settings?

The API key is no longer in the database.

2 options:

  • Desktop app > Config > Web Clipper > Authorization token > Copy token
  • cat ~/.config/joplin-desktop/settings.json |jq -r '."api.token"'
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.