I think this is can be a problem with your Crontab permission and cloud authentication
Could you please elaborate? I thought the Cloud API authentication/authorization is based on the key I get from the Shelly App ("Access and permissions" -> "Authorization cloud key"), which is exactly same in both cases. What information of the process calling the REST API is passed to the server, based on which the server could sometimes allow and sometimes deny the service?