What am I doing wrong with the macOS API?

Operating system


Joplin version


Desktop version info

Joplin 2.14.20 (prod, darwin)

Client ID: 206cfd1086484109b8a77fa60c12f14f
Sync Version: 3
Profile Version: 46
Keychain Supported: Yes

Revision: cfd98e3

Backup: 1.4.0

What issue do you have?

I am way over my head - I don't know UNIX and I can barely manage to use macOS terminal. Having said that, I am trying to use the Joplin Data API.
I'm copying examples from the Joplin Data API webpage, but without success.

I'm trying - just to get my feet wet - to retrieve my Joplin tags. I enter

curl -X GET http://localhost:41184/tags?token=4bfd16de....

and get the error

zsh: no matches found: http://localhost:41184/tags?token=4bfd16de..

what am I missing?

Joplin is running. Google Chrome is running. I can use the Joplin web clipper.
This works in terminal:
curl -X GET http://localhost:41184/ping
and returns

thanks for any insight....

1 Like

Try put the URL in singular quotation marks, i.e:
curl -X GET 'http://localhost:41184/tags?token=4bfd16de'

It's possible the shell is interpreting some of the URL as shell syntax and the singular quotation marks may help tell it not to.

Thanks! That worked.

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