The osctrl-api component of osctrl provides an API interface to interact with its enrolled nodes and with osctrl itself.
You can find the updated API documentation for osctrl, generated using stoplight.io.