Access to API?

How create note from API on Joplin Server?

My env: joplin/server in Docker by docker-compose
2023-03-09 10:01:08: App: Starting server v2.10.6 (prod) on port 22300 and PID 6...
2023-03-09 10:01:08: App: NTP time offset: -7ms
2023-03-09 10:01:08: App: Running in Docker: true
2023-03-09 10:01:08: App: Public base URL: h t t p s : / / j.example . com
2023-03-09 10:01:08: App: API base URL: h t t p s : / / j.example . com
2023-03-09 10:01:08: App: User content base URL: h t t p s : / / j.example . com
2023-03-09 10:01:08: App: Log dir: /home/joplin/packages/server/logs

I am using GET to /api/ping and it is working, but POST /api/auth not working, see error "{"error":"Not allowed: POST "}" and GET /api/auth "{"error":"Path not found: api/auth"}". How use API?

I don't think the API is designed to be used like that.

This is not to say you can't use it, but you need to do a bit more work. Probably the easiest is to connect the desktop app to a server and look at the traffic between the 2.

UPD
Btw, I don't see the "/auth" endpoint anywhere in the code - that'd explain why you get the error.

joplinapp . org/spec/clipper_auth/
Its not part of API?

I check GET /search (/api/search?query=test) and response = {"error":"Path not found: api/search"}
But it is contained in the documentation (joplinapp . org/api/references/rest_api/), like this "/notes" and not wotking (not found path).

I think there's some confusion here. The webclpper API that the link points to is not the same as Joplin server API.

This one is exposed by Joplin desktop/CLI for web clipper and can also be used for other apps/scripts.

Joplin server API is for clients to sync with the server.

Thanks

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