fix request url construction

make API requests also work if no subdomain is given