get the API base url from the returned instance_url