I’ve just set up a new nextcloud instance, which is working fine so far.
Now I would like to read ouf the serverinfo URL ("…/nextcloud/ocs/v2.php/apps/serverinfo/api/v1/info") by an external monitoring tool, but I’m struggeling to get around the authentication; whatever I call I end up with the logon page.
This doesn’t work https://username:password.@host/nextcloud/ocs/v2.php/apps/serverinfo/api/v1/info
as well as this one: https://username:password.@host/nextcloud/index.php/login?redirect_url=%252Fnextcloud%252Focs%252Fv2.php%252Fapps%252Fserverinfo%252Fapi%252Fv1%252Finfo
Did somebody try this before and has a hint for me?