The osctrl-api component of osctrl provides an API interface to interact with its enrolled nodes and with osctrl itself.
The API is documented with Swagger:
https://app.swaggerhub.com/apis-docs/jmpsec/osctrl-api/