They have api for dedicated servers. It may be confusing, that it is called robot api, but that is how they call their management interface for dedicated servers.
https://robot.hetzner.com/doc/webservice/en.html#preface
https://docs.hetzner.com/robot/dedicated-server/robot-interf...