Fixed api_url scope in get_namespace methods