Logseq HTTP API
LogSeq provides a HTTP API for developing plugins. The documentation is not particularly intuitive to get used to.
Enabling the API
1. Turn on Dev Mode + API
You need to turn on developer mode within Logseq via the settings menu:
Go into the advance settings and enable developer mode
Then when the app restarts you should be able to enable the API
2. Add a Token
by default no token is provided so you won't be able to call the api. Open the manage tokens dialog and create a new token:
You will now be able to make HTTP requests to the given URL and PORT using Authorization: Bearer lulz
or whatever value you chose.