Anyone know how to use Joplin Server API

There are some threads about accessing the server API. I think this post is a good summary:

if you prefer to use Joplin server it does have an API. I don't think it's documented so you'd have to reverse-engineer it from the code or by capturing network traffic.

If it's an option for you, the client has a well documented API.