FYI: I noticed that release 2.0p18 contains werk 13399: RESTAPI: Endpoint for downloading agent by host name (checkmk.com)
I just installed this release and indeed, I can now download the correct agent with only supplying the hostname and os type!
Thanks dev’s for your awesome work!