Is this a WP multisite setup by chance?
You are showing your requests that don’t work. Can you show at least one that DOES work for you? They should all work the same, so what’s the difference? Often it’s literally just one misplaced character or a spelling error or something… 🤪
@littlepackage
I checked a lot of them. There are no misplaced characters or something. I’ve changed just the last part of the curl request (“/plugins” to “/posts” or to “/users”). And “/posts” and “/users” are successful but “/plugins”, “/themes” and “/settings” are not.
- This reply was modified 1 hour, 15 minutes ago by ajtallerr.
Posts and comments are public, and so don’t require authentication. Your other queries are not public and there’s something wrong with your authentication. The API isn’t looking for a built-in WP login admin username/password, you need to set up something like https://github.com/WP-API/Basic-Auth – more here:
@littlepackage
Thank you! It is working!
Great, glad you got the issue sorted even tho I had a typo in my last response (I fixed the second link I meant to send).
