Executing terminal commands using Mender API (mender connect?)

Hi, currently we are using mender-connect. However, the fleet is getting quite large. In some rare instances, it would be nice for us to be able to execute some commands on some devices via the API, for example for debugging.

We have seen the ‘Device connect’ API docs, but it says it’s intended for use in the Web GUI.

Is it possible?