API for Nextcloud?


We are using more than one Nextcloud where I work and it starting to be to many Nextclouds to manage by logging in to them to check Version and app versions etc.

Is there any API’s that i can use with curl or anything to make it easier with managing?

All I can find is for users and LDAP:

But I would like API’s for stuff like this aswell:

Check-out the developer guide:


Thanks, but I’m abit confused how it works?

If i understand that correctly, then it shows all of the classes for the PHP code? But if you take users as an example. How would you find what to type to create a new user?


When I used this before:

Kinda new to API’s.

Below is util functions to create group and user using API:

Sorry, but I’m still lost.

There is no easy command to find out what version the nextcloud is using with a simple API string with cURL or anything?

I would have a deeper look on the developers manual, e.g. the capabilities API:

I found these and they work (Somehow missed the OCC command)

sudo -u www-data php /var/www/html/nextcloud/occ status
  - installed: true
  - version:
  - versionstring: 19.0.0
  - edition: